	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpx3220_status
_vpx3220_status:                        ## @vpx3220_status
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rcx
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %r13d
	movq	%r12, %rdi
	movl	$243, %esi
	callq	_vpx3220_fp_read
	movl	%eax, %ebx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	movl	%ebx, %r8d
	callq	_v4l2_dbg
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.3:
	testb	$32, %bl
	jne	LBB0_8
## %bb.4:
	andl	$24, %ebx
	cmpl	$8, %ebx
	jne	LBB0_5
## %bb.7:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_11
LBB0_5:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
LBB0_6:
	andl	(%rax), %r13d
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_11
LBB0_10:
	movl	%r13d, (%r15)
LBB0_11:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	%eax, (%r14)
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status: 0x%04x\n"

	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.no_dead_strip	_vpx3220_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpx3220_status
_vpx3220_status:                        ; @vpx3220_status
	.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, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
	cmp	x2, #0
	csel	x8, x8, x2, eq
	ldr	w24, [x8]
	mov	w1, #243
	bl	_vpx3220_fp_read
	mov	x21, x0
Lloh5:
	adrp	x8, _debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	mov	x4, x21
	bl	_v4l2_dbg
	tbnz	w21, #31, LBB0_10
; %bb.1:
	tbnz	w21, #5, LBB0_4
; %bb.2:
	and	w8, w21, #0x18
	cmp	w8, #8
	b.ne	LBB0_5
; %bb.3:
	mov	w23, #0
Lloh10:
	adrp	x8, _V4L2_STD_SECAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_STD_SECAM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbnz	x20, LBB0_7
	b	LBB0_8
LBB0_5:
	mov	w23, #0
Lloh15:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	and	w8, w8, w24
	cbz	x20, LBB0_8
LBB0_7:
	str	w8, [x20]
LBB0_8:
	mov	w21, #0
	cbz	x19, LBB0_10
; %bb.9:
	str	w23, [x19]
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status: 0x%04x\n"

	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.no_dead_strip	_vpx3220_status
.subsections_via_symbols
