	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3645a_set_control
_as3645a_set_control:                   ## @as3645a_set_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movl	8(%rdi), %edx
	movq	_AS_CONTROL_COIL_PEAK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_AS_CONTROL_OUT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%esi, %eax
	orl	%eax, %edx
	movq	_AS_MODE_FLASH@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	(%rdi), %rax
	movq	_V4L2_FLASH_STROBE_SOURCE_EXTERNAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_AS_CONTROL_STROBE_TYPE_LEVEL@GOTPCREL(%rip), %rax
	movq	_AS_CONTROL_STROBE_ON@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
LBB0_5:
	movq	_AS_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_as3645a_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AS_CONTROL_COIL_PEAK_SHIFT,4,2 ## @AS_CONTROL_COIL_PEAK_SHIFT
	.comm	_AS_CONTROL_OUT_ON,4,2          ## @AS_CONTROL_OUT_ON
	.comm	_AS_MODE_FLASH,4,2              ## @AS_MODE_FLASH
	.comm	_V4L2_FLASH_STROBE_SOURCE_EXTERNAL,8,3 ## @V4L2_FLASH_STROBE_SOURCE_EXTERNAL
	.comm	_AS_CONTROL_STROBE_TYPE_LEVEL,4,2 ## @AS_CONTROL_STROBE_TYPE_LEVEL
	.comm	_AS_CONTROL_STROBE_ON,4,2       ## @AS_CONTROL_STROBE_ON
	.comm	_AS_CONTROL_REG,4,2             ## @AS_CONTROL_REG
	.no_dead_strip	_as3645a_set_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3645a_set_control
_as3645a_set_control:                   ; @as3645a_set_control
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _AS_CONTROL_COIL_PEAK_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AS_CONTROL_COIL_PEAK_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh3:
	adrp	x9, _AS_CONTROL_OUT_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AS_CONTROL_OUT_ON@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w2, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w1
	orr	w2, w8, w9
Lloh6:
	adrp	x8, _AS_MODE_FLASH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AS_MODE_FLASH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _V4L2_FLASH_STROBE_SOURCE_EXTERNAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_FLASH_STROBE_SOURCE_EXTERNAL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _AS_CONTROL_STROBE_TYPE_LEVEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AS_CONTROL_STROBE_TYPE_LEVEL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _AS_CONTROL_STROBE_ON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AS_CONTROL_STROBE_ON@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w2
	orr	w2, w8, w9
LBB0_3:
Lloh18:
	adrp	x8, _AS_CONTROL_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AS_CONTROL_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	b	_as3645a_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AS_CONTROL_COIL_PEAK_SHIFT,4,2 ; @AS_CONTROL_COIL_PEAK_SHIFT
	.comm	_AS_CONTROL_OUT_ON,4,2          ; @AS_CONTROL_OUT_ON
	.comm	_AS_MODE_FLASH,4,2              ; @AS_MODE_FLASH
	.comm	_V4L2_FLASH_STROBE_SOURCE_EXTERNAL,8,3 ; @V4L2_FLASH_STROBE_SOURCE_EXTERNAL
	.comm	_AS_CONTROL_STROBE_TYPE_LEVEL,4,2 ; @AS_CONTROL_STROBE_TYPE_LEVEL
	.comm	_AS_CONTROL_STROBE_ON,4,2       ; @AS_CONTROL_STROBE_ON
	.comm	_AS_CONTROL_REG,4,2             ; @AS_CONTROL_REG
	.no_dead_strip	_as3645a_set_control
.subsections_via_symbols
