	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_setup_ht_caps
_mwifiex_setup_ht_caps:                 ## @mwifiex_setup_ht_caps
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %r12
	movl	$1, (%rdi)
	movq	_IEEE80211_HT_MAX_AMPDU_64K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_IEEE80211_HT_MPDU_DENSITY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%r12), %edi
	callq	_ISSUPP_CHANWIDTH40
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	orl	%ecx, 4(%rbx)
	jmp	LBB0_3
LBB0_2:
	notl	%ecx
	andl	%ecx, 4(%rbx)
LBB0_3:
	movl	8(%r12), %edi
	callq	_ISSUPP_SHORTGI20
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	orl	%ecx, 4(%rbx)
	jmp	LBB0_6
LBB0_5:
	notl	%ecx
	andl	%ecx, 4(%rbx)
LBB0_6:
	movl	8(%r12), %edi
	callq	_ISSUPP_SHORTGI40
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	orl	4(%rbx), %edx
	jmp	LBB0_9
LBB0_8:
	notl	%edx
	andl	4(%rbx), %edx
LBB0_9:
	movq	(%r12), %rax
	movq	_HT_STREAM_2X2@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	movq	_IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	incl	%esi
	shll	%cl, %esi
	orl	%edx, %esi
	movl	%esi, 4(%rbx)
	movl	8(%r12), %edi
	callq	_ISSUPP_TXSTBC
	movq	_IEEE80211_HT_CAP_TX_STBC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	orl	4(%rbx), %ecx
	jmp	LBB0_12
LBB0_11:
	notl	%ecx
	andl	4(%rbx), %ecx
LBB0_12:
	movl	%ecx, 4(%rbx)
	movl	8(%r12), %edi
	callq	_ISSUPP_GREENFIELD
	movq	_IEEE80211_HT_CAP_GRN_FLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	orl	4(%rbx), %ecx
	jmp	LBB0_15
LBB0_14:
	notl	%ecx
	andl	4(%rbx), %ecx
LBB0_15:
	movl	%ecx, 4(%rbx)
	movl	8(%r12), %edi
	callq	_ISENABLED_40MHZ_INTOLERANT
	movq	_IEEE80211_HT_CAP_40MHZ_INTOLERANT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	orl	4(%rbx), %ecx
	jmp	LBB0_18
LBB0_17:
	notl	%ecx
	andl	4(%rbx), %ecx
LBB0_18:
	movl	%ecx, 4(%rbx)
	movl	8(%r12), %edi
	callq	_ISSUPP_RXLDPC
	movq	_IEEE80211_HT_CAP_LDPC_CODING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	orl	4(%rbx), %ecx
	jmp	LBB0_21
LBB0_20:
	notl	%ecx
	andl	4(%rbx), %ecx
LBB0_21:
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movq	_IEEE80211_HT_CAP_SM_PS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movq	(%r12), %rdi
	callq	_GET_RXMCSSUPP
	movl	%eax, %ebx
	leaq	-40(%rbp), %rdi
	movl	$255, %esi
	movl	%eax, %edx
	callq	_memset
	movslq	%ebx, %rax
	leaq	-40(,%rax,4), %rdi
	addq	%rbp, %rdi
	movl	$4, %edx
	subl	%eax, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	movl	8(%r12), %edi
	callq	_ISSUPP_CHANWIDTH40
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	movl	-40(%rbp), %edi
	callq	_SETHT_MCS32
LBB0_24:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_IEEE80211_HT_MCS_TX_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ## @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_NONE,4,2 ## @IEEE80211_HT_MPDU_DENSITY_NONE
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
	.comm	_HT_STREAM_2X2,8,3              ## @HT_STREAM_2X2
	.comm	_IEEE80211_HT_CAP_RX_STBC_SHIFT,4,2 ## @IEEE80211_HT_CAP_RX_STBC_SHIFT
	.comm	_IEEE80211_HT_CAP_TX_STBC,4,2   ## @IEEE80211_HT_CAP_TX_STBC
	.comm	_IEEE80211_HT_CAP_GRN_FLD,4,2   ## @IEEE80211_HT_CAP_GRN_FLD
	.comm	_IEEE80211_HT_CAP_40MHZ_INTOLERANT,4,2 ## @IEEE80211_HT_CAP_40MHZ_INTOLERANT
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ## @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_IEEE80211_HT_CAP_SM_PS,4,2     ## @IEEE80211_HT_CAP_SM_PS
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ## @IEEE80211_HT_MCS_TX_DEFINED
	.no_dead_strip	_mwifiex_setup_ht_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_setup_ht_caps
