	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7842_g_volatile_ctrl
_adv7842_g_volatile_ctrl:               ## @adv7842_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_sd
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_V4L2_CID_DV_RX_IT_CONTENT_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_V4L2_DV_IT_CONTENT_TYPE_NO_ITC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_io_read
	xorl	%r14d, %r14d
	testb	$1, %al
	je	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_infoframe_read
	testb	$-128, %al
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_infoframe_read
	shrl	$4, %eax
	andl	$3, %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_DV_RX_IT_CONTENT_TYPE,8,3 ## @V4L2_CID_DV_RX_IT_CONTENT_TYPE
	.comm	_V4L2_DV_IT_CONTENT_TYPE_NO_ITC,4,2 ## @V4L2_DV_IT_CONTENT_TYPE_NO_ITC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adv7842_g_volatile_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7842_g_volatile_ctrl
_adv7842_g_volatile_ctrl:               ; @adv7842_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_sd
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_CID_DV_RX_IT_CONTENT_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CID_DV_RX_IT_CONTENT_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _V4L2_DV_IT_CONTENT_TYPE_NO_ITC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_DV_IT_CONTENT_TYPE_NO_ITC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w1, #96
	bl	_io_read
	tbz	w0, #0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #3
	bl	_infoframe_read
	tbnz	w0, #7, LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	w1, #5
	bl	_infoframe_read
	mov	x8, x0
	mov	w0, #0
	ubfx	w8, w8, #4, #2
	str	w8, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_DV_RX_IT_CONTENT_TYPE,8,3 ; @V4L2_CID_DV_RX_IT_CONTENT_TYPE
	.comm	_V4L2_DV_IT_CONTENT_TYPE_NO_ITC,4,2 ; @V4L2_DV_IT_CONTENT_TYPE_NO_ITC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adv7842_g_volatile_ctrl
.subsections_via_symbols
