	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3645a_probe
_as3645a_probe:                         ## @as3645a_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, %r15
	callq	_dev_fwnode
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r15, 16(%rax)
	movq	%r15, %rdi
	callq	_dev_fwnode
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_as3645a_parse_node
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_as3645a_detect
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	callq	_as3645a_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	%r14, %rdi
	callq	_as3645a_led_class_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_as3645a_v4l2_setup
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	movq	%r14, %rdi
	addq	$12, %rdi
	callq	_led_classdev_flash_unregister
LBB0_14:
	movq	%r12, %rdi
	callq	_mutex_destroy
	jmp	LBB0_15
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_8:
	movl	%eax, %ebx
LBB0_15:
	movl	4(%r14), %edi
	callq	_fwnode_handle_put
	movl	(%r14), %edi
	callq	_fwnode_handle_put
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_as3645a_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3645a_probe
_as3645a_probe:                         ; @as3645a_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	bl	_dev_fwnode
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
	str	x21, [x0, #16]
	mov	x0, x21
	bl	_dev_fwnode
	mov	x1, x0
	mov	x0, x19
	bl	_as3645a_parse_node
	tbnz	w0, #31, LBB0_12
; %bb.3:
	mov	x0, x19
	bl	_as3645a_detect
	tbnz	w0, #31, LBB0_13
; %bb.4:
	add	x22, x19, #8
	mov	x0, x22
	bl	_mutex_init
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x19
	bl	_as3645a_setup
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_as3645a_led_class_setup
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_as3645a_v4l2_setup
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.7:
	add	x0, x19, #12
	bl	_led_classdev_flash_unregister
LBB0_8:
	mov	x0, x22
	bl	_mutex_destroy
	b	LBB0_14
LBB0_9:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_12:
	mov	x20, x0
	b	LBB0_15
LBB0_13:
	mov	x20, x0
LBB0_14:
	ldr	w0, [x19, #4]
	bl	_fwnode_handle_put
	ldr	w0, [x19]
	bl	_fwnode_handle_put
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_as3645a_probe
.subsections_via_symbols
