	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ctrl_set_aewb_lock
___ctrl_set_aewb_lock:                  ## @__ctrl_set_aewb_lock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rsi), %r12d
	movq	_V4L2_LOCK_WHITE_BALANCE@GOTPCREL(%rip), %rax
	movq	_V4L2_LOCK_EXPOSURE@GOTPCREL(%rip), %rcx
	movq	8(%rdi), %r14
	movl	(%rcx), %r13d
	andl	%r12d, %r13d
	jne	LBB0_1
## %bb.2:
	movq	_ISP_AA_COMMAND_START@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_ISP_AA_COMMAND_STOP@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rax), %r15d
	movl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	_ISP_AA_TARGET_AE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_PARAM_ISP_AA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fimc_is_set_param_bit
	movl	%r13d, (%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fimc_is_itf_s_param
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	andl	%r12d, %r15d
	jne	LBB0_5
## %bb.6:
	movq	_ISP_AA_COMMAND_START@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ISP_AA_COMMAND_STOP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ISP_AA_TARGET_AE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_PARAM_ISP_AA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fimc_is_set_param_bit
	movl	%r15d, 4(%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimc_is_itf_s_param            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_LOCK_WHITE_BALANCE,4,2    ## @V4L2_LOCK_WHITE_BALANCE
	.comm	_V4L2_LOCK_EXPOSURE,4,2         ## @V4L2_LOCK_EXPOSURE
	.comm	_ISP_AA_COMMAND_STOP,4,2        ## @ISP_AA_COMMAND_STOP
	.comm	_ISP_AA_COMMAND_START,4,2       ## @ISP_AA_COMMAND_START
	.comm	_ISP_AA_TARGET_AE,8,3           ## @ISP_AA_TARGET_AE
	.comm	_PARAM_ISP_AA,4,2               ## @PARAM_ISP_AA
	.no_dead_strip	___ctrl_set_aewb_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ctrl_set_aewb_lock
___ctrl_set_aewb_lock:                  ; @__ctrl_set_aewb_lock
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w20, [x1]
Lloh0:
	adrp	x8, _V4L2_LOCK_WHITE_BALANCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_LOCK_WHITE_BALANCE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _V4L2_LOCK_EXPOSURE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_LOCK_EXPOSURE@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x23, _ISP_AA_COMMAND_STOP@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ISP_AA_COMMAND_STOP@GOTPAGEOFF]
Lloh8:
	adrp	x24, _ISP_AA_COMMAND_START@GOTPAGE
Lloh9:
	ldr	x24, [x24, _ISP_AA_COMMAND_START@GOTPAGEOFF]
	ldr	x21, [x0, #8]
	ands	w27, w8, w20
	csel	x8, x24, x23, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x25, _ISP_AA_TARGET_AE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ISP_AA_TARGET_AE@GOTPAGEOFF]
	str	w8, [x21]
	ldr	x8, [x25]
	str	x8, [x21, #8]
Lloh12:
	adrp	x26, _PARAM_ISP_AA@GOTPAGE
Lloh13:
	ldr	x26, [x26, _PARAM_ISP_AA@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_fimc_is_set_param_bit
	str	w27, [x19]
	bl	_wmb
	mov	x0, x19
	mov	w1, #0
	bl	_fimc_is_itf_s_param
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ands	w20, w22, w20
	csel	x8, x24, x23, eq
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	x8, [x25]
	str	x8, [x21, #8]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_fimc_is_set_param_bit
	str	w20, [x19, #4]
	bl	_wmb
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_fimc_is_itf_s_param
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_LOCK_WHITE_BALANCE,4,2    ; @V4L2_LOCK_WHITE_BALANCE
	.comm	_V4L2_LOCK_EXPOSURE,4,2         ; @V4L2_LOCK_EXPOSURE
	.comm	_ISP_AA_COMMAND_STOP,4,2        ; @ISP_AA_COMMAND_STOP
	.comm	_ISP_AA_COMMAND_START,4,2       ; @ISP_AA_COMMAND_START
	.comm	_ISP_AA_TARGET_AE,8,3           ; @ISP_AA_TARGET_AE
	.comm	_PARAM_ISP_AA,4,2               ; @PARAM_ISP_AA
	.no_dead_strip	___ctrl_set_aewb_lock
.subsections_via_symbols
