	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8180_detect_rf              ## -- Begin function rtl8180_detect_rf
	.p2align	4, 0x90
_rtl8180_detect_rf:                     ## @rtl8180_detect_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	movl	$1152, %edx                     ## imm = 0x480
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	$1160, %edx                     ## imm = 0x488
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	movl	$8191, %edx                     ## imm = 0x1FFF
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$439, %edx                      ## imm = 0x1B7
	callq	_rtl8225_write
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_rtl8225_read
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_rtl8225_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$183, %edx
	callq	_rtl8225_write
	xorl	$1416, %r15d                    ## imm = 0x588
	xorl	$1792, %ebx                     ## imm = 0x700
	orl	%r15d, %ebx
	je	LBB0_1
## %bb.2:
	movq	_rtl8225_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_rtl8225z2_ops@GOTPCREL(%rip), %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rtl8225_ops,4,2                ## @rtl8225_ops
	.comm	_rtl8225z2_ops,4,2              ## @rtl8225z2_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8180_detect_rf              ; -- Begin function rtl8180_detect_rf
	.p2align	2
_rtl8180_detect_rf:                     ; @rtl8180_detect_rf
	.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	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20]
	add	x1, x8, #12
	mov	x0, x20
	mov	w2, #1152
	bl	_rtl818x_iowrite16
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	x0, x20
	mov	w2, #1160
	bl	_rtl818x_iowrite16
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #8191
	bl	_rtl818x_iowrite16
	ldr	x1, [x20]
	mov	x0, x20
	bl	_rtl818x_ioread8
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #439
	bl	_rtl8225_write
	mov	x0, x19
	mov	w1, #8
	bl	_rtl8225_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #9
	bl	_rtl8225_read
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #183
	bl	_rtl8225_write
	cmp	w21, #1792
	mov	w8, #1416
	ccmp	w20, w8, #0, eq
Lloh0:
	adrp	x8, _rtl8225z2_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rtl8225z2_ops@GOTPAGEOFF]
Lloh2:
	adrp	x9, _rtl8225_ops@GOTPAGE
Lloh3:
	ldr	x9, [x9, _rtl8225_ops@GOTPAGEOFF]
	csel	x0, x9, x8, ne
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rtl8225_ops,4,2                ; @rtl8225_ops
	.comm	_rtl8225z2_ops,4,2              ; @rtl8225z2_ops
.subsections_via_symbols
