	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_xc5000_callback
_saa7134_xc5000_callback:               ## @saa7134_xc5000_callback
	.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	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_3
## %bb.1:
	movq	_XC5000_TUNER_RESET@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_SAA7134_SPECIAL_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	movl	$10, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_saa_writeb
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_4
LBB0_3:
	movq	_SAA7134_GPIO_GPMODE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$115474432, %esi                ## imm = 0x6E20000
	movl	$115474432, %edx                ## imm = 0x6E20000
	callq	_saa_andorl
	movq	_SAA7134_GPIO_GPSTATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$111280128, %esi                ## imm = 0x6A20000
	movl	$111280128, %edx                ## imm = 0x6A20000
	callq	_saa_andorl
	movq	_SAA7133_ANALOG_IO_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$2, %esi
	movl	$2, %edx
	callq	_saa_andorl
	movq	_SAA7134_ANALOG_IN_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$129, %esi
	movl	$129, %edx
	callq	_saa_andorl
	movq	_SAA7134_AUDIO_CLOCK0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$51936743, %esi                 ## imm = 0x3187DE7
	movl	$51936743, %edx                 ## imm = 0x3187DE7
	callq	_saa_andorl
	movq	_SAA7134_AUDIO_PLL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$3, %esi
	movl	$3, %edx
	callq	_saa_andorl
	movq	_SAA7134_AUDIO_CLOCKS_PER_FIELD0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$122880, %esi                   ## imm = 0x1E000
	movl	$122880, %edx                   ## imm = 0x1E000
	callq	_saa_andorl
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XC5000_TUNER_RESET,4,2         ## @XC5000_TUNER_RESET
	.comm	_SAA7134_SPECIAL_MODE,4,2       ## @SAA7134_SPECIAL_MODE
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ## @SAA7134_GPIO_GPMODE0
	.comm	_SAA7134_GPIO_GPSTATUS0,4,2     ## @SAA7134_GPIO_GPSTATUS0
	.comm	_SAA7133_ANALOG_IO_SELECT,4,2   ## @SAA7133_ANALOG_IO_SELECT
	.comm	_SAA7134_ANALOG_IN_CTRL1,4,2    ## @SAA7134_ANALOG_IN_CTRL1
	.comm	_SAA7134_AUDIO_CLOCK0,4,2       ## @SAA7134_AUDIO_CLOCK0
	.comm	_SAA7134_AUDIO_PLL_CTRL,4,2     ## @SAA7134_AUDIO_PLL_CTRL
	.comm	_SAA7134_AUDIO_CLOCKS_PER_FIELD0,4,2 ## @SAA7134_AUDIO_CLOCKS_PER_FIELD0
	.no_dead_strip	_saa7134_xc5000_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_xc5000_callback
_saa7134_xc5000_callback:               ; @saa7134_xc5000_callback
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _XC5000_TUNER_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XC5000_TUNER_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x19, _SAA7134_SPECIAL_MODE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SAA7134_SPECIAL_MODE@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_saa_writeb
	mov	w0, #10
	bl	_msleep
	ldr	w0, [x19]
	mov	w1, #1
	bl	_saa_writeb
	mov	w0, #10
	bl	_msleep
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _SAA7134_GPIO_GPMODE0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SAA7134_GPIO_GPMODE0@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #115474432
	mov	w2, #115474432
	bl	_saa_andorl
Lloh8:
	adrp	x8, _SAA7134_GPIO_GPSTATUS0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SAA7134_GPIO_GPSTATUS0@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #111280128
	mov	w2, #111280128
	bl	_saa_andorl
Lloh11:
	adrp	x8, _SAA7133_ANALOG_IO_SELECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAA7133_ANALOG_IO_SELECT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #2
	mov	w2, #2
	bl	_saa_andorl
Lloh14:
	adrp	x8, _SAA7134_ANALOG_IN_CTRL1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAA7134_ANALOG_IN_CTRL1@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #129
	mov	w2, #129
	bl	_saa_andorl
Lloh17:
	adrp	x8, _SAA7134_AUDIO_CLOCK0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SAA7134_AUDIO_CLOCK0@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #32231
	movk	w1, #792, lsl #16
	mov	w2, #32231
	movk	w2, #792, lsl #16
	bl	_saa_andorl
Lloh20:
	adrp	x8, _SAA7134_AUDIO_PLL_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SAA7134_AUDIO_PLL_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #3
	mov	w2, #3
	bl	_saa_andorl
Lloh23:
	adrp	x8, _SAA7134_AUDIO_CLOCKS_PER_FIELD0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SAA7134_AUDIO_CLOCKS_PER_FIELD0@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #122880
	mov	w2, #122880
	bl	_saa_andorl
LBB0_4:
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XC5000_TUNER_RESET,4,2         ; @XC5000_TUNER_RESET
	.comm	_SAA7134_SPECIAL_MODE,4,2       ; @SAA7134_SPECIAL_MODE
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ; @SAA7134_GPIO_GPMODE0
	.comm	_SAA7134_GPIO_GPSTATUS0,4,2     ; @SAA7134_GPIO_GPSTATUS0
	.comm	_SAA7133_ANALOG_IO_SELECT,4,2   ; @SAA7133_ANALOG_IO_SELECT
	.comm	_SAA7134_ANALOG_IN_CTRL1,4,2    ; @SAA7134_ANALOG_IN_CTRL1
	.comm	_SAA7134_AUDIO_CLOCK0,4,2       ; @SAA7134_AUDIO_CLOCK0
	.comm	_SAA7134_AUDIO_PLL_CTRL,4,2     ; @SAA7134_AUDIO_PLL_CTRL
	.comm	_SAA7134_AUDIO_CLOCKS_PER_FIELD0,4,2 ; @SAA7134_AUDIO_CLOCKS_PER_FIELD0
	.no_dead_strip	_saa7134_xc5000_callback
.subsections_via_symbols
