	.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
	movq	(%rsi), %rdi
	movq	_BTTV_TVNORMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, (%rcx,%rsi,4)
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%esi, %esi
LBB0_2:
	cmpl	%eax, %esi
	jne	LBB0_3
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movl	%edx, (%rdi)
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_tvnorm
	xorl	%eax, %eax
	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	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _BTTV_TVNORMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTTV_TVNORMS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x1, #0
Lloh3:
	adrp	x9, _bttv_tvnorms@GOTPAGE
Lloh4:
	ldr	x9, [x9, _bttv_tvnorms@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x1, lsl #2]
	tst	w10, w2
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x1, #1
	cmp	x8, x1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w1, #0
LBB0_5:
	cmp	w1, w8
	b.ne	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	w2, [x0]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_set_tvnorm
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 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
