	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3560_init_device
_lm3560_init_device:                    ## @lm3560_init_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_REG_FLASH_TOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	$96, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_V4L2_FLASH_LED_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_lm3560_mode_ctrl
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	movq	_REG_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_FLASH_TOUT,4,2             ## @REG_FLASH_TOUT
	.comm	_V4L2_FLASH_LED_MODE_NONE,4,2   ## @V4L2_FLASH_LED_MODE_NONE
	.comm	_REG_FLAG,4,2                   ## @REG_FLAG
	.no_dead_strip	_lm3560_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3560_init_device
_lm3560_init_device:                    ; @lm3560_init_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _REG_FLASH_TOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_FLASH_TOUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
	mov	w2, #96
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _V4L2_FLASH_LED_MODE_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FLASH_LED_MODE_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_lm3560_mode_ctrl
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _REG_FLAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_FLASH_TOUT,4,2             ; @REG_FLASH_TOUT
	.comm	_V4L2_FLASH_LED_MODE_NONE,4,2   ; @V4L2_FLASH_LED_MODE_NONE
	.comm	_REG_FLAG,4,2                   ; @REG_FLAG
	.no_dead_strip	_lm3560_init_device
.subsections_via_symbols
