	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setawb_n_RGB
_setawb_n_RGB:                          ## @setawb_n_RGB
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movaps	l___const.setawb_n_RGB.all_gain_reg+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	l___const.setawb_n_RGB.all_gain_reg(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	32(%rdi), %rax
	movl	(%rax), %eax
	movq	16(%rdi), %rcx
	movq	24(%rdi), %rdx
	movl	(%rdx), %edx
	addl	%eax, %edx
	cmpl	$17, %edx
	movl	$16, %r8d
	cmovll	%r8d, %edx
	cmpl	$64, %edx
	movl	$64, %esi
	cmovgel	%esi, %edx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmpl	$17, %ecx
	cmovll	%r8d, %ecx
	cmpl	$64, %ecx
	cmovgel	%esi, %ecx
	movl	%edx, -44(%rbp)
	movl	%ecx, -36(%rbp)
	movl	%eax, -28(%rbp)
	movq	_sensor_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -20(%rbp)
	movq	8(%rdi), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_2
## %bb.1:
	andl	$-5, %eax
	movl	%eax, -20(%rbp)
LBB0_2:
	leaq	-48(%rbp), %rsi
	movl	$32, %edx
	callq	_reg_w_buf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.setawb_n_RGB.all_gain_reg
l___const.setawb_n_RGB.all_gain_reg:
	.long	135                             ## 0x87
	.long	0                               ## 0x0
	.long	136                             ## 0x88
	.long	0                               ## 0x0
	.long	137                             ## 0x89
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	0                               ## 0x0

	.comm	_sensor_data,8,3                ## @sensor_data
	.no_dead_strip	_setawb_n_RGB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setawb_n_RGB
_setawb_n_RGB:                          ; @setawb_n_RGB
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, l___const.setawb_n_RGB.all_gain_reg@PAGE
Lloh4:
	add	x8, x8, l___const.setawb_n_RGB.all_gain_reg@PAGEOFF
	ldur	q0, [x8, #12]
	stur	q0, [sp, #12]
	ldr	q0, [x8]
	str	q0, [sp]
	ldp	x9, x8, [x0, #24]
	ldr	w8, [x8]
	ldr	x10, [x0, #16]
	ldr	w9, [x9]
	add	w9, w9, w8
	mov	w11, #16
	cmp	w9, #16
	csel	w9, w9, w11, gt
	mov	w12, #64
	cmp	w9, #64
	csel	w9, w9, w12, lt
	ldr	w10, [x10]
	add	w10, w10, w8
	cmp	w10, #16
	csel	w10, w10, w11, gt
	cmp	w10, #64
	csel	w10, w10, w12, lt
	str	w9, [sp, #4]
	str	w10, [sp, #12]
	str	w8, [sp, #20]
Lloh5:
	adrp	x8, _sensor_data@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sensor_data@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldp	x9, x10, [x0]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #28]
	ldr	w9, [x10]
	cbnz	w9, LBB0_2
; %bb.1:
	and	w8, w8, #0xfffffffb
	str	w8, [sp, #28]
LBB0_2:
	mov	x1, sp
	mov	w2, #32
	bl	_reg_w_buf
	ldur	x8, [x29, #-8]
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_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.setawb_n_RGB.all_gain_reg
l___const.setawb_n_RGB.all_gain_reg:
	.long	135                             ; 0x87
	.long	0                               ; 0x0
	.long	136                             ; 0x88
	.long	0                               ; 0x0
	.long	137                             ; 0x89
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	0                               ; 0x0

	.comm	_sensor_data,8,3                ; @sensor_data
	.no_dead_strip	_setawb_n_RGB
.subsections_via_symbols