_mwifiex_setup_ht_caps:                 ; @mwifiex_setup_ht_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	ldr	x22, [x1, #8]
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_HT_MPDU_DENSITY_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_HT_MPDU_DENSITY_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x22, #8]
	bl	_ISSUPP_CHANWIDTH40
Lloh6:
	adrp	x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x21, #4]
	ldr	w0, [x22, #8]
	bl	_ISSUPP_SHORTGI20
Lloh9:
	adrp	x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_5:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_6:
	str	w8, [x21, #4]
	ldr	w0, [x22, #8]
	bl	_ISSUPP_SHORTGI40
Lloh12:
	adrp	x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_9
LBB0_8:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_9:
Lloh15:
	adrp	x9, _HT_STREAM_2X2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HT_STREAM_2X2@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x11, _IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	cmp	x10, x9
	mov	w9, #1
	cinc	w9, w9, eq
	lsl	w9, w9, w11
	orr	w8, w8, w9
	str	w8, [x21, #4]
	ldr	w0, [x22, #8]
	bl	_ISSUPP_TXSTBC
Lloh21:
	adrp	x8, _IEEE80211_HT_CAP_TX_STBC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_HT_CAP_TX_STBC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_12
LBB0_11:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_12:
	str	w8, [x21, #4]
	ldr	w0, [x22, #8]
	bl	_ISSUPP_GREENFIELD
Lloh24:
	adrp	x8, _IEEE80211_HT_CAP_GRN_FLD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_HT_CAP_GRN_FLD@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_15
LBB0_14:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_15:
	str	w8, [x21, #4]
	ldr	w0, [x22, #8]
	bl	_ISENABLED_40MHZ_INTOLERANT
Lloh27:
	adrp	x8, _IEEE80211_HT_CAP_40MHZ_INTOLERANT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IEEE80211_HT_CAP_40MHZ_INTOLERANT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_18
LBB0_17:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_18:
	str	w8, [x21, #4]
	ldr	w0, [x22, #8]
	bl	_ISSUPP_RXLDPC
Lloh30:
	adrp	x8, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_21
LBB0_20:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_21:
Lloh33:
	adrp	x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh36:
	adrp	x9, _IEEE80211_HT_CAP_SM_PS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SM_PS@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	ldr	x0, [x22]
	bl	_GET_RXMCSSUPP
	mov	x21, x0
	add	x23, sp, #8
	add	x0, sp, #8
	mov	w1, #255
	mov	x2, x21
	bl	_memset
	add	x0, x23, w21, sxtw #2
	mov	w8, #4
	sub	w2, w8, w21
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20]
Lloh39:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh40:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.22:
	ldr	w0, [x22, #8]
	bl	_ISSUPP_CHANWIDTH40
	cbz	x0, LBB0_24
LBB0_23:
	ldr	w0, [sp, #8]
	bl	_SETHT_MCS32
LBB0_24:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
Lloh42:
	adrp	x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ; @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_NONE,4,2 ; @IEEE80211_HT_MPDU_DENSITY_NONE
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
	.comm	_HT_STREAM_2X2,8,3              ; @HT_STREAM_2X2
	.comm	_IEEE80211_HT_CAP_RX_STBC_SHIFT,4,2 ; @IEEE80211_HT_CAP_RX_STBC_SHIFT
	.comm	_IEEE80211_HT_CAP_TX_STBC,4,2   ; @IEEE80211_HT_CAP_TX_STBC
	.comm	_IEEE80211_HT_CAP_GRN_FLD,4,2   ; @IEEE80211_HT_CAP_GRN_FLD
	.comm	_IEEE80211_HT_CAP_40MHZ_INTOLERANT,4,2 ; @IEEE80211_HT_CAP_40MHZ_INTOLERANT
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ; @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ; @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_IEEE80211_HT_CAP_SM_PS,4,2     ; @IEEE80211_HT_CAP_SM_PS
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ; @IEEE80211_HT_MCS_TX_DEFINED
	.no_dead_strip	_mwifiex_setup_ht_caps
.subsections_via_symbols
