	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl1x1sf_tune_rf
_mxl1x1sf_tune_rf:                      ## @mxl1x1sf_tune_rf
	.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
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_mxl_dbg
	movq	_START_TUNE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_mxl111sf_tuner_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	_MXL_MODE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mxl111sf_tuner_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_mxl111sf_calc_phy_tune_regs
	movq	%rax, _mxl1x1sf_tune_rf.reg_ctrl_array(%rip)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mxl111sf_tuner_program_regs
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	movq	_MXL_DEV_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movq	_MXL_TUNER_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mxl1x1sf_tuner_top_master_ctrl
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mxl1x1sf_tuner_top_master_ctrl
	movq	%r15, %rdi
	callq	_mxl1x1sf_tuner_set_if_output_freq
LBB0_7:
	movq	_START_TUNE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_mxl111sf_tuner_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	(%r15), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	*%rcx
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mxl1x1sf_tune_rf.reg_ctrl_array,8,3 ## @mxl1x1sf_tune_rf.reg_ctrl_array
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(freq = %d, bw = 0x%x)"

	.comm	_START_TUNE_REG,4,2             ## @START_TUNE_REG
	.comm	_MXL_MODE_REG,4,2               ## @MXL_MODE_REG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MXL_DEV_MODE_MASK,4,2          ## @MXL_DEV_MODE_MASK
	.comm	_MXL_TUNER_MODE,4,2             ## @MXL_TUNER_MODE
	.no_dead_strip	_mxl1x1sf_tune_rf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl1x1sf_tune_rf
_mxl1x1sf_tune_rf:                      ; @mxl1x1sf_tune_rf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_dbg
Lloh2:
	adrp	x24, _START_TUNE_REG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _START_TUNE_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #0
	bl	_mxl111sf_tuner_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _MXL_MODE_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MXL_MODE_REG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mxl111sf_tuner_read_reg
	mov	x21, x0
	bl	_mxl_fail
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	mov	x0, x23
	mov	x1, x22
	bl	_mxl111sf_calc_phy_tune_regs
	adrp	x8, _mxl1x1sf_tune_rf.reg_ctrl_array@PAGE
	str	x0, [x8, _mxl1x1sf_tune_rf.reg_ctrl_array@PAGEOFF]
	cbz	x0, LBB0_10
; %bb.4:
	mov	x1, x0
	mov	x0, x20
	bl	_mxl111sf_tuner_program_regs
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_2
; %bb.5:
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x9, _MXL_DEV_MODE_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MXL_DEV_MODE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh10:
	adrp	x9, _MXL_TUNER_MODE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MXL_TUNER_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #0
	bl	_mxl1x1sf_tuner_top_master_ctrl
	mov	x0, x20
	mov	w1, #1
	bl	_mxl1x1sf_tuner_top_master_ctrl
	mov	x0, x20
	bl	_mxl1x1sf_tuner_set_if_output_freq
LBB0_7:
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #1
	bl	_mxl111sf_tuner_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_2
; %bb.8:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.9:
	mov	x0, x19
	blr	x8
	b	LBB0_2
LBB0_10:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mxl1x1sf_tune_rf.reg_ctrl_array,8,3 ; @mxl1x1sf_tune_rf.reg_ctrl_array
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(freq = %d, bw = 0x%x)"

	.comm	_START_TUNE_REG,4,2             ; @START_TUNE_REG
	.comm	_MXL_MODE_REG,4,2               ; @MXL_MODE_REG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MXL_DEV_MODE_MASK,4,2          ; @MXL_DEV_MODE_MASK
	.comm	_MXL_TUNER_MODE,4,2             ; @MXL_TUNER_MODE
	.no_dead_strip	_mxl1x1sf_tune_rf
.subsections_via_symbols
