	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_tuner_callback         ## -- Begin function cx231xx_tuner_callback
	.p2align	4, 0x90
_cx231xx_tuner_callback:                ## @cx231xx_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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_TUNER_XC5000@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_3
## %bb.1:
	movq	_XC5000_TUNER_RESET@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	%edx, (%rcx)
	jne	LBB0_8
## %bb.2:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rcx
	callq	_dev_dbg
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_cx231xx_set_gpio_value
	movl	$10, %edi
	callq	_msleep
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cx231xx_set_gpio_value
	movl	$330, %edi                      ## imm = 0x14A
	callq	_msleep
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_cx231xx_set_gpio_value
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_8
LBB0_3:
	movq	_TUNER_NXP_TDA18271@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	cmpq	(%rsi), %rax
	jne	LBB0_8
## %bb.4:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.5:
	movl	8(%rbx), %eax
	movq	_CX231XX_BOARD_PV_PLAYTV_USB_HYBRID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	%ecx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cx231xx_set_agc_analog_digital_mux_select ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TUNER_XC5000,8,3               ## @TUNER_XC5000
	.comm	_XC5000_TUNER_RESET,4,2         ## @XC5000_TUNER_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tuner CB: RESET: cmd %d : tuner type %d\n"

	.comm	_TUNER_NXP_TDA18271,8,3         ## @TUNER_NXP_TDA18271
	.comm	_CX231XX_BOARD_PV_PLAYTV_USB_HYBRID,4,2 ## @CX231XX_BOARD_PV_PLAYTV_USB_HYBRID
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_tuner_callback         ; -- Begin function cx231xx_tuner_callback
	.p2align	2
_cx231xx_tuner_callback:                ; @cx231xx_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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TUNER_XC5000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TUNER_XC5000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _XC5000_TUNER_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XC5000_TUNER_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w2
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x8
	bl	_dev_dbg
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_cx231xx_set_gpio_value
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cx231xx_set_gpio_value
	mov	w0, #330
	bl	_msleep
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_cx231xx_set_gpio_value
	mov	w0, #10
	bl	_msleep
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x9, _TUNER_NXP_TDA18271@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TUNER_NXP_TDA18271@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	cmp	w2, #128
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _CX231XX_BOARD_PV_PLAYTV_USB_HYBRID@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CX231XX_BOARD_PV_PLAYTV_USB_HYBRID@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx231xx_set_agc_analog_digital_mux_select
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TUNER_XC5000,8,3               ; @TUNER_XC5000
	.comm	_XC5000_TUNER_RESET,4,2         ; @XC5000_TUNER_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tuner CB: RESET: cmd %d : tuner type %d\n"

	.comm	_TUNER_NXP_TDA18271,8,3         ; @TUNER_NXP_TDA18271
	.comm	_CX231XX_BOARD_PV_PLAYTV_USB_HYBRID,4,2 ; @CX231XX_BOARD_PV_PLAYTV_USB_HYBRID
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
