	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_vhtcap           ## -- Begin function ieee80211_add_vhtcap
	.p2align	4, 0x90
_ieee80211_add_vhtcap:                  ## @ieee80211_add_vhtcap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpq	(%rsi), %rcx
	sete	%dl
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ieee80211_vht_get_vhtcap_ie
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_IEEE80211_ELEMID_VHT_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$18, 4(%rbx)
	addq	$8, %rbx
	movl	-16(%rbp), %esi
	movq	%rbx, %rdi
	callq	_ADDWORD
	movl	-20(%rbp), %esi
	movq	%rbx, %rdi
	callq	_ADDSHORT
	movl	-24(%rbp), %esi
	movq	%rbx, %rdi
	callq	_ADDSHORT
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_ADDSHORT
	movl	-32(%rbp), %esi
	movq	%rbx, %rdi
	callq	_ADDSHORT
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
	.comm	_IEEE80211_ELEMID_VHT_CAP,4,2   ## @IEEE80211_ELEMID_VHT_CAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_vhtcap           ; -- Begin function ieee80211_add_vhtcap
	.p2align	2
_ieee80211_add_vhtcap:                  ; @ieee80211_add_vhtcap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x8, x1
	mov	x19, x0
	ldr	x9, [x1]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _IEEE80211_M_STA@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w2, eq
	add	x1, sp, #8
	mov	x0, x8
	bl	_ieee80211_vht_get_vhtcap_ie
	mov	x0, x19
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh3:
	adrp	x8, _IEEE80211_ELEMID_VHT_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_ELEMID_VHT_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #18
	stp	w8, w9, [x19], #8
	ldr	w1, [sp, #24]
	mov	x0, x19
	bl	_ADDWORD
	ldr	w1, [sp, #20]
	mov	x0, x19
	bl	_ADDSHORT
	ldr	w1, [sp, #16]
	mov	x0, x19
	bl	_ADDSHORT
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_ADDSHORT
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_ADDSHORT
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
	.comm	_IEEE80211_ELEMID_VHT_CAP,4,2   ; @IEEE80211_ELEMID_VHT_CAP
.subsections_via_symbols
