	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_querystd
_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_video_drvdata
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	movq	(%rax), %rcx
	movq	_HDPVR_COMPONENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpq	$0, (%rbx)
	cmovnel	%edx, %eax
	jmp	LBB0_10
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_get_video_info
	cmpq	$0, -24(%rbp)
	je	LBB0_10
## %bb.3:
	cmpl	$720, -32(%rbp)                 ## imm = 0x2D0
	jne	LBB0_10
## %bb.4:
	movl	-28(%rbp), %ecx
	cmpl	$576, %ecx                      ## imm = 0x240
	je	LBB0_6
## %bb.5:
	cmpl	$480, %ecx                      ## imm = 0x1E0
	jne	LBB0_10
LBB0_6:
	cmpl	$480, %ecx                      ## imm = 0x1E0
	jne	LBB0_7
## %bb.8:
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.comm	_HDPVR_COMPONENT,8,3            ## @HDPVR_COMPONENT
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.no_dead_strip	_vidioc_querystd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_querystd
_vidioc_querystd:                       ; @vidioc_querystd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_video_drvdata
Lloh0:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _HDPVR_COMPONENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDPVR_COMPONENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _ENODATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENODATA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w0, wzr, w9, ne
	b	LBB0_7
LBB0_2:
	mov	x1, sp
	bl	_get_video_info
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w8, [sp]
	cmp	w8, #720
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [sp, #4]
	cmp	w8, #576
	b.eq	LBB0_6
; %bb.5:
	cmp	w8, #480
	b.ne	LBB0_7
LBB0_6:
Lloh9:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh11:
	adrp	x10, _V4L2_STD_625_50@GOTPAGE
Lloh12:
	ldr	x10, [x10, _V4L2_STD_625_50@GOTPAGEOFF]
	cmp	w8, #480
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.comm	_HDPVR_COMPONENT,8,3            ; @HDPVR_COMPONENT
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.no_dead_strip	_vidioc_querystd
.subsections_via_symbols
