	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_set_exposure_auto
_pwc_set_exposure_auto:                 ## @pwc_set_exposure_auto
	.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, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	_V4L2_EXPOSURE_AUTO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	cmpq	%r15, %r14
	movq	_SET_LUM_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SHUTTER_MODE_FORMATTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$255, %ecx
	cmovel	%eax, %ecx
	movq	%rbx, %rdi
	callq	_pwc_set_u8_ctrl
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	cmpq	%r15, %r14
	jne	LBB0_5
## %bb.3:
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	cmpq	%r15, %r14
	je	LBB0_8
LBB0_5:
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	_SET_LUM_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PRESET_SHUTTER_FORMATTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_pwc_set_u16_ctrl
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EXPOSURE_AUTO,8,3         ## @V4L2_EXPOSURE_AUTO
	.comm	_SET_LUM_CTL,4,2                ## @SET_LUM_CTL
	.comm	_SHUTTER_MODE_FORMATTER,4,2     ## @SHUTTER_MODE_FORMATTER
	.comm	_PRESET_SHUTTER_FORMATTER,4,2   ## @PRESET_SHUTTER_FORMATTER
	.no_dead_strip	_pwc_set_exposure_auto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_set_exposure_auto
_pwc_set_exposure_auto:                 ; @pwc_set_exposure_auto
	.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	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _V4L2_EXPOSURE_AUTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_EXPOSURE_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x9]
	ldp	x21, x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _SET_LUM_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_LUM_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SHUTTER_MODE_FORMATTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHUTTER_MODE_FORMATTER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	cmp	x21, x20
	mov	w8, #255
	csel	w3, wzr, w8, eq
	mov	x0, x19
	bl	_pwc_set_u8_ctrl
	cbnz	w0, LBB0_8
; %bb.2:
	cmp	x21, x20
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_8
LBB0_4:
	cmp	x21, x20
	b.eq	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
Lloh9:
	adrp	x9, _SET_LUM_CTL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SET_LUM_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
Lloh12:
	adrp	x9, _PRESET_SHUTTER_FORMATTER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PRESET_SHUTTER_FORMATTER@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_pwc_set_u16_ctrl
	cbnz	w0, LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EXPOSURE_AUTO,8,3         ; @V4L2_EXPOSURE_AUTO
	.comm	_SET_LUM_CTL,4,2                ; @SET_LUM_CTL
	.comm	_SHUTTER_MODE_FORMATTER,4,2     ; @SHUTTER_MODE_FORMATTER
	.comm	_PRESET_SHUTTER_FORMATTER,4,2   ; @PRESET_SHUTTER_FORMATTER
	.no_dead_strip	_pwc_set_exposure_auto
.subsections_via_symbols
