	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx88_xc5000_tuner_callback
_cx88_xc5000_tuner_callback:            ## @cx88_xc5000_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	xorl	%ebx, %ebx
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	testl	%esi, %esi
	je	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_MO_GP0_IO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$16, %esi
	callq	_cx_clear
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r14), %edi
	movl	$16, %esi
	callq	_cx_set
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xc5000: unknown tuner callback command.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MO_GP0_IO,4,2                  ## @MO_GP0_IO
	.no_dead_strip	_cx88_xc5000_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_xc5000_tuner_callback
_cx88_xc5000_tuner_callback:            ; @cx88_xc5000_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]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
	cbnz	w1, LBB0_4
	b	LBB0_6
LBB0_3:
	cbz	w1, LBB0_5
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x19, _MO_GP0_IO@GOTPAGE
Lloh6:
	ldr	x19, [x19, _MO_GP0_IO@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #16
	bl	_cx_clear
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x19]
	mov	w1, #16
	bl	_cx_set
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xc5000: unknown tuner callback command.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MO_GP0_IO,4,2                  ; @MO_GP0_IO
	.no_dead_strip	_cx88_xc5000_tuner_callback
.subsections_via_symbols
