	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_add_ht_cap_ie             ## -- Begin function mesh_add_ht_cap_ie
	.p2align	4, 0x90
_mesh_add_ht_cap_ie:                    ## @mesh_add_ht_cap_ie
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_ieee80211_get_sdata_band
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r12
	xorl	%r15d, %r15d
	cmpl	$0, 4(%r12)
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_skb_tailroom
	cmpl	$5, %eax
	ja	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_skb_put
	movl	(%r12), %edx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_ieee80211_ie_build_ht_cap
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ## @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_add_ht_cap_ie             ; -- Begin function mesh_add_ht_cap_ie
	.p2align	2
_mesh_add_ht_cap_ie:                    ; @mesh_add_ht_cap_ie
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	bl	_ieee80211_get_sdata_band
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x20, [x8, w0, uxtw #3]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_skb_tailroom
	cmp	w0, #5
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	w1, #6
	bl	_skb_put
	ldr	w2, [x20]
	mov	x1, x20
	bl	_ieee80211_ie_build_ht_cap
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ; @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
