	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_get_vht_eni
__rtl8821ae_get_vht_eni:                ## @_rtl8821ae_get_vht_eni
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	ja	LBB0_4
## %bb.1:
	movq	_WIRELESS_MODE_AC_24G@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$1048576, %esi                  ## imm = 0x100000
	setae	%al
	shll	$4, %eax
	orl	$32, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_WIRELESS_MODE_AC_5G@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	sete	%al
	shll	$4, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIRELESS_MODE_N_24G,4,2        ## @WIRELESS_MODE_N_24G
	.comm	_WIRELESS_MODE_AC_24G,4,2       ## @WIRELESS_MODE_AC_24G
	.comm	_WIRELESS_MODE_AC_5G,4,2        ## @WIRELESS_MODE_AC_5G
	.no_dead_strip	__rtl8821ae_get_vht_eni
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_get_vht_eni
__rtl8821ae_get_vht_eni:                ; @_rtl8821ae_get_vht_eni
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh3:
	adrp	x8, _WIRELESS_MODE_AC_24G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIRELESS_MODE_AC_24G@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #48
	mov	w9, #32
	cmp	w1, #256, lsl #12               ; =1048576
	csel	w0, w9, w8, lo
	ret
LBB0_4:
Lloh6:
	adrp	x8, _WIRELESS_MODE_AC_5G@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WIRELESS_MODE_AC_5G@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w0
	cset	w8, eq
	lsl	w0, w8, #4
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WIRELESS_MODE_N_24G,4,2        ; @WIRELESS_MODE_N_24G
	.comm	_WIRELESS_MODE_AC_24G,4,2       ; @WIRELESS_MODE_AC_24G
	.comm	_WIRELESS_MODE_AC_5G,4,2        ; @WIRELESS_MODE_AC_5G
	.no_dead_strip	__rtl8821ae_get_vht_eni
.subsections_via_symbols
