	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function noon010_enable_autowhitebalance
_noon010_enable_autowhitebalance:       ## @noon010_enable_autowhitebalance
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$1, %edi
	callq	_AWB_CTL_REG
	xorl	%edx, %edx
	testl	%r15d, %r15d
	sete	%dl
	orl	$46, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cam_i2c_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	setne	%bl
	xorl	%edi, %edi
	callq	_AWB_CTL_REG
	shll	$7, %ebx
	orl	$123, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cam_i2c_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_noon010_enable_autowhitebalance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function noon010_enable_autowhitebalance
_noon010_enable_autowhitebalance:       ; @noon010_enable_autowhitebalance
	.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
	mov	w0, #1
	bl	_AWB_CTL_REG
	mov	x1, x0
	cmp	w20, #0
	mov	w8, #46
	cinc	w2, w8, eq
	mov	x0, x19
	bl	_cam_i2c_write
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_AWB_CTL_REG
	mov	x1, x0
	mov	w8, #251
	mov	w9, #123
	cmp	w20, #0
	csel	w2, w9, w8, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cam_i2c_write
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_noon010_enable_autowhitebalance
.subsections_via_symbols
