	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_get_ra_rftype
__rtl8821ae_get_ra_rftype:              ## @_rtl8821ae_get_ra_rftype
	.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	%edx, %r14d
	movl	%esi, %ebx
	callq	_rtl_priv
	movq	%rax, %rcx
	movq	_RF_1T1R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	_WIRELESS_MODE_AC_5G@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_WIRELESS_MODE_AC_24G@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_WIRELESS_MODE_AC_ONLY@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_4
## %bb.6:
	movq	_WIRELESS_MODE_N_5G@GOTPCREL(%rip), %rcx
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	movq	_RF_2T2R@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	cmovneq	%rax, %rsi
	cmpl	%ebx, (%rcx)
	cmoveq	%rdx, %rsi
	cmpl	$1048576, %r14d                 ## imm = 0x100000
	cmovaeq	%rsi, %rax
	jmp	LBB0_7
LBB0_4:
	cmpl	$4194304, %r14d                 ## imm = 0x400000
	jb	LBB0_7
## %bb.5:
	movq	_RF_2T2R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_1T1R,8,3                    ## @RF_1T1R
	.comm	_WIRELESS_MODE_AC_5G,4,2        ## @WIRELESS_MODE_AC_5G
	.comm	_WIRELESS_MODE_AC_24G,4,2       ## @WIRELESS_MODE_AC_24G
	.comm	_WIRELESS_MODE_AC_ONLY,4,2      ## @WIRELESS_MODE_AC_ONLY
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_WIRELESS_MODE_N_5G,4,2         ## @WIRELESS_MODE_N_5G
	.comm	_WIRELESS_MODE_N_24G,4,2        ## @WIRELESS_MODE_N_24G
	.no_dead_strip	__rtl8821ae_get_ra_rftype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_get_ra_rftype
__rtl8821ae_get_ra_rftype:              ; @_rtl8821ae_get_ra_rftype
	.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, x2
	mov	x20, x1
	bl	_rtl_priv
	mov	x8, x0
Lloh0:
	adrp	x9, _RF_1T1R@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RF_1T1R@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _WIRELESS_MODE_AC_5G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIRELESS_MODE_AC_5G@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WIRELESS_MODE_AC_24G@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WIRELESS_MODE_AC_24G@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _WIRELESS_MODE_AC_ONLY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WIRELESS_MODE_AC_ONLY@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	ccmp	w10, w20, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _RF_2T2R@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RF_2T2R@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	w19, #1024, lsl #12             ; =4194304
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _WIRELESS_MODE_N_5G@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WIRELESS_MODE_N_5G@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w9, w20
	ccmp	w8, w20, #4, ne
	mov	w8, #1048576
	ccmp	w19, w8, #0, eq
Lloh21:
	adrp	x8, _RF_2T2R@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RF_2T2R@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
LBB0_4:
	csel	x0, x0, x8, lo
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_1T1R,8,3                    ; @RF_1T1R
	.comm	_WIRELESS_MODE_AC_5G,4,2        ; @WIRELESS_MODE_AC_5G
	.comm	_WIRELESS_MODE_AC_24G,4,2       ; @WIRELESS_MODE_AC_24G
	.comm	_WIRELESS_MODE_AC_ONLY,4,2      ; @WIRELESS_MODE_AC_ONLY
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_WIRELESS_MODE_N_5G,4,2         ; @WIRELESS_MODE_N_5G
	.comm	_WIRELESS_MODE_N_24G,4,2        ; @WIRELESS_MODE_N_24G
	.no_dead_strip	__rtl8821ae_get_ra_rftype
.subsections_via_symbols
