	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max2175_set_rf_freq_non_am_bands
_max2175_set_rf_freq_non_am_bands:      ## @max2175_set_rf_freq_non_am_bands
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_mxm_dbg
	movq	%r12, %rdi
	callq	_MAX2175_IS_FM_MODE
	movl	$128000, %ebx                   ## imm = 0x1F400
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_MAX2175_IS_FMHD_MODE
	movl	$228000, %ebx                   ## imm = 0x37AA0
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_MAX2175_IS_BAND_VHF
	movq	_MAX2175_LO_ABOVE_DESIRED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	%r15, (%rcx)
	sete	%dl
	movl	%ebx, %r15d
	negl	%r15d
	cmpl	%edx, %eax
	cmovnel	%r15d, %ebx
	addl	%r14d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_max2175_set_lo_freq
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_max2175_set_nco_freq           ## TAILCALL
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_max2175_set_lo_freq            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rf_freq: non AM bands\n"

	.comm	_MAX2175_LO_ABOVE_DESIRED,8,3   ## @MAX2175_LO_ABOVE_DESIRED
	.no_dead_strip	_max2175_set_rf_freq_non_am_bands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max2175_set_rf_freq_non_am_bands
_max2175_set_rf_freq_non_am_bands:      ; @max2175_set_rf_freq_non_am_bands
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mxm_dbg
	mov	x0, x19
	bl	_MAX2175_IS_FM_MODE
	cbz	x0, LBB0_2
; %bb.1:
	mov	w22, #62464
	movk	w22, #1, lsl #16
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_MAX2175_IS_FMHD_MODE
	cbz	x0, LBB0_7
; %bb.3:
	mov	w22, #31392
	movk	w22, #3, lsl #16
LBB0_4:
	mov	x0, x19
	bl	_MAX2175_IS_BAND_VHF
Lloh2:
	adrp	x8, _MAX2175_LO_ABOVE_DESIRED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX2175_LO_ABOVE_DESIRED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	cset	w8, eq
	cmp	w0, w8
	cneg	w8, w22, ne
	add	w1, w8, w20
	mov	x0, x19
	bl	_max2175_set_lo_freq
	cbz	w0, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	neg	w1, w22
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_max2175_set_nco_freq
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_max2175_set_lo_freq
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rf_freq: non AM bands\n"

	.comm	_MAX2175_LO_ABOVE_DESIRED,8,3   ; @MAX2175_LO_ABOVE_DESIRED
	.no_dead_strip	_max2175_set_rf_freq_non_am_bands
.subsections_via_symbols
