	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_hw_set_awb
_s5k5baf_hw_set_awb:                    ## @s5k5baf_hw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movq	_REG_SF_RGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movq	_S5K5BAF_GAIN_GREEN_DEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r9d
	pushq	$1
	pushq	$1
	pushq	%rax
	callq	_s5k5baf_write_seq
	addq	$32, %rsp
LBB0_2:
	movq	_AALG_WB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5k5baf_hw_set_alg             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SF_RGAIN,4,2               ## @REG_SF_RGAIN
	.comm	_S5K5BAF_GAIN_GREEN_DEF,4,2     ## @S5K5BAF_GAIN_GREEN_DEF
	.comm	_AALG_WB_EN,4,2                 ## @AALG_WB_EN
	.no_dead_strip	_s5k5baf_hw_set_awb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_hw_set_awb
_s5k5baf_hw_set_awb:                    ; @s5k5baf_hw_set_awb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cbnz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REG_SF_RGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SF_RGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	x9, x8, [x20]
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _S5K5BAF_GAIN_GREEN_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S5K5BAF_GAIN_GREEN_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	w6, [x9]
	mov	w8, #1
	str	w8, [sp]
	mov	x0, x20
	mov	w3, #1
	mov	w5, #1
	mov	w7, #1
	bl	_s5k5baf_write_seq
LBB0_2:
Lloh6:
	adrp	x8, _AALG_WB_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AALG_WB_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_s5k5baf_hw_set_alg
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SF_RGAIN,4,2               ; @REG_SF_RGAIN
	.comm	_S5K5BAF_GAIN_GREEN_DEF,4,2     ; @S5K5BAF_GAIN_GREEN_DEF
	.comm	_AALG_WB_EN,4,2                 ; @AALG_WB_EN
	.no_dead_strip	_s5k5baf_hw_set_awb
.subsections_via_symbols
