	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max2820_rf_init
_max2820_rf_init:                       ## @max2820_rf_init
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_write_max2820
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$30, %edx
	callq	_write_max2820
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_write_max2820
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_max2820_rf_set_channel
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$787, %edx                      ## imm = 0x313
	callq	_write_max2820
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$15, %edx
	callq	_write_max2820
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$136, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$8, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$248, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$144, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$26, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$100, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_max2820_write_phy_antenna
	movq	%rbx, %rdi
	movl	$17, %esi
	movl	$136, %edx
	callq	_rtl8180_write_phy
	movq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread8
	movq	_RTL818X_CONFIG2_ANTENNA_DIV@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	shll	$7, %edx
	orl	$71, %edx
	movq	%rbx, %rdi
	movl	$18, %esi
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$155, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$25, %esi
	xorl	%edx, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	movl	$26, %esi
	movl	$159, %edx
	callq	_rtl8180_write_phy
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_max2820_rf_set_channel         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL818X_CONFIG2_ANTENNA_DIV,4,2 ## @RTL818X_CONFIG2_ANTENNA_DIV
	.no_dead_strip	_max2820_rf_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max2820_rf_init
_max2820_rf_init:                       ; @max2820_rf_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	mov	w1, #0
	mov	w2, #7
	bl	_write_max2820
	mov	x0, x19
	mov	w1, #1
	mov	w2, #30
	bl	_write_max2820
	mov	x0, x19
	mov	w1, #2
	mov	w2, #1
	bl	_write_max2820
	mov	x0, x19
	mov	x1, #0
	bl	_max2820_rf_set_channel
	mov	x0, x19
	mov	w1, #4
	mov	w2, #787
	bl	_write_max2820
	mov	x0, x19
	mov	w1, #5
	mov	w2, #15
	bl	_write_max2820
	mov	x0, x19
	mov	w1, #0
	mov	w2, #136
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #3
	mov	w2, #8
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #4
	mov	w2, #248
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #5
	mov	w2, #144
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #6
	mov	w2, #26
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #7
	mov	w2, #100
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #1
	bl	_max2820_write_phy_antenna
	mov	x0, x19
	mov	w1, #17
	mov	w2, #136
	bl	_rtl8180_write_phy
	ldr	x1, [x20]
	mov	x0, x20
	bl	_rtl818x_ioread8
Lloh0:
	adrp	x8, _RTL818X_CONFIG2_ANTENNA_DIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL818X_CONFIG2_ANTENNA_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #199
	mov	w9, #71
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #18
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #19
	mov	w2, #155
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #25
	mov	w2, #0
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	w1, #26
	mov	w2, #159
	bl	_rtl8180_write_phy
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_max2820_rf_set_channel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL818X_CONFIG2_ANTENNA_DIV,4,2 ; @RTL818X_CONFIG2_ANTENNA_DIV
	.no_dead_strip	_max2820_rf_init
.subsections_via_symbols
