	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8187_detect_rf              ## -- Begin function rtl8187_detect_rf
	.p2align	4, 0x90
_rtl8187_detect_rf:                     ## @rtl8187_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), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_rtl8225z2_b_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$439, %edx                      ## imm = 0x1B7
	callq	_rtl8225_write
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_rtl8225_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_rtl8225_read
	movl	%eax, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$183, %edx
	callq	_rtl8225_write
	xorl	$1416, %r14d                    ## imm = 0x588
	xorl	$1792, %r15d                    ## imm = 0x700
	orl	%r14d, %r15d
	je	LBB0_3
## %bb.4:
	movq	_rtl8225_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_rtl8225z2_ops@GOTPCREL(%rip), %rax
LBB0_5:
	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
	.comm	_rtl8225z2_b_ops,4,2            ## @rtl8225z2_b_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8187_detect_rf              ; -- Begin function rtl8187_detect_rf
	.p2align	2
_rtl8187_detect_rf:                     ; @rtl8187_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
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, _rtl8225z2_b_ops@GOTPAGE
Lloh1:
	ldr	x0, [x0, _rtl8225z2_b_ops@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	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
Lloh2:
	adrp	x8, _rtl8225z2_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rtl8225z2_ops@GOTPAGEOFF]
Lloh4:
	adrp	x9, _rtl8225_ops@GOTPAGE
Lloh5:
	ldr	x9, [x9, _rtl8225_ops@GOTPAGEOFF]
	csel	x0, x9, x8, ne
LBB0_3:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_rtl8225_ops,4,2                ; @rtl8225_ops
	.comm	_rtl8225z2_ops,4,2              ; @rtl8225z2_ops
	.comm	_rtl8225z2_b_ops,4,2            ; @rtl8225z2_b_ops
.subsections_via_symbols
