	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_status_probe
_wm831x_status_probe:                   ## @wm831x_status_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r12
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movl	(%rbx), %r15d
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	_IORESOURCE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, 48(%rax)
	movl	(%r13), %eax
	movl	%eax, 32(%rbx)
	movl	(%r14), %edi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	(%r14), %edi
	callq	_dev_get_platdata
	movq	%rax, %r13
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	testq	%r13, %r13
	je	LBB0_6
## %bb.8:
	movq	(%r13), %rax
	movslq	-60(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.9:
	leaq	-56(%rbp), %rdi
	movl	$12, %edx
	callq	_memcpy
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_5:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
LBB0_6:
	movq	%r12, %rdi
	callq	_dev_name
	movl	%eax, -48(%rbp)
LBB0_10:
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	leaq	36(%rbx), %rdi
	callq	_spin_lock_init
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_wm831x_reg_read
	movl	%eax, (%rbx)
	movq	_WM831X_LED_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_11
## %bb.12:
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_LED_FULL@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movl	-56(%rbp), %ecx
	movq	_WM831X_STATUS_PRESERVE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_15
## %bb.14:
	movq	_WM831X_LED_SRC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_WM831X_LED_SRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_16
LBB0_15:
	decl	%ecx
	movl	%ecx, 4(%rbx)
LBB0_16:
	movl	-48(%rbp), %eax
	movq	%rbx, %rsi
	addq	$8, %rsi
	movl	%eax, 24(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, 20(%rbx)
	movq	_wm831x_status_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_wm831x_status_blink_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_wm831x_status_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %edi
	callq	_devm_led_classdev_register
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_REG,4,2             ## @IORESOURCE_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No register resource\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WM831X_LED_MODE_MASK,4,2       ## @WM831X_LED_MODE_MASK
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_WM831X_STATUS_PRESERVE,4,2     ## @WM831X_STATUS_PRESERVE
	.comm	_WM831X_LED_SRC_MASK,4,2        ## @WM831X_LED_SRC_MASK
	.comm	_WM831X_LED_SRC_SHIFT,4,2       ## @WM831X_LED_SRC_SHIFT
	.comm	_wm831x_status_brightness_set,4,2 ## @wm831x_status_brightness_set
	.comm	_wm831x_status_blink_set,4,2    ## @wm831x_status_blink_set
	.comm	_wm831x_status_groups,4,2       ## @wm831x_status_groups
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register LED: %d\n"

	.no_dead_strip	_wm831x_status_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_status_probe
_wm831x_status_probe:                   ; @wm831x_status_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	mov	x19, x0
	ldr	w0, [x19, #4]!
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w24, [x21]
	bl	_ARRAY_SIZE
	mov	x22, x0
Lloh0:
	adrp	x8, _IORESOURCE_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.1:
	mov	x23, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	str	x20, [x0, #48]
	ldr	w8, [x23]
	str	w8, [x0, #32]
	ldr	w0, [x20]
	bl	_dev_get_platdata
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x20]
	bl	_dev_get_platdata
	mov	x23, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	cbz	x23, LBB0_10
; %bb.4:
	sdiv	w8, w24, w22
	msub	w8, w8, w22, w24
	ldr	x9, [x23]
	ldr	x1, [x9, w8, sxtw #3]
	cbz	x1, LBB0_10
; %bb.5:
	add	x0, sp, #16
	mov	w2, #12
	bl	_memcpy
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_9:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
LBB0_10:
	mov	x0, x19
	bl	_dev_name
	str	w0, [sp, #24]
LBB0_11:
	add	x0, x21, #40
	bl	_mutex_init
	add	x0, x21, #36
	bl	_spin_lock_init
	ldr	w1, [x21, #32]
	mov	x0, x20
	bl	_wm831x_reg_read
	str	w0, [x21]
Lloh12:
	adrp	x8, _WM831X_LED_MODE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM831X_LED_MODE_MASK@GOTPAGEOFF]
Lloh14:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x10, _LED_FULL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LED_FULL@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x21, #28]
	ldr	w8, [sp, #16]
Lloh19:
	adrp	x9, _WM831X_STATUS_PRESERVE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WM831X_STATUS_PRESERVE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
Lloh22:
	adrp	x8, _WM831X_LED_SRC_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WM831X_LED_SRC_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh25:
	adrp	x9, _WM831X_LED_SRC_SHIFT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _WM831X_LED_SRC_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	asr	w8, w8, w9
	b	LBB0_14
LBB0_13:
	sub	w8, w8, #1
LBB0_14:
	str	w8, [x21, #4]
	ldur	d0, [sp, #20]
Lloh28:
	adrp	x8, _wm831x_status_groups@GOTPAGE
Lloh29:
	ldr	x8, [x8, _wm831x_status_groups@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x21, #8]!
	stur	d0, [x21, #12]
Lloh31:
	adrp	x8, _wm831x_status_brightness_set@GOTPAGE
Lloh32:
	ldr	x8, [x8, _wm831x_status_brightness_set@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _wm831x_status_blink_set@GOTPAGE
Lloh35:
	ldr	x9, [x9, _wm831x_status_blink_set@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
	ldr	w0, [x20]
	mov	x1, x21
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	w20, #0
	b	LBB0_17
LBB0_16:
	mov	x20, x0
	str	x20, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_REG,4,2             ; @IORESOURCE_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No register resource\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WM831X_LED_MODE_MASK,4,2       ; @WM831X_LED_MODE_MASK
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_WM831X_STATUS_PRESERVE,4,2     ; @WM831X_STATUS_PRESERVE
	.comm	_WM831X_LED_SRC_MASK,4,2        ; @WM831X_LED_SRC_MASK
	.comm	_WM831X_LED_SRC_SHIFT,4,2       ; @WM831X_LED_SRC_SHIFT
	.comm	_wm831x_status_brightness_set,4,2 ; @wm831x_status_brightness_set
	.comm	_wm831x_status_blink_set,4,2    ; @wm831x_status_blink_set
	.comm	_wm831x_status_groups,4,2       ; @wm831x_status_groups
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register LED: %d\n"

	.no_dead_strip	_wm831x_status_probe
.subsections_via_symbols
