	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_sta_ht_cap         ## -- Begin function mwifiex_set_sta_ht_cap
	.p2align	4, 0x90
_mwifiex_set_sta_ht_cap:                ## @mwifiex_set_sta_ht_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rcx, %rbx
	movq	_WLAN_EID_HT_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cfg80211_find_ie
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	$1, (%rbx)
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	_MWIFIEX_TX_DATA_BUF_SIZE_4K@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_3:
	movq	_MWIFIEX_TX_DATA_BUF_SIZE_8K@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_HT_CAPABILITY,4,2     ## @WLAN_EID_HT_CAPABILITY
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_8K,4,2 ## @MWIFIEX_TX_DATA_BUF_SIZE_8K
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_4K,4,2 ## @MWIFIEX_TX_DATA_BUF_SIZE_4K
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_sta_ht_cap         ; -- Begin function mwifiex_set_sta_ht_cap
	.p2align	2
_mwifiex_set_sta_ht_cap:                ; @mwifiex_set_sta_ht_cap
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x3
Lloh0:
	adrp	x8, _WLAN_EID_HT_CAPABILITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_HT_CAPABILITY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x0, #4]
	bl	_le16_to_cpu
Lloh3:
	adrp	x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MWIFIEX_TX_DATA_BUF_SIZE_8K@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MWIFIEX_TX_DATA_BUF_SIZE_8K@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MWIFIEX_TX_DATA_BUF_SIZE_4K@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MWIFIEX_TX_DATA_BUF_SIZE_4K@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_3:
	str	wzr, [x19]
LBB0_4:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_HT_CAPABILITY,4,2     ; @WLAN_EID_HT_CAPABILITY
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ; @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_8K,4,2 ; @MWIFIEX_TX_DATA_BUF_SIZE_8K
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_4K,4,2 ; @MWIFIEX_TX_DATA_BUF_SIZE_4K
.subsections_via_symbols
