	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_read_rfe_type
__rtl8821ae_read_rfe_type:              ## @_rtl8821ae_read_rfe_type
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_15:
	movl	$4, (%r12)
LBB0_16:
	movl	$4, %r8d
LBB0_17:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_1:
	movq	_EEPROM_RFE_OPTION@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%r15,%rax,4), %ebx
	movl	$7, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_8
## %bb.2:
	cmpq	$0, 24(%r12)
	je	LBB0_15
## %bb.3:
	cmpq	$0, 40(%r12)
	je	LBB0_14
## %bb.4:
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 32(%r12)
	je	LBB0_7
## %bb.6:
	movl	$3, (%r12)
	movl	$3, %r8d
	jmp	LBB0_17
LBB0_8:
	movq	(%r13), %rax
	movl	(%r15,%rax,4), %r8d
	andl	$63, %r8d
	movl	%r8d, (%r12)
	cmpl	$4, %r8d
	jne	LBB0_17
## %bb.9:
	cmpq	$0, 40(%r12)
	jne	LBB0_13
## %bb.10:
	cmpq	$0, 32(%r12)
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 24(%r12)
	jne	LBB0_13
## %bb.12:
	cmpq	$0, 16(%r12)
	je	LBB0_16
LBB0_13:
	movq	8(%r12), %rax
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rcx
	movl	$4, %r8d
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_14:
	movl	$2, (%r12)
	movl	$2, %r8d
	jmp	LBB0_17
LBB0_7:
	movl	$0, (%r12)
	xorl	%r8d, %r8d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_RFE_OPTION,8,3          ## @EEPROM_RFE_OPTION
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RFE Type: 0x%2x\n"

	.no_dead_strip	__rtl8821ae_read_rfe_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_read_rfe_type
__rtl8821ae_read_rfe_type:              ; @_rtl8821ae_read_rfe_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	bl	_rtl_priv
	mov	x19, x0
	bl	_rtl_hal
	mov	x20, x0
	cbz	w22, LBB0_4
LBB0_1:
	mov	w4, #4
LBB0_2:
	str	w4, [x20]
LBB0_3:
Lloh0:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RT_TRACE
LBB0_4:
Lloh8:
	adrp	x22, _EEPROM_RFE_OPTION@GOTPAGE
Lloh9:
	ldr	x22, [x22, _EEPROM_RFE_OPTION@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w23, [x21, x8, lsl #2]
	mov	w0, #7
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_10
; %bb.5:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_1
; %bb.6:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_16
; %bb.7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
; %bb.8:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_17
; %bb.9:
	mov	w4, #3
	b	LBB0_2
LBB0_10:
	ldr	x8, [x22]
	ldr	w8, [x21, x8, lsl #2]
	and	w4, w8, #0x3f
	str	w4, [x20]
	cmp	w4, #4
	b.ne	LBB0_3
; %bb.11:
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_15
; %bb.12:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_15
; %bb.13:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_18
LBB0_15:
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_16:
	mov	w4, #2
	b	LBB0_2
LBB0_17:
	mov	w4, #0
	str	wzr, [x20]
	b	LBB0_3
LBB0_18:
	mov	w4, #4
	b	LBB0_3
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_RFE_OPTION,8,3          ; @EEPROM_RFE_OPTION
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RFE Type: 0x%2x\n"

	.no_dead_strip	__rtl8821ae_read_rfe_type
.subsections_via_symbols
