	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_tda9880_setnorm           ## -- Begin function bttv_tda9880_setnorm
	.p2align	4, 0x90
_bttv_tda9880_setnorm:                  ## @bttv_tda9880_setnorm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	_TVAUDIO_INPUT_TUNER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rcx
	movq	_V4L2_STD_MN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_3
## %bb.2:
	orl	$65536, %ebx                    ## imm = 0x10000
	jmp	LBB0_4
LBB0_3:
	andl	$-65537, %ebx                   ## imm = 0xFFFEFFFF
LBB0_4:
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rdi), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	%ebx, %esi
	callq	_gpio_bits
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVAUDIO_INPUT_TUNER,8,3        ## @TVAUDIO_INPUT_TUNER
	.comm	_bttv_tvnorms,8,3               ## @bttv_tvnorms
	.comm	_V4L2_STD_MN,4,2                ## @V4L2_STD_MN
	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_tda9880_setnorm           ; -- Begin function bttv_tda9880_setnorm
	.p2align	2
_bttv_tda9880_setnorm:                  ; @bttv_tda9880_setnorm
	.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	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TVAUDIO_INPUT_TUNER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TVAUDIO_INPUT_TUNER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _bttv_tvnorms@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bttv_tvnorms@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _V4L2_STD_MN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_STD_MN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	and	w8, w19, #0xfffeffff
	orr	w9, w19, #0x10000
	csel	w19, w8, w9, eq
LBB0_2:
Lloh9:
	adrp	x8, _bttv_tvcards@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x0, #16]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x19
	bl	_gpio_bits
	mov	x0, x19
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TVAUDIO_INPUT_TUNER,8,3        ; @TVAUDIO_INPUT_TUNER
	.comm	_bttv_tvnorms,8,3               ; @bttv_tvnorms
	.comm	_V4L2_STD_MN,4,2                ; @V4L2_STD_MN
	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
.subsections_via_symbols
