	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ktd2692_probe
_ktd2692_probe:                         ## @ktd2692_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ktd2692_parse_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r12, %r15
	addq	$8, %r15
	leaq	-40(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ktd2692_init_flash_timeout
	movq	%rbx, %rdi
	callq	_ktd2692_init_movie_current_max
	movq	_flash_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movl	-40(%rbp), %eax
	movl	%eax, 28(%r12)
	movq	_ktd2692_led_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movq	_LED_DEV_CAP_FLASH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 16(%r12)
	movq	%r12, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_led_classdev_flash_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	20(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_mutex_destroy
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	callq	_ktd2692_setup
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_flash_ops,4,2                  ## @flash_ops
	.comm	_ktd2692_led_brightness_set,4,2 ## @ktd2692_led_brightness_set
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.comm	_LED_DEV_CAP_FLASH,4,2          ## @LED_DEV_CAP_FLASH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't register LED %s\n"

	.no_dead_strip	_ktd2692_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ktd2692_probe
_ktd2692_probe:                         ; @ktd2692_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x2, sp, #8
	mov	x1, x19
	bl	_ktd2692_parse_dt
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	add	x21, x20, #8
	add	x1, sp, #8
	mov	x0, x21
	bl	_ktd2692_init_flash_timeout
	add	x0, sp, #8
	bl	_ktd2692_init_movie_current_max
Lloh3:
	adrp	x8, _flash_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _flash_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	ldr	w8, [sp, #8]
Lloh5:
	adrp	x9, _ktd2692_led_brightness_set@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ktd2692_led_brightness_set@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh8:
	adrp	x8, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh10:
	adrp	x9, _LED_DEV_CAP_FLASH@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LED_DEV_CAP_FLASH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #16]
	orr	w8, w8, w9
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x21
	bl	_led_classdev_flash_register
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w2, [x20, #20]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_mutex_destroy
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_ktd2692_setup
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_flash_ops,4,2                  ; @flash_ops
	.comm	_ktd2692_led_brightness_set,4,2 ; @ktd2692_led_brightness_set
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.comm	_LED_DEV_CAP_FLASH,4,2          ; @LED_DEV_CAP_FLASH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't register LED %s\n"

	.no_dead_strip	_ktd2692_probe
.subsections_via_symbols
