	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ht_updatehtcap_final ## -- Begin function ieee80211_ht_updatehtcap_final
	.p2align	4, 0x90
_ieee80211_ht_updatehtcap_final:        ## @ieee80211_ht_updatehtcap_final
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	(%r15), %eax
	movq	_IEEE80211_FHT_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_CHAN_HT20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	movq	_IEEE80211_HTCAP_CHWIDTH40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_9
## %bb.3:
	movq	_IEEE80211_FHT_USEHT40@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.4:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_IEEE80211_IS_CHAN_HT40U
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_IEEE80211_CHAN_HT40U@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_IEEE80211_IS_CHAN_HT40D
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_IEEE80211_CHAN_HT40D@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ieee80211_vht_get_vhtflags
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_htinfo_update_chw              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FHT_HT,4,2           ## @IEEE80211_FHT_HT
	.comm	_IEEE80211_CHAN_HT20,4,2        ## @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ## @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_FHT_USEHT40,4,2      ## @IEEE80211_FHT_USEHT40
	.comm	_IEEE80211_CHAN_HT40U,4,2       ## @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ## @IEEE80211_CHAN_HT40D
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ht_updatehtcap_final ; -- Begin function ieee80211_ht_updatehtcap_final
	.p2align	2
_ieee80211_ht_updatehtcap_final:        ; @ieee80211_ht_updatehtcap_final
	.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, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x9, _IEEE80211_FHT_HT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_FHT_HT@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IEEE80211_CHAN_HT20@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_CHAN_HT20@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w20, wzr, w10, eq
	ldr	w9, [x0]
Lloh6:
	adrp	x10, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.1:
Lloh9:
	adrp	x9, _IEEE80211_FHT_USEHT40@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_FHT_USEHT40@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_IEEE80211_IS_CHAN_HT40U
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _IEEE80211_CHAN_HT40U@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40U@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_IEEE80211_IS_CHAN_HT40D
Lloh15:
	adrp	x8, _IEEE80211_CHAN_HT40D@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40D@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_vht_get_vhtflags
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	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
	b	_htinfo_update_chw
	.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	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FHT_HT,4,2           ; @IEEE80211_FHT_HT
	.comm	_IEEE80211_CHAN_HT20,4,2        ; @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ; @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_FHT_USEHT40,4,2      ; @IEEE80211_FHT_USEHT40
	.comm	_IEEE80211_CHAN_HT40U,4,2       ; @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ; @IEEE80211_CHAN_HT40D
.subsections_via_symbols
