	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9887_set_tvnorm
_tda9887_set_tvnorm:                    ## @tda9887_set_tvnorm
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	(%r14), %rbx
	movq	8(%r14), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	16(%r14), %rax
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_radio_mono@GOTPCREL(%rip), %r13
	jmp	LBB0_9
LBB0_1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_tvnorms@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	movl	24(%r14), %eax
	testl	%eax, (%r13,%rbx)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %rbx
	cmpq	%rax, %r15
	jl	LBB0_7
LBB0_11:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_radio_stereo@GOTPCREL(%rip), %r13
	jmp	LBB0_9
LBB0_8:
	addq	%rbx, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movl	8(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_tuner_dbg
	movb	4(%r13), %al
	movb	%al, 1(%rbx)
	movb	5(%r13), %al
	movb	%al, 2(%rbx)
	movb	6(%r13), %al
	movb	%al, 3(%rbx)
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_MODE_MONO,8,3       ## @V4L2_TUNER_MODE_MONO
	.comm	_radio_mono,12,2                ## @radio_mono
	.comm	_radio_stereo,12,2              ## @radio_stereo
	.comm	_tvnorms,8,3                    ## @tvnorms
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported tvnorm entry - audio muted\n"

L_.str.1:                               ## @.str.1
	.asciz	"configure for: %s\n"

	.no_dead_strip	_tda9887_set_tvnorm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9887_set_tvnorm
_tda9887_set_tvnorm:                    ; @tda9887_set_tvnorm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x20, [x0]
	ldp	x19, x8, [x20]
Lloh0:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _radio_stereo@GOTPAGE
Lloh7:
	ldr	x10, [x10, _radio_stereo@GOTPAGEOFF]
Lloh8:
	adrp	x11, _radio_mono@GOTPAGE
Lloh9:
	ldr	x11, [x11, _radio_mono@GOTPAGEOFF]
	cmp	x8, x9
	csel	x20, x11, x10, eq
	b	LBB0_8
LBB0_2:
Lloh10:
	adrp	x21, _tvnorms@GOTPAGE
Lloh11:
	ldr	x21, [x21, _tvnorms@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x22]
	ldr	w9, [x20, #24]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #12
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	add	x20, x0, x22
LBB0_8:
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #0
	ldrb	w8, [x20, #4]
	strb	w8, [x19, #1]
	ldrb	w8, [x20, #5]
	strb	w8, [x19, #2]
	ldrb	w8, [x20, #6]
	strb	w8, [x19, #3]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_MODE_MONO,8,3       ; @V4L2_TUNER_MODE_MONO
	.comm	_radio_mono,12,2                ; @radio_mono
	.comm	_radio_stereo,12,2              ; @radio_stereo
	.comm	_tvnorms,8,3                    ; @tvnorms
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported tvnorm entry - audio muted\n"

l_.str.1:                               ; @.str.1
	.asciz	"configure for: %s\n"

	.no_dead_strip	_tda9887_set_tvnorm
.subsections_via_symbols
