	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_tvaudio_init           ## -- Begin function saa7134_tvaudio_init
	.p2align	4, 0x90
_saa7134_tvaudio_init:                  ## @saa7134_tvaudio_init
	.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	%rdi, %rbx
	movq	_UNSET@GOTPCREL(%rip), %rcx
	movq	_audio_clock_override@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rdi), %rax
	cmpl	%esi, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_saa7134_boards@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %rdx
	movl	(%rcx,%rdx,4), %esi
LBB0_2:
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.5:
	movl	%esi, %ebx
	movq	_SAA7134_AUDIO_PLL_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	xorl	%eax, %eax
	callq	_need_resched
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_8
LBB0_9:
	movl	$358, %edi                      ## imm = 0x166
	callq	_saa_writel
	movq	%rbx, %rdi
	movl	$285, %esi                      ## imm = 0x11D
	xorl	%edx, %edx
	callq	_saa_dsp_writel
	movq	%rbx, %rdi
	movl	$276, %esi                      ## imm = 0x114
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_saa_dsp_writel                 ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	$10, %edi
	callq	_udelay
LBB0_8:
	movq	_SAA7134_AUDIO_CLOCK0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%bl, %esi
	callq	_saa_writeb
	movq	_SAA7134_AUDIO_CLOCK1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%bh, %esi
	callq	_saa_writeb
	movq	_SAA7134_AUDIO_CLOCK2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shrl	$16, %ebx
	movzbl	%bl, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_saa_writeb
	movq	_SAA7134_NICAM_ERROR_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$20, %esi
	callq	_saa_writeb
	movq	_SAA7134_NICAM_ERROR_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$80, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_saa_writeb                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_saa7134_boards,8,3             ## @saa7134_boards
	.comm	_UNSET,4,2                      ## @UNSET
	.comm	_audio_clock_override,4,2       ## @audio_clock_override
	.comm	_SAA7134_AUDIO_PLL_CTRL,4,2     ## @SAA7134_AUDIO_PLL_CTRL
	.comm	_SAA7134_AUDIO_CLOCK0,4,2       ## @SAA7134_AUDIO_CLOCK0
	.comm	_SAA7134_AUDIO_CLOCK1,4,2       ## @SAA7134_AUDIO_CLOCK1
	.comm	_SAA7134_AUDIO_CLOCK2,4,2       ## @SAA7134_AUDIO_CLOCK2
	.comm	_SAA7134_NICAM_ERROR_LOW,4,2    ## @SAA7134_NICAM_ERROR_LOW
	.comm	_SAA7134_NICAM_ERROR_HIGH,4,2   ## @SAA7134_NICAM_ERROR_HIGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_tvaudio_init           ; -- Begin function saa7134_tvaudio_init
	.p2align	2
_saa7134_tvaudio_init:                  ; @saa7134_tvaudio_init
	.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, x0
Lloh0:
	adrp	x8, _saa7134_boards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saa7134_boards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _UNSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UNSET@GOTPAGEOFF]
Lloh5:
	adrp	x11, _audio_clock_override@GOTPAGE
Lloh6:
	ldr	x11, [x11, _audio_clock_override@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w11, [x11]
	cmp	w9, w11
	csel	w19, w8, w11, eq
	ldr	w8, [x10]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x20, _SAA7134_AUDIO_PLL_CTRL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _SAA7134_AUDIO_PLL_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_saa_writeb
	bl	_need_resched
	cbz	w0, LBB0_7
; %bb.4:
	bl	_schedule
	b	LBB0_8
LBB0_5:
	mov	w0, #358
	mov	x1, x19
	bl	_saa_writel
	mov	x0, x20
	mov	w1, #285
	mov	w2, #0
	bl	_saa_dsp_writel
	mov	x0, x20
	mov	w1, #276
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_saa_dsp_writel
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #10
	bl	_udelay
LBB0_8:
Lloh11:
	adrp	x8, _SAA7134_AUDIO_CLOCK0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAA7134_AUDIO_CLOCK0@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	and	w1, w19, #0xff
	bl	_saa_writeb
Lloh14:
	adrp	x8, _SAA7134_AUDIO_CLOCK1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAA7134_AUDIO_CLOCK1@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ubfx	w1, w19, #8, #8
	bl	_saa_writeb
Lloh17:
	adrp	x8, _SAA7134_AUDIO_CLOCK2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SAA7134_AUDIO_CLOCK2@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ubfx	w1, w19, #16, #8
	bl	_saa_writeb
	ldr	w0, [x20]
	mov	w1, #1
	bl	_saa_writeb
Lloh20:
	adrp	x8, _SAA7134_NICAM_ERROR_LOW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SAA7134_NICAM_ERROR_LOW@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #20
	bl	_saa_writeb
Lloh23:
	adrp	x8, _SAA7134_NICAM_ERROR_HIGH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SAA7134_NICAM_ERROR_HIGH@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #80
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_saa_writeb
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_saa7134_boards,8,3             ; @saa7134_boards
	.comm	_UNSET,4,2                      ; @UNSET
	.comm	_audio_clock_override,4,2       ; @audio_clock_override
	.comm	_SAA7134_AUDIO_PLL_CTRL,4,2     ; @SAA7134_AUDIO_PLL_CTRL
	.comm	_SAA7134_AUDIO_CLOCK0,4,2       ; @SAA7134_AUDIO_CLOCK0
	.comm	_SAA7134_AUDIO_CLOCK1,4,2       ; @SAA7134_AUDIO_CLOCK1
	.comm	_SAA7134_AUDIO_CLOCK2,4,2       ; @SAA7134_AUDIO_CLOCK2
	.comm	_SAA7134_NICAM_ERROR_LOW,4,2    ; @SAA7134_NICAM_ERROR_LOW
	.comm	_SAA7134_NICAM_ERROR_HIGH,4,2   ; @SAA7134_NICAM_ERROR_HIGH
.subsections_via_symbols
