	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx88_xc2028_tuner_callback
_cx88_xc2028_tuner_callback:            ## @cx88_xc2028_tuner_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	$-131, %eax
	addl	(%rdi), %eax
	cmpl	$8, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cx88_xc3028_geniatech_tuner_callback ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cx88_xc3028_winfast1800h_callback ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cx88_pv_8000gt_callback        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cx88_dvico_xc2028_callback     ## TAILCALL
LBB0_6:
	cmpl	$128, %esi
	jne	LBB0_11
## %bb.7:
	movl	4(%rdi), %edi
	callq	_INPUT
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_MO_GP0_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1279, %esi                     ## imm = 0x4FF
	callq	_cx_write
	movl	$250, %edi
	callq	_mdelay
	movq	_MO_GP2_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$255, %esi
	callq	_cx_write
	movl	$250, %edi
	callq	_mdelay
	jmp	LBB0_10
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
LBB0_10:
	movq	_MO_GP1_IO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1052688, %esi                  ## imm = 0x101010
	callq	_cx_write
	movl	$250, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	movl	$1052672, %esi                  ## imm = 0x101000
	callq	_cx_write
	movl	$250, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	movl	$1052688, %esi                  ## imm = 0x101010
	callq	_cx_write
	movl	$250, %edi
	callq	_mdelay
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting GPIO to radio!\n"

	.comm	_MO_GP0_IO,4,2                  ## @MO_GP0_IO
	.comm	_MO_GP2_IO,4,2                  ## @MO_GP2_IO
L_.str.1:                               ## @.str.1
	.asciz	"setting GPIO to TV!\n"

	.comm	_MO_GP1_IO,4,2                  ## @MO_GP1_IO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cx88_xc2028_tuner_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx88_xc2028_tuner_callback
_cx88_xc2028_tuner_callback:            ; @cx88_xc2028_tuner_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, #131
	cmp	w8, #8
	b.hi	LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx88_xc3028_geniatech_tuner_callback
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx88_xc3028_winfast1800h_callback
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx88_pv_8000gt_callback
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx88_dvico_xc2028_callback
LBB0_6:
	cmp	w1, #128
	b.ne	LBB0_9
; %bb.7:
	ldr	w0, [x0, #4]
	bl	_INPUT
	cmp	w0, #130
	b.ne	LBB0_10
; %bb.8:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh4:
	adrp	x8, _MO_GP0_IO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MO_GP0_IO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w1, #1279
	bl	_cx_write
	mov	w0, #250
	bl	_mdelay
Lloh7:
	adrp	x8, _MO_GP2_IO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MO_GP2_IO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #255
	bl	_cx_write
	mov	w0, #250
	bl	_mdelay
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_11:
Lloh15:
	adrp	x19, _MO_GP1_IO@GOTPAGE
Lloh16:
	ldr	x19, [x19, _MO_GP1_IO@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w20, #4112
	movk	w20, #16, lsl #16
	mov	w1, #4112
	movk	w1, #16, lsl #16
	bl	_cx_write
	mov	w0, #250
	bl	_mdelay
	ldr	w0, [x19]
	sub	w1, w20, #16
	bl	_cx_write
	mov	w0, #250
	bl	_mdelay
	ldr	w0, [x19]
	mov	w1, #4112
	movk	w1, #16, lsl #16
	bl	_cx_write
	mov	w0, #250
	bl	_mdelay
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting GPIO to radio!\n"

	.comm	_MO_GP0_IO,4,2                  ; @MO_GP0_IO
	.comm	_MO_GP2_IO,4,2                  ; @MO_GP2_IO
l_.str.1:                               ; @.str.1
	.asciz	"setting GPIO to TV!\n"

	.comm	_MO_GP1_IO,4,2                  ; @MO_GP1_IO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cx88_xc2028_tuner_callback
.subsections_via_symbols
