	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_kworld_sbtvd_toggle_agc
_saa7134_kworld_sbtvd_toggle_agc:       ## @saa7134_kworld_sbtvd_toggle_agc
	.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
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movq	_SAA7134_GPIO_GPMODE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_saa_writel
	movq	_SAA7134_GPIO_GPSTATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_saa_writel
	movl	$20, %edi
	jmp	LBB0_3
LBB0_4:
	movq	_SAA7134_GPIO_GPMODE0@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	sarl	$2, %edi
	movl	$81920, %esi                    ## imm = 0x14000
	callq	_saa_writel
	movq	_SAA7134_GPIO_GPSTATUS0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	sarl	$2, %edi
	movl	$81920, %esi                    ## imm = 0x14000
	callq	_saa_writel
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	sarl	$2, %edi
	movl	$344064, %esi                   ## imm = 0x54000
	callq	_saa_writel
	movl	(%rbx), %edi
	sarl	$2, %edi
	movl	$344064, %esi                   ## imm = 0x54000
	callq	_saa_writel
	movl	$30, %edi
LBB0_3:
	callq	_msleep
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ## @SAA7134_GPIO_GPMODE0
	.comm	_SAA7134_GPIO_GPSTATUS0,4,2     ## @SAA7134_GPIO_GPSTATUS0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_saa7134_kworld_sbtvd_toggle_agc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_kworld_sbtvd_toggle_agc
_saa7134_kworld_sbtvd_toggle_agc:       ; @saa7134_kworld_sbtvd_toggle_agc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _SAA7134_GPIO_GPMODE0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_GPIO_GPMODE0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #16384
	bl	_saa_writel
Lloh3:
	adrp	x8, _SAA7134_GPIO_GPSTATUS0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_GPIO_GPSTATUS0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #16384
	bl	_saa_writel
	mov	w0, #20
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x19, _SAA7134_GPIO_GPMODE0@GOTPAGE
Lloh7:
	ldr	x19, [x19, _SAA7134_GPIO_GPMODE0@GOTPAGEOFF]
	ldr	w8, [x19]
	asr	w0, w8, #2
	mov	w20, #16384
	movk	w20, #1, lsl #16
	mov	w1, #16384
	movk	w1, #1, lsl #16
	bl	_saa_writel
Lloh8:
	adrp	x21, _SAA7134_GPIO_GPSTATUS0@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SAA7134_GPIO_GPSTATUS0@GOTPAGEOFF]
	ldr	w8, [x21]
	asr	w0, w8, #2
	mov	w1, #16384
	movk	w1, #1, lsl #16
	bl	_saa_writel
	mov	w0, #20
	bl	_msleep
	ldr	w8, [x19]
	asr	w0, w8, #2
	orr	w19, w20, #0x40000
	mov	x1, x19
	bl	_saa_writel
	ldr	w8, [x21]
	asr	w0, w8, #2
	mov	x1, x19
	bl	_saa_writel
	mov	w0, #30
LBB0_4:
	bl	_msleep
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ; @SAA7134_GPIO_GPMODE0
	.comm	_SAA7134_GPIO_GPSTATUS0,4,2     ; @SAA7134_GPIO_GPSTATUS0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_saa7134_kworld_sbtvd_toggle_agc
.subsections_via_symbols
