	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %eax
	imull	$90, %eax, %ecx
	movl	$6, %r15d
	cmpl	$10001, %ecx                    ## imm = 0x2711
	jl	LBB0_3
## %bb.1:
	addl	$1999, %ecx                     ## imm = 0x7CF
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	shrq	$39, %rcx
	cmpl	$63, %ecx
	movl	$63, %r15d
	cmovll	%ecx, %r15d
	cmpl	$13, %r15d
	jb	LBB0_3
## %bb.2:
	addl	$2, %r15d
	movzbl	%r15b, %ecx
	imull	$171, %ecx, %edx
	shrl	$9, %edx
	leal	(%rdx,%rdx,2), %edx
	subb	%dl, %cl
	movzbl	%cl, %ecx
	subl	%ecx, %r15d
LBB0_3:
	imull	$20160, %eax, %eax              ## imm = 0x4EC0
	imull	$1000, %r15d, %ecx              ## imm = 0x3E8
	cltd
	idivl	%ecx
	movl	$448, %ebx                      ## imm = 0x1C0
	subl	%eax, %ebx
	movq	%r14, %rdi
	movl	$255, %esi
	movl	$3, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%r15d, %edx
	callq	_reg_w
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	$14, %esi
	callq	_reg_w
	sarl	$8, %ebx
	movq	%r14, %rdi
	movl	$15, %esi
	movl	%ebx, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$17, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
	mov	w9, #90
	mul	w9, w8, w9
	mov	w10, #10001
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #6
	b	LBB0_4
LBB0_2:
	add	w9, w9, #1999
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #39
	mov	w10, #63
	cmp	w9, #63
	csel	w20, w9, w10, lt
	cmp	w20, #13
	b.lo	LBB0_4
; %bb.3:
	add	w9, w20, #2
	and	w10, w9, #0xff
	mov	w11, #171
	mul	w10, w10, w11
	lsr	w10, w10, #9
	add	w10, w10, w10, lsl #1
	sub	w10, w9, w10
	sub	w20, w9, w10, uxtb
LBB0_4:
	mov	w9, #20160
	mul	w8, w8, w9
	mov	w9, #1000
	mul	w9, w20, w9
	sdiv	w8, w8, w9
	mov	w9, #448
	sub	w21, w9, w8
	mov	x0, x19
	mov	w1, #255
	mov	w2, #3
	bl	_reg_w
	mov	x0, x19
	mov	w1, #2
	mov	x2, x20
	bl	_reg_w
	and	w2, w21, #0xff
	mov	x0, x19
	mov	w1, #14
	bl	_reg_w
	asr	w2, w21, #8
	mov	x0, x19
	mov	w1, #15
	bl	_reg_w
	mov	x0, x19
	mov	w1, #17
	mov	w2, #1
	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	_reg_w
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_setexposure
.subsections_via_symbols
