	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_s_std
_bttv_s_std:                            ## @bttv_s_std
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	8(%rsi), %rbx
	movl	(%rsi), %esi
	movq	%rbx, %rdi
	callq	_v4l2_prio_check
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_BTTV_TVNORMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movl	(%r14), %ecx
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, (%rdx,%rsi,4)
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_2:
	xorl	%esi, %esi
LBB0_3:
	cmpl	%eax, %esi
	jne	LBB0_4
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_tvnorm
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTTV_TVNORMS,4,2               ## @BTTV_TVNORMS
	.comm	_bttv_tvnorms,8,3               ## @bttv_tvnorms
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bttv_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_s_std
_bttv_s_std:                            ; @bttv_s_std
	.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	x20, x2
	ldr	x19, [x1, #8]
	ldr	w1, [x1]
	mov	x0, x19
	bl	_v4l2_prio_check
	cbnz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _BTTV_TVNORMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTTV_TVNORMS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x1, #0
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _bttv_tvnorms@GOTPAGE
Lloh4:
	ldr	x10, [x10, _bttv_tvnorms@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x1, lsl #2]
	tst	w11, w9
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x1, #1
	cmp	x8, x1
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w1, #0
LBB0_6:
	cmp	w1, w8
	b.ne	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_set_tvnorm
	mov	w0, #0
LBB0_9:
	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	_BTTV_TVNORMS,4,2               ; @BTTV_TVNORMS
	.comm	_bttv_tvnorms,8,3               ; @bttv_tvnorms
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bttv_s_std
.subsections_via_symbols
