	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_set_awb
_pwc_set_awb:                           ## @pwc_set_awb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_8
## %bb.1:
	movq	_SET_CHROM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WB_MODE_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rdi), %rcx
	movq	%rbx, %rdi
	callq	_pwc_set_u8_ctrl
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	24(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_awb_manual@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	$0, (%rbx)
LBB0_4:
	movq	_awb_indoor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_awb_outdoor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_awb_fl@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_7:
	callq	_pwc_g_volatile_ctrl
	movq	24(%rbx), %rdi
LBB0_8:
	movq	(%rdi), %rcx
	movq	_awb_manual@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.9:
	movq	16(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.10:
	movq	_SET_CHROM_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PRESET_MANUAL_RED_GAIN_FORMATTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	callq	_pwc_set_u8_ctrl
	testl	%eax, %eax
	jne	LBB0_14
LBB0_11:
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.12:
	movq	_SET_CHROM_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PRESET_MANUAL_BLUE_GAIN_FORMATTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	callq	_pwc_set_u8_ctrl
	testl	%eax, %eax
	jne	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_CHROM_CTL,4,2              ## @SET_CHROM_CTL
	.comm	_WB_MODE_FORMATTER,4,2          ## @WB_MODE_FORMATTER
	.comm	_awb_manual,8,3                 ## @awb_manual
	.comm	_awb_indoor,8,3                 ## @awb_indoor
	.comm	_awb_outdoor,8,3                ## @awb_outdoor
	.comm	_awb_fl,8,3                     ## @awb_fl
	.comm	_PRESET_MANUAL_RED_GAIN_FORMATTER,4,2 ## @PRESET_MANUAL_RED_GAIN_FORMATTER
	.comm	_PRESET_MANUAL_BLUE_GAIN_FORMATTER,4,2 ## @PRESET_MANUAL_BLUE_GAIN_FORMATTER
	.no_dead_strip	_pwc_set_awb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_set_awb
_pwc_set_awb:                           ; @pwc_set_awb
	.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	x0, [x0, #24]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _SET_CHROM_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SET_CHROM_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _WB_MODE_FORMATTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WB_MODE_FORMATTER@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	x3, [x0]
	mov	x0, x19
	bl	_pwc_set_u8_ctrl
	cbnz	w0, LBB0_12
; %bb.2:
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _awb_manual@GOTPAGE
Lloh7:
	ldr	x9, [x9, _awb_manual@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	str	wzr, [x19]
LBB0_4:
Lloh9:
	adrp	x9, _awb_indoor@GOTPAGE
Lloh10:
	ldr	x9, [x9, _awb_indoor@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _awb_outdoor@GOTPAGE
Lloh13:
	ldr	x10, [x10, _awb_outdoor@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _awb_fl@GOTPAGE
Lloh16:
	ldr	x11, [x11, _awb_fl@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_6
; %bb.5:
	bl	_pwc_g_volatile_ctrl
	ldr	x0, [x19, #24]
LBB0_6:
	ldr	x8, [x0]
Lloh18:
	adrp	x9, _awb_manual@GOTPAGE
Lloh19:
	ldr	x9, [x9, _awb_manual@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_9
; %bb.8:
Lloh21:
	adrp	x9, _SET_CHROM_CTL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SET_CHROM_CTL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
Lloh24:
	adrp	x9, _PRESET_MANUAL_RED_GAIN_FORMATTER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PRESET_MANUAL_RED_GAIN_FORMATTER@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x9]
	ldr	x3, [x8]
	mov	x0, x19
	bl	_pwc_set_u8_ctrl
	cbnz	w0, LBB0_12
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_11
; %bb.10:
Lloh27:
	adrp	x9, _SET_CHROM_CTL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SET_CHROM_CTL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
Lloh30:
	adrp	x9, _PRESET_MANUAL_BLUE_GAIN_FORMATTER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PRESET_MANUAL_BLUE_GAIN_FORMATTER@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x9]
	ldr	x3, [x8]
	mov	x0, x19
	bl	_pwc_set_u8_ctrl
	cbnz	w0, LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_CHROM_CTL,4,2              ; @SET_CHROM_CTL
	.comm	_WB_MODE_FORMATTER,4,2          ; @WB_MODE_FORMATTER
	.comm	_awb_manual,8,3                 ; @awb_manual
	.comm	_awb_indoor,8,3                 ; @awb_indoor
	.comm	_awb_outdoor,8,3                ; @awb_outdoor
	.comm	_awb_fl,8,3                     ; @awb_fl
	.comm	_PRESET_MANUAL_RED_GAIN_FORMATTER,4,2 ; @PRESET_MANUAL_RED_GAIN_FORMATTER
	.comm	_PRESET_MANUAL_BLUE_GAIN_FORMATTER,4,2 ; @PRESET_MANUAL_BLUE_GAIN_FORMATTER
	.no_dead_strip	_pwc_set_awb
.subsections_via_symbols
