	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3560_get_ctrl
_lm3560_get_ctrl:                       ## @lm3560_get_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_lm3560_flash
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	_V4L2_CID_FLASH_FAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movl	4(%r15), %edi
	movq	_REG_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movl	-28(%rbp), %eax
	movq	_FAULT_SHORT_CIRCUIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	je	LBB0_4
## %bb.3:
	movq	_V4L2_FLASH_FAULT_SHORT_CIRCUIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	movq	_FAULT_OVERTEMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movq	_V4L2_FLASH_FAULT_OVER_TEMPERATURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%edx, %ecx
	movq	_FAULT_TIMEOUT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_8
## %bb.7:
	movq	_V4L2_FLASH_FAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %ecx
	movl	%ecx, 8(%r14)
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CID_FLASH_FAULT,8,3       ## @V4L2_CID_FLASH_FAULT
	.comm	_REG_FLAG,4,2                   ## @REG_FLAG
	.comm	_FAULT_SHORT_CIRCUIT,4,2        ## @FAULT_SHORT_CIRCUIT
	.comm	_V4L2_FLASH_FAULT_SHORT_CIRCUIT,4,2 ## @V4L2_FLASH_FAULT_SHORT_CIRCUIT
	.comm	_FAULT_OVERTEMP,4,2             ## @FAULT_OVERTEMP
	.comm	_V4L2_FLASH_FAULT_OVER_TEMPERATURE,4,2 ## @V4L2_FLASH_FAULT_OVER_TEMPERATURE
	.comm	_FAULT_TIMEOUT,4,2              ## @FAULT_TIMEOUT
	.comm	_V4L2_FLASH_FAULT_TIMEOUT,4,2   ## @V4L2_FLASH_FAULT_TIMEOUT
	.no_dead_strip	_lm3560_get_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3560_get_ctrl
_lm3560_get_ctrl:                       ; @lm3560_get_ctrl
	.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	x20, x0
	bl	_to_lm3560_flash
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _V4L2_CID_FLASH_FAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CID_FLASH_FAULT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _REG_FLAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _FAULT_SHORT_CIRCUIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FAULT_SHORT_CIRCUIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _V4L2_FLASH_FAULT_SHORT_CIRCUIT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _V4L2_FLASH_FAULT_SHORT_CIRCUIT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w8
Lloh15:
	adrp	x9, _FAULT_OVERTEMP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FAULT_OVERTEMP@GOTPAGEOFF]
	csel	w10, wzr, w10, eq
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x11, _V4L2_FLASH_FAULT_OVER_TEMPERATURE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _V4L2_FLASH_FAULT_OVER_TEMPERATURE@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w9, w8
	csel	w9, wzr, w11, eq
	orr	w9, w9, w10
Lloh21:
	adrp	x10, _FAULT_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _FAULT_TIMEOUT@GOTPAGEOFF]
Lloh23:
	adrp	x11, _V4L2_FLASH_FAULT_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x11, [x11, _V4L2_FLASH_FAULT_TIMEOUT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w8, w9, w8
	str	w8, [x20, #8]
	b	LBB0_4
LBB0_3:
	neg	w21, w21
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CID_FLASH_FAULT,8,3       ; @V4L2_CID_FLASH_FAULT
	.comm	_REG_FLAG,4,2                   ; @REG_FLAG
	.comm	_FAULT_SHORT_CIRCUIT,4,2        ; @FAULT_SHORT_CIRCUIT
	.comm	_V4L2_FLASH_FAULT_SHORT_CIRCUIT,4,2 ; @V4L2_FLASH_FAULT_SHORT_CIRCUIT
	.comm	_FAULT_OVERTEMP,4,2             ; @FAULT_OVERTEMP
	.comm	_V4L2_FLASH_FAULT_OVER_TEMPERATURE,4,2 ; @V4L2_FLASH_FAULT_OVER_TEMPERATURE
	.comm	_FAULT_TIMEOUT,4,2              ; @FAULT_TIMEOUT
	.comm	_V4L2_FLASH_FAULT_TIMEOUT,4,2   ; @V4L2_FLASH_FAULT_TIMEOUT
	.no_dead_strip	_lm3560_get_ctrl
.subsections_via_symbols
