	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_dark_gain_config
_us5182d_dark_gain_config:              ## @us5182d_dark_gain_config
	.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
	callq	_iio_priv
	movq	%rax, %rbx
	movq	_US5182D_CFG1_AGAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_us5182d_update_dark_th
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_US5182D_REG_AUTO_LDARK_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	8(%rbx), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_US5182D_REG_AUTO_HDARK_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	4(%rbx), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	movq	_US5182D_REG_DARK_AUTO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_US5182D_REG_DARK_AUTO_EN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_US5182D_CFG1_AGAIN_DEFAULT,4,2 ## @US5182D_CFG1_AGAIN_DEFAULT
	.comm	_US5182D_REG_AUTO_LDARK_GAIN,4,2 ## @US5182D_REG_AUTO_LDARK_GAIN
	.comm	_US5182D_REG_AUTO_HDARK_GAIN,4,2 ## @US5182D_REG_AUTO_HDARK_GAIN
	.comm	_US5182D_REG_DARK_AUTO_EN,4,2   ## @US5182D_REG_DARK_AUTO_EN
	.comm	_US5182D_REG_DARK_AUTO_EN_DEFAULT,4,2 ## @US5182D_REG_DARK_AUTO_EN_DEFAULT
	.no_dead_strip	_us5182d_dark_gain_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_dark_gain_config
_us5182d_dark_gain_config:              ; @us5182d_dark_gain_config
	.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
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _US5182D_CFG1_AGAIN_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _US5182D_CFG1_AGAIN_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_us5182d_update_dark_th
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _US5182D_REG_AUTO_LDARK_GAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _US5182D_REG_AUTO_LDARK_GAIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _US5182D_REG_AUTO_HDARK_GAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _US5182D_REG_AUTO_HDARK_GAIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	w0, w2, [x19]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _US5182D_REG_DARK_AUTO_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _US5182D_REG_DARK_AUTO_EN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _US5182D_REG_DARK_AUTO_EN_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _US5182D_REG_DARK_AUTO_EN_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_smbus_write_byte_data
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_US5182D_CFG1_AGAIN_DEFAULT,4,2 ; @US5182D_CFG1_AGAIN_DEFAULT
	.comm	_US5182D_REG_AUTO_LDARK_GAIN,4,2 ; @US5182D_REG_AUTO_LDARK_GAIN
	.comm	_US5182D_REG_AUTO_HDARK_GAIN,4,2 ; @US5182D_REG_AUTO_HDARK_GAIN
	.comm	_US5182D_REG_DARK_AUTO_EN,4,2   ; @US5182D_REG_DARK_AUTO_EN
	.comm	_US5182D_REG_DARK_AUTO_EN_DEFAULT,4,2 ; @US5182D_REG_DARK_AUTO_EN_DEFAULT
	.no_dead_strip	_us5182d_dark_gain_config
.subsections_via_symbols
