	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw2804_g_volatile_ctrl
_tw2804_g_volatile_ctrl:                ## @tw2804_g_volatile_ctrl
	.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
	callq	_to_state_from_ctrl
	movq	%rax, %rdi
	callq	_v4l2_get_subdevdata
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.1:
	movslq	%ecx, %rcx
	leaq	l_switch.table.tw2804_g_volatile_ctrl(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_read_reg
	movq	%rax, 8(%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TW2804_REG_GAIN,4,2            ## @TW2804_REG_GAIN
	.comm	_TW2804_REG_CHROMA_GAIN,4,2     ## @TW2804_REG_CHROMA_GAIN
	.comm	_TW2804_REG_BLUE_BALANCE,4,2    ## @TW2804_REG_BLUE_BALANCE
	.comm	_TW2804_REG_RED_BALANCE,4,2     ## @TW2804_REG_RED_BALANCE
	.no_dead_strip	_tw2804_g_volatile_ctrl
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tw2804_g_volatile_ctrl
l_switch.table.tw2804_g_volatile_ctrl:
	.quad	_TW2804_REG_RED_BALANCE
	.quad	_TW2804_REG_GAIN
	.quad	_TW2804_REG_CHROMA_GAIN
	.quad	_TW2804_REG_BLUE_BALANCE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw2804_g_volatile_ctrl
_tw2804_g_volatile_ctrl:                ; @tw2804_g_volatile_ctrl
	.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
	bl	_to_state_from_ctrl
	bl	_v4l2_get_subdevdata
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.tw2804_g_volatile_ctrl@PAGE
Lloh1:
	add	x9, x9, l_switch.table.tw2804_g_volatile_ctrl@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_read_reg
	str	x0, [x19, #8]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TW2804_REG_GAIN,4,2            ; @TW2804_REG_GAIN
	.comm	_TW2804_REG_CHROMA_GAIN,4,2     ; @TW2804_REG_CHROMA_GAIN
	.comm	_TW2804_REG_BLUE_BALANCE,4,2    ; @TW2804_REG_BLUE_BALANCE
	.comm	_TW2804_REG_RED_BALANCE,4,2     ; @TW2804_REG_RED_BALANCE
	.no_dead_strip	_tw2804_g_volatile_ctrl
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tw2804_g_volatile_ctrl
l_switch.table.tw2804_g_volatile_ctrl:
	.quad	_TW2804_REG_RED_BALANCE
	.quad	_TW2804_REG_GAIN
	.quad	_TW2804_REG_CHROMA_GAIN
	.quad	_TW2804_REG_BLUE_BALANCE

.subsections_via_symbols
