	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	imull	$120, (%rdi), %eax
	movl	$2, %r14d
	cmpl	$2000, %eax                     ## imm = 0x7D0
	jl	LBB0_2
## %bb.1:
	movl	%eax, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	cmpl	$63, %eax
	movl	$63, %r14d
	cmovll	%eax, %r14d
LBB0_2:
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	$4, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%r14d, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	$1, %edx
	callq	_reg_w
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	setne	%al
	cmpl	$4, %r14d
	setb	%cl
	andb	%al, %cl
	movzbl	%cl, %edx
	orl	$8, %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$17, %esi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	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	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
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #120
	mul	w8, w8, w9
	cmp	w8, #2000
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #2
	b	LBB0_3
LBB0_2:
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #38
	mov	w9, #63
	cmp	w8, #63
	csel	w20, w8, w9, lt
LBB0_3:
	mov	x0, x19
	mov	w1, #255
	mov	w2, #4
	bl	_reg_w
	mov	x0, x19
	mov	w1, #2
	mov	x2, x20
	bl	_reg_w
	mov	x0, x19
	mov	w1, #255
	mov	w2, #1
	bl	_reg_w
	ldp	x9, x8, [x19]
	sbfiz	x9, x9, #3, #32
	ldr	x8, [x8, x9]
	cmp	w20, #4
	ccmp	x8, #0, #4, lo
	mov	w8, #8
	cinc	w2, w8, ne
	mov	x0, x19
	mov	w1, #8
	bl	_reg_w
	mov	x0, x19
	mov	w1, #17
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_w
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_setexposure
.subsections_via_symbols
