	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_reset_analog_tuner     ## -- Begin function cx231xx_reset_analog_tuner
	.p2align	4, 0x90
_cx231xx_reset_analog_tuner:            ## @cx231xx_reset_analog_tuner
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.3:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	*(%r15)
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rcx, %rsi
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	callq	_dev_dbg
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reloading firmware for XC5000\n"

L_.str.1:                               ## @.str.1
	.asciz	"XC5000 firmware download completed\n"

L_.str.2:                               ## @.str.2
	.asciz	"XC5000 firmware download failed !!!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_reset_analog_tuner     ; -- Begin function cx231xx_reset_analog_tuner
	.p2align	2
_cx231xx_reset_analog_tuner:            ; @cx231xx_reset_analog_tuner
	.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, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x0, [x9]
	blr	x8
	mov	x20, x0
	cmp	w0, #0
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
	cset	w9, eq
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	csel	x1, x10, x8, eq
	str	w9, [x19]
	ldr	w0, [x19, #4]
	bl	_dev_dbg
	b	LBB0_5
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reloading firmware for XC5000\n"

l_.str.1:                               ; @.str.1
	.asciz	"XC5000 firmware download completed\n"

l_.str.2:                               ; @.str.2
	.asciz	"XC5000 firmware download failed !!!\n"

.subsections_via_symbols
