	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cr0014114_probe
_cr0014114_probe:                       ## @cr0014114_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_device_get_child_node_count
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_leds@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rbx, %rsi
	addq	$2, %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_devm_kzalloc
	movq	%rax, 48(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	40(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %r12
	addq	$12, %r12
	movq	_cr0014114_recount_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, (%r15)
	movq	%r14, 16(%r15)
	movq	%r14, 32(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_CR_FW_DELAY_MSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	subq	%rax, %rbx
	movq	%rbx, 24(%r15)
	movl	$1, 8(%r15)
	movq	%r15, %rdi
	callq	_cr0014114_sync
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	movl	$1, 8(%r15)
	movq	%r15, %rdi
	callq	_cr0014114_sync
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	callq	_cr0014114_probe_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_CR_RECOUNT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_schedule_delayed_work
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LEDs are not defined in device tree!"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_leds,4,2                       ## @leds
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cr0014114_recount_work,4,2     ## @cr0014114_recount_work
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CR_FW_DELAY_MSEC,4,2           ## @CR_FW_DELAY_MSEC
L_.str.1:                               ## @.str.1
	.asciz	"first recount failed %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"second recount failed %d\n"

	.comm	_CR_RECOUNT_DELAY,4,2           ## @CR_RECOUNT_DELAY
	.no_dead_strip	_cr0014114_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cr0014114_probe
_cr0014114_probe:                       ; @cr0014114_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_device_get_child_node_count
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _leds@GOTPAGE
Lloh1:
	ldr	x8, [x8, _leds@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x0
	bl	_struct_size
	mov	x1, x0
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x1, x22, #2
	ldr	w2, [x21]
	mov	x0, x19
	bl	_devm_kzalloc
	str	x0, [x20, #48]
	cbz	x0, LBB0_5
; %bb.3:
	add	x0, x20, #40
	bl	_mutex_init
	add	x21, x20, #12
Lloh5:
	adrp	x8, _cr0014114_recount_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cr0014114_recount_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
	str	x22, [x20]
	str	x19, [x20, #16]
	str	x19, [x20, #32]
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
Lloh11:
	adrp	x8, _CR_FW_DELAY_MSEC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CR_FW_DELAY_MSEC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	sub	x8, x22, x0
	str	x8, [x20, #24]
	mov	w23, #1
	str	w23, [x20, #8]
	mov	x0, x20
	bl	_cr0014114_sync
	cbz	w0, LBB0_9
; %bb.4:
	mov	x22, x0
	ldr	x0, [x20, #16]
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	str	w23, [x20, #8]
	mov	x0, x20
	bl	_cr0014114_sync
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
	ldr	x0, [x20, #16]
	str	x22, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_8
LBB0_11:
	mov	x0, x20
	bl	_cr0014114_probe_dt
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.12:
Lloh24:
	adrp	x8, _CR_RECOUNT_DELAY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CR_RECOUNT_DELAY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_schedule_delayed_work
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LEDs are not defined in device tree!"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_leds,4,2                       ; @leds
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cr0014114_recount_work,4,2     ; @cr0014114_recount_work
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CR_FW_DELAY_MSEC,4,2           ; @CR_FW_DELAY_MSEC
l_.str.1:                               ; @.str.1
	.asciz	"first recount failed %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"second recount failed %d\n"

	.comm	_CR_RECOUNT_DELAY,4,2           ; @CR_RECOUNT_DELAY
	.no_dead_strip	_cr0014114_probe
.subsections_via_symbols
