	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_querystd                ## -- Begin function vidioc_querystd
	.p2align	4, 0x90
_vidioc_querystd:                       ## @vidioc_querystd
	.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	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %r15d
	movq	%rbx, %rdi
	callq	_vivid_is_sdtv_cap
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_NO_SIGNAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_NO_LOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_vivid_is_tv_cap
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_tpg_g_quality
	movq	_TPG_QUAL_NOISE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_4:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_1:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_14
LBB0_7:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	_CURRENT_STD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.8:
	movq	32(%rbx), %rcx
	jmp	LBB0_9
LBB0_11:
	movq	_SELECTED_STD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	movq	24(%rbx), %rcx
LBB0_9:
	movl	(%rcx,%rax,4), %eax
LBB0_10:
	movl	%eax, (%r14)
	xorl	%ecx, %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_vivid_standard@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi,%r15,4), %eax
	movl	%eax, (%r14)
	leal	1(%r15), %r14d
	callq	_ARRAY_SIZE
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movl	%edx, (%rax,%rsi,4)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_NO_SIGNAL,8,3                  ## @NO_SIGNAL
	.comm	_NO_LOCK,8,3                    ## @NO_LOCK
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.comm	_TPG_QUAL_NOISE,8,3             ## @TPG_QUAL_NOISE
	.comm	_CURRENT_STD,8,3                ## @CURRENT_STD
	.comm	_SELECTED_STD,8,3               ## @SELECTED_STD
	.comm	_vivid_standard,8,3             ## @vivid_standard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_querystd                ; -- Begin function vidioc_querystd
	.p2align	2
_vidioc_querystd:                       ; @vidioc_querystd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldr	w21, [x8, x9, lsl #2]
	bl	_vivid_is_sdtv_cap
	cbz	w0, LBB0_5
; %bb.1:
	ldp	x9, x8, [x20, #8]
	ldr	x8, [x8, x9, lsl #3]
Lloh0:
	adrp	x9, _NO_SIGNAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NO_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NO_LOCK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NO_LOCK@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_vivid_is_tv_cap
	cbz	x0, LBB0_6
; %bb.3:
	add	x0, x20, #40
	bl	_tpg_g_quality
Lloh6:
	adrp	x8, _TPG_QUAL_NOISE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPG_QUAL_NOISE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_4:
	mov	w0, #0
Lloh9:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, _ENODATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_6:
	ldp	x8, x9, [x20, #8]
	ldr	x9, [x9, x8, lsl #3]
Lloh15:
	adrp	x10, _CURRENT_STD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CURRENT_STD@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldr	x9, [x20, #32]
	b	LBB0_10
LBB0_8:
Lloh18:
	adrp	x10, _SELECTED_STD@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SELECTED_STD@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.9:
	mov	w0, #0
	ldr	x9, [x20, #24]
LBB0_10:
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x19]
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x8, _vivid_standard@GOTPAGE
Lloh22:
	ldr	x8, [x8, _vivid_standard@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	ldr	w8, [x0, x21, lsl #2]
	str	w8, [x19]
	add	w19, w21, #1
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
	udiv	w9, w19, w8
	msub	w8, w9, w8, w19
	ldp	x9, x10, [x20]
	str	w8, [x9, x10, lsl #2]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_NO_SIGNAL,8,3                  ; @NO_SIGNAL
	.comm	_NO_LOCK,8,3                    ; @NO_LOCK
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.comm	_TPG_QUAL_NOISE,8,3             ; @TPG_QUAL_NOISE
	.comm	_CURRENT_STD,8,3                ; @CURRENT_STD
	.comm	_SELECTED_STD,8,3               ; @SELECTED_STD
	.comm	_vivid_standard,8,3             ; @vivid_standard
.subsections_via_symbols
