	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_set_white_balance
_s5c73m3_set_white_balance:             ## @s5c73m3_set_white_balance
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	_s5c73m3_set_white_balance.wb(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	(%r15,%rbx,4), %eax
	cmpl	%r12d, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_s5c73m3_dbg@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	8(%r14), %r12
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_v4l2_ctrl_get_menu
	movl	(%rax,%rbx,4), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_v4l2_dbg
	movq	_COMM_AWB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	2(%r15,%rbx,4), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s5c73m3_isp_command            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @s5c73m3_set_white_balance.wb
_s5c73m3_set_white_balance.wb:
	.short	128                             ## 0x80
	.short	134                             ## 0x86
	.short	130                             ## 0x82
	.short	136                             ## 0x88
	.short	129                             ## 0x81
	.short	135                             ## 0x87
	.short	132                             ## 0x84
	.short	138                             ## 0x8a
	.short	131                             ## 0x83
	.short	137                             ## 0x89
	.short	133                             ## 0x85
	.short	139                             ## 0x8b

	.comm	_s5c73m3_dbg,4,2                ## @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting white balance to: %s\n"

	.comm	_COMM_AWB_MODE,4,2              ## @COMM_AWB_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_s5c73m3_set_white_balance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_set_white_balance
_s5c73m3_set_white_balance:             ; @s5c73m3_set_white_balance
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _s5c73m3_set_white_balance.wb@PAGE
Lloh1:
	add	x0, x0, _s5c73m3_set_white_balance.wb@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x21, _s5c73m3_set_white_balance.wb@PAGE
Lloh3:
	add	x21, x21, _s5c73m3_set_white_balance.wb@PAGEOFF
	mov	x22, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [x22]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	add	x22, x22, #4
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh7:
	adrp	x8, _s5c73m3_dbg@GOTPAGE
Lloh8:
	ldr	x8, [x8, _s5c73m3_dbg@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	mov	x21, x19
	ldr	x8, [x21], #8
	ldr	w0, [x8]
	bl	_v4l2_ctrl_get_menu
	ldr	w4, [x0, x23, lsl #2]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x20
	mov	x2, x21
	bl	_v4l2_dbg
Lloh12:
	adrp	x8, _COMM_AWB_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMM_AWB_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldrh	w2, [x22, #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_s5c73m3_isp_command
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	1                               ; @s5c73m3_set_white_balance.wb
_s5c73m3_set_white_balance.wb:
	.short	128                             ; 0x80
	.short	134                             ; 0x86
	.short	130                             ; 0x82
	.short	136                             ; 0x88
	.short	129                             ; 0x81
	.short	135                             ; 0x87
	.short	132                             ; 0x84
	.short	138                             ; 0x8a
	.short	131                             ; 0x83
	.short	137                             ; 0x89
	.short	133                             ; 0x85
	.short	139                             ; 0x8b

	.comm	_s5c73m3_dbg,4,2                ; @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting white balance to: %s\n"

	.comm	_COMM_AWB_MODE,4,2              ; @COMM_AWB_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_s5c73m3_set_white_balance
.subsections_via_symbols
