	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setbrightness
_setbrightness:                         ## @setbrightness
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SENSOR_OV562x@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leal	118(%rbx), %edx
	movq	%r14, %rdi
	movl	$36, %esi
	callq	_sccb_write
	leal	106(%rbx), %edx
	movq	%r14, %rdi
	movl	$37, %esi
	callq	_sccb_write
	cmpl	$20, %ebx
	movl	$148, %eax
	movl	$230, %ecx
	cmovll	%eax, %ecx
	cmpl	$-40, %ebx
	movl	$113, %edx
	cmovgel	%ecx, %edx
	movq	%r14, %rdi
	movl	$38, %esi
	jmp	LBB0_3
LBB0_2:
	movl	$15, %eax
	subl	%ebx, %eax
	leal	268435448(%rbx), %edx
	cmpl	$8, %ebx
	cmovll	%eax, %edx
	shll	$4, %edx
	orl	$15, %edx
	movq	%r14, %rdi
	movl	$85, %esi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sccb_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_OV562x,8,3              ## @SENSOR_OV562x
	.no_dead_strip	_setbrightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setbrightness
_setbrightness:                         ; @setbrightness
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SENSOR_OV562x@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SENSOR_OV562x@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	w2, w20, #118
	mov	x0, x19
	mov	w1, #36
	bl	_sccb_write
	add	w2, w20, #106
	mov	x0, x19
	mov	w1, #37
	bl	_sccb_write
	mov	w8, #230
	mov	w9, #148
	cmp	w20, #20
	csel	w8, w9, w8, lt
	cmn	w20, #40
	mov	w9, #113
	csel	w2, w9, w8, lt
	mov	x0, x19
	mov	w1, #38
	b	LBB0_3
LBB0_2:
	mov	w2, #15
	sub	w8, w2, w20
	mov	w9, #268435448
	add	w9, w20, w9
	cmp	w20, #8
	csel	w8, w8, w9, lt
	bfi	w2, w8, #4, #28
	mov	x0, x19
	mov	w1, #85
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sccb_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_OV562x,8,3              ; @SENSOR_OV562x
	.no_dead_strip	_setbrightness
.subsections_via_symbols
