	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function setexposure
LCPI0_0:
	.long	0                               ## 0x0
	.long	450                             ## 0x1c2
	.long	550                             ## 0x226
	.long	625                             ## 0x271
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,450,550,625]
	movaps	%xmm0, -80(%rbp)
	movq	_EXPOSURE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$-2048, %ebx                    ## imm = 0xF800
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cltq
	cmpq	%rax, %r14
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r14), %rax
	addl	$2048, %ebx                     ## imm = 0x800
	cmpl	%r13d, -76(%rbp,%r14,4)
	movq	%rax, %r14
	jl	LBB0_1
## %bb.3:
	subl	-84(%rbp,%rax,4), %r13d
	leal	300(%r13), %r12d
	cmpl	$1, %eax
	cmovel	%r13d, %r12d
	orl	%ebx, %r12d
LBB0_4:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	%r12d, (%rax)
	sarl	$8, %r12d
	movl	%r12d, 4(%rax)
	movl	$33545, %esi                    ## imm = 0x8309
	movl	$2, %edx
	callq	_reg_w_buf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EXPOSURE_MAX,4,2               ## @EXPOSURE_MAX
	.no_dead_strip	_setexposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function setexposure
lCPI0_0:
	.long	0                               ; 0x0
	.long	450                             ; 0x1c2
	.long	550                             ; 0x226
	.long	625                             ; 0x271
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_setexposure:                           ; @setexposure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x22, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
Lloh5:
	adrp	x8, _EXPOSURE_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXPOSURE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	mov	w21, #-2048
	mov	x23, sp
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x22, #1
	add	x9, x23, x22, lsl #2
	ldr	w9, [x9, #4]
	add	w21, w21, #2048
	mov	x22, x8
	cmp	w9, w20
	b.lt	LBB0_1
; %bb.3:
	mov	x9, sp
	add	x9, x9, x8, lsl #2
	ldur	w9, [x9, #-4]
	sub	w9, w20, w9
	add	w10, w9, #300
	cmp	w8, #1
	csel	w8, w9, w10, eq
	orr	w8, w8, w21
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
	ldr	x9, [x19]
	asr	w10, w8, #8
	stp	w8, w10, [x9]
	mov	x0, x19
	mov	w1, #33545
	mov	w2, #2
	bl	_reg_w_buf
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EXPOSURE_MAX,4,2               ; @EXPOSURE_MAX
	.no_dead_strip	_setexposure
.subsections_via_symbols
