	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aat1290_led_probe
_aat1290_led_probe:                     ## @aat1290_led_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 32(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_flash_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	leaq	-40(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_aat1290_led_get_configuration
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r12, %rdi
	callq	_mutex_init
	movq	_aat1290_led_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	-40(%rbp), %eax
	movl	%eax, 12(%r12)
	movq	_LED_DEV_CAP_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_aat1290_init_flash_timeout
	movq	-56(%rbp), %rdi
	callq	_of_fwnode_handle
	movl	%eax, -60(%rbp)
	movq	_AAT1290_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_led_classdev_flash_register_ext
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_aat1290_init_v4l2_flash_config
	movq	-56(%rbp), %rdi
	callq	_of_fwnode_handle
	movq	_v4l2_flash_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%rbx, %r8
	callq	_v4l2_flash_init
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	4(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_led_classdev_flash_unregister
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_destroy
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$32, %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	_aat1290_led_brightness_set,4,2 ## @aat1290_led_brightness_set
	.comm	_LED_DEV_CAP_FLASH,4,2          ## @LED_DEV_CAP_FLASH
	.comm	_AAT1290_NAME,4,2               ## @AAT1290_NAME
	.comm	_v4l2_flash_ops,4,2             ## @v4l2_flash_ops
	.no_dead_strip	_aat1290_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aat1290_led_probe
_aat1290_led_probe:                     ; @aat1290_led_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #8]
	str	wzr, [sp]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #32]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _flash_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _flash_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x19
	bl	_aat1290_led_get_configuration
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	x21, x19, #8
	mov	x0, x19
	bl	_mutex_init
Lloh5:
	adrp	x8, _aat1290_led_brightness_set@GOTPAGE
Lloh6:
	ldr	x8, [x8, _aat1290_led_brightness_set@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _LED_DEV_CAP_FLASH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LED_DEV_CAP_FLASH@GOTPAGEOFF]
	ldr	w9, [sp, #8]
Lloh10:
	ldr	w8, [x8]
	ldr	w10, [x19, #8]
	orr	w8, w10, w8
	stp	w8, w9, [x19, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_aat1290_init_flash_timeout
	ldr	x0, [sp, #24]
	bl	_of_fwnode_handle
Lloh11:
	adrp	x8, _AAT1290_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AAT1290_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #16]
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x21
	bl	_led_classdev_flash_register_ext
	tbnz	w0, #31, LBB0_7
; %bb.3:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_aat1290_init_v4l2_flash_config
	ldr	x0, [sp, #24]
	bl	_of_fwnode_handle
	mov	x1, x0
Lloh14:
	adrp	x3, _v4l2_flash_ops@GOTPAGE
Lloh15:
	ldr	x3, [x3, _v4l2_flash_ops@GOTPAGEOFF]
	mov	x4, sp
	mov	x0, x20
	mov	x2, x21
	bl	_v4l2_flash_init
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x22, x0
	mov	x0, x21
	bl	_led_classdev_flash_unregister
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_6:
	mov	x22, x0
	b	LBB0_10
LBB0_7:
	mov	x22, x0
LBB0_8:
	mov	x0, x19
	bl	_mutex_destroy
	b	LBB0_10
LBB0_9:
	mov	w22, #0
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	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	_aat1290_led_brightness_set,4,2 ; @aat1290_led_brightness_set
	.comm	_LED_DEV_CAP_FLASH,4,2          ; @LED_DEV_CAP_FLASH
	.comm	_AAT1290_NAME,4,2               ; @AAT1290_NAME
	.comm	_v4l2_flash_ops,4,2             ; @v4l2_flash_ops
	.no_dead_strip	_aat1290_led_probe
.subsections_via_symbols
