	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_setautogain
_sd_setautogain:                        ## @sd_setautogain
	.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	%rsi, 16(%rdi)
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_PAC207_EXPOSURE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_PAC207_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	movq	_PAC_AUTOGAIN_IGNORE_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_setexposure
	movq	%rbx, %rdi
	callq	_setgain
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAC207_EXPOSURE_DEFAULT,4,2    ## @PAC207_EXPOSURE_DEFAULT
	.comm	_PAC207_GAIN_DEFAULT,4,2        ## @PAC207_GAIN_DEFAULT
	.comm	_PAC_AUTOGAIN_IGNORE_FRAMES,4,2 ## @PAC_AUTOGAIN_IGNORE_FRAMES
	.no_dead_strip	_sd_setautogain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_setautogain
_sd_setautogain:                        ; @sd_setautogain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	x1, [x0, #16]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _PAC207_EXPOSURE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAC207_EXPOSURE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PAC207_GAIN_DEFAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAC207_GAIN_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _PAC_AUTOGAIN_IGNORE_FRAMES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAC_AUTOGAIN_IGNORE_FRAMES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_setexposure
	mov	x0, x19
	bl	_setgain
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAC207_EXPOSURE_DEFAULT,4,2    ; @PAC207_EXPOSURE_DEFAULT
	.comm	_PAC207_GAIN_DEFAULT,4,2        ; @PAC207_GAIN_DEFAULT
	.comm	_PAC_AUTOGAIN_IGNORE_FRAMES,4,2 ; @PAC_AUTOGAIN_IGNORE_FRAMES
	.no_dead_strip	_sd_setautogain
.subsections_via_symbols
