	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max2175_set_rx_mode
_max2175_set_rx_mode:                   ## @max2175_set_rx_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	32(%rdi), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_mxm_dbg
	movq	(%rbx), %rax
	movq	_MAX2175_EU_XTAL_FREQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_max2175_set_eu_rx_mode
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_max2175_set_na_rx_mode
	cmpq	$0, 32(%rbx)
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mxm_dbg
	movq	%rbx, %rdi
	movl	$50, %esi
	movl	$5, %edx
	movl	$1, %ecx
	callq	_max2175_write_bit
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	$7, %edx
	movl	$1, %ecx
	callq	_max2175_write_bit
	movq	%rbx, %rdi
	movl	$73, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	_max2175_write_bits
	movq	%rbx, %rdi
	movl	$80, %esi
	movl	$5, %edx
	xorl	%ecx, %ecx
	movl	$33, %r8d
	callq	_max2175_write_bits
LBB0_5:
	movq	%rbx, %rdi
	callq	_max2175_set_bbfilter
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_max2175_set_hsls
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_max2175_i2s_enable
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_rx_mode: %u am_hiz %u\n"

	.comm	_MAX2175_EU_XTAL_FREQ,8,3       ## @MAX2175_EU_XTAL_FREQ
L_.str.1:                               ## @.str.1
	.asciz	"setting AM HiZ related config\n"

	.no_dead_strip	_max2175_set_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max2175_set_rx_mode
_max2175_set_rx_mode:                   ; @max2175_set_rx_mode
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	stp	x20, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mxm_dbg
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MAX2175_EU_XTAL_FREQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX2175_EU_XTAL_FREQ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	mov	x0, x19
	mov	x1, x20
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_max2175_set_eu_rx_mode
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_3
	b	LBB0_4
LBB0_2:
	bl	_max2175_set_na_rx_mode
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mxm_dbg
	mov	x0, x19
	mov	w1, #50
	mov	w2, #5
	mov	w3, #1
	bl	_max2175_write_bit
	mov	x0, x19
	mov	w1, #90
	mov	w2, #7
	mov	w3, #1
	bl	_max2175_write_bit
	mov	x0, x19
	mov	w1, #73
	mov	w2, #1
	mov	w3, #0
	mov	w4, #2
	bl	_max2175_write_bits
	mov	x0, x19
	mov	w1, #80
	mov	w2, #5
	mov	w3, #0
	mov	w4, #33
	bl	_max2175_write_bits
LBB0_4:
	mov	x0, x19
	bl	_max2175_set_bbfilter
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_max2175_set_hsls
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_max2175_i2s_enable
	mov	w8, #1
	str	w8, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_rx_mode: %u am_hiz %u\n"

	.comm	_MAX2175_EU_XTAL_FREQ,8,3       ; @MAX2175_EU_XTAL_FREQ
l_.str.1:                               ; @.str.1
	.asciz	"setting AM HiZ related config\n"

	.no_dead_strip	_max2175_set_rx_mode
.subsections_via_symbols
