	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max2175_s_frequency
_max2175_s_frequency:                   ## @max2175_s_frequency
	.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	%rsi, %r15
	callq	_max2175_from_sd
	movq	%rax, %rbx
	movl	8(%r15), %edx
	movl	16(%rax), %ecx
	movq	8(%rax), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_mxm_dbg
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movl	8(%r15), %edi
	movq	32(%rbx), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_clamp
	movl	%eax, %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_max2175_freq_rx_mode_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_max2175_tune_rf_freq
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_max2175_set_freq_and_mode
LBB0_6:
	movl	%eax, %r14d
	movl	16(%rbx), %ecx
	movq	(%rbx), %rax
	movq	8(%rbx), %r8
	movl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_mxm_dbg
LBB0_7:
	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	"s_freq: new %u curr %u, mode_resolved %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"s_freq: ret %d curr %u mode_resolved %d mode %u\n"

	.no_dead_strip	_max2175_s_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max2175_s_frequency
_max2175_s_frequency:                   ; @max2175_s_frequency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	bl	_max2175_from_sd
	mov	x19, x0
	ldr	w2, [x20, #8]
	ldr	w3, [x0, #16]
	ldr	x4, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mxm_dbg
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_2:
	ldr	w0, [x20, #8]
	ldr	x8, [x19, #32]
	ldp	w2, w1, [x8]
	bl	_clamp
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_max2175_freq_rx_mode_valid
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_max2175_tune_rf_freq
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_max2175_set_freq_and_mode
LBB0_6:
	mov	x20, x0
	ldr	w3, [x19, #16]
	ldp	x8, x4, [x19]
	ldr	w8, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	x2, x20
	bl	_mxm_dbg
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_freq: new %u curr %u, mode_resolved %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"s_freq: ret %d curr %u mode_resolved %d mode %u\n"

	.no_dead_strip	_max2175_s_frequency
.subsections_via_symbols
