	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xc5000_set_analog_params
_xc5000_set_analog_params:              ## @xc5000_set_analog_params
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_EINVAL@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_xc5000_is_firmware_loaded
	movq	_XC_RESULT_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_xc_load_fw_and_init_tuner
	cmpq	(%r13), %rax
	jne	LBB0_3
LBB0_5:
	movl	(%r14), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_6
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xc5000_set_tv_freq             ## TAILCALL
LBB0_6:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xc5000_set_radio_freq          ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XC_RESULT_SUCCESS,8,3          ## @XC_RESULT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to load firmware and init tuner\n"

	.no_dead_strip	_xc5000_set_analog_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xc5000_set_analog_params
_xc5000_set_analog_params:              ; @xc5000_set_analog_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _EINVAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x22]
	neg	w20, w9
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_xc5000_is_firmware_loaded
Lloh2:
	adrp	x23, _XC_RESULT_SUCCESS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _XC_RESULT_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_xc_load_fw_and_init_tuner
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_3:
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xc5000_set_tv_freq
LBB0_5:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xc5000_set_radio_freq
LBB0_7:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	w8, [x22]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XC_RESULT_SUCCESS,8,3          ; @XC_RESULT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to load firmware and init tuner\n"

	.no_dead_strip	_xc5000_set_analog_params
.subsections_via_symbols
