	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setexposure
_setexposure:                           ## @setexposure
	.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
	movl	%edx, %eax
	movl	%esi, %edx
	movq	%rdi, %r14
	shll	$6, %edx
	movq	_EXPO_CHANGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
	movq	_V4L2_CID_POWER_LINE_FREQUENCY_50HZ@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movslq	%edx, %rcx
	imulq	$-1656147635, %rcx, %rdx        ## imm = 0x9D49314D
	shrq	$32, %rdx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$16, %ecx
	addl	%edx, %ecx
	imull	$106667, %ecx, %edx             ## imm = 0x1A0AB
LBB0_2:
	movq	_V4L2_CID_POWER_LINE_FREQUENCY_60HZ@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movslq	%edx, %rax
	imulq	$1583294765, %rax, %rax         ## imm = 0x5E5F292D
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$47, %rax
	addl	%ecx, %eax
	imull	$88889, %eax, %edx              ## imm = 0x15B39
LBB0_4:
	movl	%edx, %r15d
	sarl	$16, %r15d
	movl	%edx, %ebx
	sarl	$8, %ebx
	movq	_HV7131_REG_TITL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_se401_set_feature
	movq	_HV7131_REG_TITM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_se401_set_feature
	movq	_HV7131_REG_TITU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_se401_set_feature              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXPO_CHANGED,4,2               ## @EXPO_CHANGED
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_50HZ,4,2 ## @V4L2_CID_POWER_LINE_FREQUENCY_50HZ
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_60HZ,4,2 ## @V4L2_CID_POWER_LINE_FREQUENCY_60HZ
	.comm	_HV7131_REG_TITL,4,2            ## @HV7131_REG_TITL
	.comm	_HV7131_REG_TITM,4,2            ## @HV7131_REG_TITM
	.comm	_HV7131_REG_TITU,4,2            ## @HV7131_REG_TITU
	.no_dead_strip	_setexposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setexposure
_setexposure:                           ; @setexposure
	.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
	lsl	w8, w1, #6
Lloh0:
	adrp	x9, _EXPO_CHANGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXPO_CHANGED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x0]
Lloh3:
	adrp	x9, _V4L2_CID_POWER_LINE_FREQUENCY_50HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CID_POWER_LINE_FREQUENCY_50HZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #12621
	movk	w9, #40265, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #16
	add	w8, w9, w8, lsr #31
	mov	w9, #41131
	movk	w9, #1, lsl #16
	mul	w8, w8, w9
LBB0_2:
	mov	w9, #10541
	movk	w9, #24159, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #47
	add	w9, w9, w10
	mov	w10, #23353
	movk	w10, #1, lsl #16
	mul	w9, w9, w10
Lloh6:
	adrp	x10, _V4L2_CID_POWER_LINE_FREQUENCY_60HZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_CID_POWER_LINE_FREQUENCY_60HZ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, w2
	csel	w2, w8, w9, ne
	asr	w20, w2, #16
	asr	w21, w2, #8
Lloh9:
	adrp	x8, _HV7131_REG_TITL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HV7131_REG_TITL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_se401_set_feature
Lloh12:
	adrp	x8, _HV7131_REG_TITM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HV7131_REG_TITM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_se401_set_feature
Lloh15:
	adrp	x8, _HV7131_REG_TITU@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HV7131_REG_TITU@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	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
	b	_se401_set_feature
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EXPO_CHANGED,4,2               ; @EXPO_CHANGED
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_50HZ,4,2 ; @V4L2_CID_POWER_LINE_FREQUENCY_50HZ
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_60HZ,4,2 ; @V4L2_CID_POWER_LINE_FREQUENCY_60HZ
	.comm	_HV7131_REG_TITL,4,2            ; @HV7131_REG_TITL
	.comm	_HV7131_REG_TITM,4,2            ; @HV7131_REG_TITM
	.comm	_HV7131_REG_TITU,4,2            ; @HV7131_REG_TITU
	.no_dead_strip	_setexposure
.subsections_via_symbols
