	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_fill_cap_info          ## -- Begin function mwifiex_fill_cap_info
	.p2align	4, 0x90
_mwifiex_fill_cap_info:                 ## @mwifiex_fill_cap_info
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r13), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	4(%rbx), %edx
	movq	_IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, (%r14)
	leaq	24(%r14), %r12
	leaq	12(%rbx), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movl	8(%rbx), %edi
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_6
## %bb.4:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_5:
	movl	(%r12), %edi
	callq	_SETHT_MCS32
	movl	8(%rbx), %edi
LBB0_6:
	movq	_IEEE80211_HT_EXT_CAP_RD_RESPONDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movq	8(%r13), %rax
	movl	8(%rax), %edi
	callq	_ISSUPP_BEAMFORMING
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_MWIFIEX_DEF_11N_TX_BF_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid radio type!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ## @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT,4,2 ## @IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY,4,2 ## @IEEE80211_HT_AMPDU_PARM_DENSITY
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_NONE,8,3 ## @IEEE80211_HT_PARAM_CHA_SEC_NONE
	.comm	_IEEE80211_HT_EXT_CAP_RD_RESPONDER,4,2 ## @IEEE80211_HT_EXT_CAP_RD_RESPONDER
	.comm	_MWIFIEX_DEF_11N_TX_BF_CAP,4,2  ## @MWIFIEX_DEF_11N_TX_BF_CAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_fill_cap_info          ; -- Begin function mwifiex_fill_cap_info
	.p2align	2
_mwifiex_fill_cap_info:                 ; @mwifiex_fill_cap_info
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x0, [x2, #8]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x23, [x8, x22, lsl #3]
	cmp	x23, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
Lloh8:
	adrp	x8, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w9, w10, [x23]
Lloh11:
	adrp	x11, _IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT@GOTPAGEOFF]
	and	w8, w8, w9
Lloh13:
	ldr	w9, [x11]
	lsl	w9, w10, w9
Lloh14:
	adrp	x10, _IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w9, w8
	mov	x22, x19
	str	w8, [x22], #24
	add	x1, x23, #12
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x23, #8]
Lloh20:
	adrp	x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_5:
	ldr	w0, [x22]
	bl	_SETHT_MCS32
	ldr	w0, [x23, #8]
LBB0_6:
Lloh26:
	adrp	x8, _IEEE80211_HT_EXT_CAP_RD_RESPONDER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_HT_EXT_CAP_RD_RESPONDER@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	bic	w21, w21, w8
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_ISSUPP_BEAMFORMING
	cbz	x0, LBB0_8
; %bb.7:
Lloh29:
	adrp	x8, _MWIFIEX_DEF_11N_TX_BF_CAP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MWIFIEX_DEF_11N_TX_BF_CAP@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid radio type!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ; @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT,4,2 ; @IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY,4,2 ; @IEEE80211_HT_AMPDU_PARM_DENSITY
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_NONE,8,3 ; @IEEE80211_HT_PARAM_CHA_SEC_NONE
	.comm	_IEEE80211_HT_EXT_CAP_RD_RESPONDER,4,2 ; @IEEE80211_HT_EXT_CAP_RD_RESPONDER
	.comm	_MWIFIEX_DEF_11N_TX_BF_CAP,4,2  ; @MWIFIEX_DEF_11N_TX_BF_CAP
.subsections_via_symbols
