	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_tuner_callback          ## -- Begin function tm6000_tuner_callback
	.p2align	4, 0x90
_tm6000_tuner_callback:                 ## @tm6000_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	%ecx, %ebx
	movq	(%rdi), %rax
	movq	_TUNER_XC2028@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.1:
	movq	%rdi, %r14
	cmpl	$128, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %edx
	je	LBB0_18
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_19
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tm6000_ir_wait
	movq	_REQ_04_EN_DISABLE_MCU_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	movl	%ebx, %ecx
	callq	_tm6000_set_reg
	movl	$10, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$10, %esi
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tm6000_i2c_reset               ## TAILCALL
LBB0_5:
	cmpl	$2, %ebx
	je	LBB0_16
## %bb.6:
	cmpl	$1, %ebx
	je	LBB0_15
## %bb.7:
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.8:
	movl	12(%r14), %eax
	leal	-131(%rax), %ecx
	movq	_REQ_03_SET_GET_MCU_PIN@GOTPCREL(%rip), %rbx
	cmpl	$3, %ecx
	jae	LBB0_9
## %bb.11:
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_tm6000_set_reg
	movl	$60, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tm6000_set_reg
	movl	$75, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_tm6000_set_reg
	movl	$60, %edi
	jmp	LBB0_13
LBB0_18:
	movq	_REQ_50_SET_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_tm6000_set_reg
	movq	_REQ_51_SET_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_tm6000_set_reg
LBB0_19:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	movq	%r14, %rdi
	movl	$100, %esi
	jmp	LBB0_17
LBB0_15:
	movq	_REQ_04_EN_DISABLE_MCU_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %ecx
	callq	_tm6000_set_reg
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_19
LBB0_9:
	cmpl	$134, %eax
	jne	LBB0_12
## %bb.10:
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_tm6000_set_reg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$1, %ecx
	callq	_tm6000_set_reg
	movl	$10, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tm6000_set_reg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	xorl	%ecx, %ecx
	callq	_tm6000_set_reg
	movl	$10, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_tm6000_set_reg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$1, %ecx
	callq	_tm6000_set_reg
	jmp	LBB0_14
LBB0_12:
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tm6000_set_reg
	movl	$130, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_tm6000_set_reg
	movl	$130, %edi
LBB0_13:
	callq	_msleep
LBB0_14:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tm6000_ir_wait
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_TUNER_XC2028,8,3               ## @TUNER_XC2028
	.comm	_REQ_04_EN_DISABLE_MCU_INT,4,2  ## @REQ_04_EN_DISABLE_MCU_INT
	.comm	_REQ_03_SET_GET_MCU_PIN,4,2     ## @REQ_03_SET_GET_MCU_PIN
	.comm	_REQ_50_SET_START,4,2           ## @REQ_50_SET_START
	.comm	_REQ_51_SET_STOP,4,2            ## @REQ_51_SET_STOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_tuner_callback          ; -- Begin function tm6000_tuner_callback
	.p2align	2
_tm6000_tuner_callback:                 ; @tm6000_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	x8, [x0]
Lloh0:
	adrp	x9, _TUNER_XC2028@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TUNER_XC2028@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.1:
	mov	x20, x3
	mov	x19, x0
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #130
	b.eq	LBB0_11
; %bb.3:
	cmp	w2, #129
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_tm6000_ir_wait
Lloh3:
	adrp	x8, _REQ_04_EN_DISABLE_MCU_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQ_04_EN_DISABLE_MCU_INT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x20
	bl	_tm6000_set_reg
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #10
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tm6000_i2c_reset
LBB0_6:
	cmp	w20, #2
	b.eq	LBB0_13
; %bb.7:
	cmp	w20, #1
	b.eq	LBB0_14
; %bb.8:
	cbnz	w20, LBB0_12
; %bb.9:
	ldr	w8, [x19, #12]
	sub	w9, w8, #131
Lloh6:
	adrp	x20, _REQ_03_SET_GET_MCU_PIN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REQ_03_SET_GET_MCU_PIN@GOTPAGEOFF]
	cmp	w9, #3
	b.hs	LBB0_15
; %bb.10:
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_tm6000_set_reg
	mov	w0, #60
	bl	_msleep
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #0
	bl	_tm6000_set_reg
	mov	w0, #75
	bl	_msleep
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_tm6000_set_reg
	mov	w0, #60
	b	LBB0_18
LBB0_11:
Lloh8:
	adrp	x8, _REQ_50_SET_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_50_SET_START@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_tm6000_set_reg
Lloh11:
	adrp	x8, _REQ_51_SET_STOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REQ_51_SET_STOP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_tm6000_set_reg
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x19
	mov	w1, #100
	b	LBB0_5
LBB0_14:
Lloh14:
	adrp	x8, _REQ_04_EN_DISABLE_MCU_INT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REQ_04_EN_DISABLE_MCU_INT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #1
	bl	_tm6000_set_reg
	mov	w0, #10
	bl	_msleep
	b	LBB0_12
LBB0_15:
	cmp	w8, #134
	b.ne	LBB0_17
; %bb.16:
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_tm6000_set_reg
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #1
	bl	_tm6000_set_reg
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #0
	bl	_tm6000_set_reg
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #0
	bl	_tm6000_set_reg
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_tm6000_set_reg
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #1
	bl	_tm6000_set_reg
	b	LBB0_19
LBB0_17:
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #0
	bl	_tm6000_set_reg
	mov	w0, #130
	bl	_msleep
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w3, #1
	bl	_tm6000_set_reg
	mov	w0, #130
LBB0_18:
	bl	_msleep
LBB0_19:
	mov	x0, x19
	mov	w1, #1
	bl	_tm6000_ir_wait
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TUNER_XC2028,8,3               ; @TUNER_XC2028
	.comm	_REQ_04_EN_DISABLE_MCU_INT,4,2  ; @REQ_04_EN_DISABLE_MCU_INT
	.comm	_REQ_03_SET_GET_MCU_PIN,4,2     ; @REQ_03_SET_GET_MCU_PIN
	.comm	_REQ_50_SET_START,4,2           ; @REQ_50_SET_START
	.comm	_REQ_51_SET_STOP,4,2            ; @REQ_51_SET_STOP
.subsections_via_symbols
