	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx88_xc3028_geniatech_tuner_callback
_cx88_xc3028_geniatech_tuner_callback:  ## @cx88_xc3028_geniatech_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
	cmpl	$128, %esi
	jne	LBB0_7
## %bb.1:
	movl	(%rdi), %edi
	callq	_INPUT
	cmpl	$129, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$130, %eax
	je	LBB0_6
## %bb.4:
	movl	$197377, %esi                   ## imm = 0x30301
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movl	$197378, %esi                   ## imm = 0x30302
LBB0_5:
	movq	_MO_GP1_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_write
	movl	$50, %edi
	callq	_mdelay
LBB0_6:
	movq	_MO_GP1_IO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1052688, %esi                  ## imm = 0x101010
	callq	_cx_write
	movl	$50, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	movl	$1052672, %esi                  ## imm = 0x101000
	callq	_cx_write
	movl	$50, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	movl	$1052688, %esi                  ## imm = 0x101010
	callq	_cx_write
	movl	$50, %edi
	callq	_mdelay
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MO_GP1_IO,4,2                  ## @MO_GP1_IO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cx88_xc3028_geniatech_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_xc3028_geniatech_tuner_callback
_cx88_xc3028_geniatech_tuner_callback:  ; @cx88_xc3028_geniatech_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
	cmp	w1, #128
	b.ne	LBB0_3
; %bb.1:
	mov	w19, #769
	movk	w19, #3, lsl #16
	ldr	w0, [x0]
	bl	_INPUT
Lloh0:
	adrp	x20, _MO_GP1_IO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MO_GP1_IO@GOTPAGEOFF]
	cmp	w0, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #130
	b.eq	LBB0_6
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	add	w19, w19, #1
LBB0_5:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_cx_write
	mov	w0, #50
	bl	_mdelay
LBB0_6:
	ldr	w0, [x20]
	mov	w19, #4112
	movk	w19, #16, lsl #16
	mov	w1, #4112
	movk	w1, #16, lsl #16
	bl	_cx_write
	mov	w0, #50
	bl	_mdelay
	ldr	w0, [x20]
	sub	w1, w19, #16
	bl	_cx_write
	mov	w0, #50
	bl	_mdelay
	ldr	w0, [x20]
	mov	w1, #4112
	movk	w1, #16, lsl #16
	bl	_cx_write
	mov	w0, #50
	bl	_mdelay
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MO_GP1_IO,4,2                  ; @MO_GP1_IO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cx88_xc3028_geniatech_tuner_callback
.subsections_via_symbols
