	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_getcapinfo           ## -- Begin function ieee80211_getcapinfo
	.p2align	4, 0x90
_ieee80211_getcapinfo:                  ## @ieee80211_getcapinfo
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	16(%rdi), %r12
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%r15), %rcx
	movq	_IEEE80211_M_HOSTAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_IEEE80211_CAPINFO_ESS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IEEE80211_M_IBSS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	_IEEE80211_CAPINFO_IBSS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	movq	_IEEE80211_F_PRIVACY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	8(%r15), %r13d
	je	LBB0_7
## %bb.6:
	movq	_IEEE80211_CAPINFO_PRIVACY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_7:
	orl	%eax, %r13d
	movq	_IEEE80211_F_SHPREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_2GHZ
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_IEEE80211_CAPINFO_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_10:
	movq	_IEEE80211_F_SHSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	je	LBB0_12
## %bb.11:
	movq	_IEEE80211_CAPINFO_SHORT_SLOTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	orl	%r13d, %ebx
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_5GHZ
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	_IEEE80211_F_DOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_15
## %bb.14:
	movq	_IEEE80211_CAPINFO_SPECTRUM_MGMT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"station mode"

	.comm	_IEEE80211_M_HOSTAP,8,3         ## @IEEE80211_M_HOSTAP
	.comm	_IEEE80211_CAPINFO_ESS,4,2      ## @IEEE80211_CAPINFO_ESS
	.comm	_IEEE80211_M_IBSS,8,3           ## @IEEE80211_M_IBSS
	.comm	_IEEE80211_CAPINFO_IBSS,4,2     ## @IEEE80211_CAPINFO_IBSS
	.comm	_IEEE80211_F_PRIVACY,4,2        ## @IEEE80211_F_PRIVACY
	.comm	_IEEE80211_CAPINFO_PRIVACY,4,2  ## @IEEE80211_CAPINFO_PRIVACY
	.comm	_IEEE80211_F_SHPREAMBLE,4,2     ## @IEEE80211_F_SHPREAMBLE
	.comm	_IEEE80211_CAPINFO_SHORT_PREAMBLE,4,2 ## @IEEE80211_CAPINFO_SHORT_PREAMBLE
	.comm	_IEEE80211_F_SHSLOT,4,2         ## @IEEE80211_F_SHSLOT
	.comm	_IEEE80211_CAPINFO_SHORT_SLOTTIME,4,2 ## @IEEE80211_CAPINFO_SHORT_SLOTTIME
	.comm	_IEEE80211_F_DOTH,4,2           ## @IEEE80211_F_DOTH
	.comm	_IEEE80211_CAPINFO_SPECTRUM_MGMT,4,2 ## @IEEE80211_CAPINFO_SPECTRUM_MGMT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_getcapinfo           ; -- Begin function ieee80211_getcapinfo
	.p2align	2
_ieee80211_getcapinfo:                  ; @ieee80211_getcapinfo
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_M_STA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _IEEE80211_M_HOSTAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_M_HOSTAP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _IEEE80211_CAPINFO_ESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_CAPINFO_ESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x9, _IEEE80211_M_IBSS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_M_IBSS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _IEEE80211_CAPINFO_IBSS@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IEEE80211_CAPINFO_IBSS@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, wzr, eq
LBB0_3:
	ldr	w9, [x19, #8]
Lloh17:
	adrp	x10, _IEEE80211_F_PRIVACY@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IEEE80211_F_PRIVACY@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _IEEE80211_CAPINFO_PRIVACY@GOTPAGE
Lloh21:
	ldr	x11, [x11, _IEEE80211_CAPINFO_PRIVACY@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w22, w9, w8
	ldr	w8, [x21]
Lloh23:
	adrp	x9, _IEEE80211_F_SHPREAMBLE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IEEE80211_F_SHPREAMBLE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_2GHZ
	cbz	x0, LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _IEEE80211_CAPINFO_SHORT_PREAMBLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_CAPINFO_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_6:
	ldr	w8, [x21]
Lloh29:
	adrp	x9, _IEEE80211_F_SHSLOT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IEEE80211_F_SHSLOT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _IEEE80211_CAPINFO_SHORT_SLOTTIME@GOTPAGE
Lloh33:
	ldr	x10, [x10, _IEEE80211_CAPINFO_SHORT_SLOTTIME@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	orr	w21, w8, w22
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_5GHZ
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x19, #8]
Lloh35:
	adrp	x9, _IEEE80211_F_DOTH@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IEEE80211_F_DOTH@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh38:
	adrp	x8, _IEEE80211_CAPINFO_SPECTRUM_MGMT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IEEE80211_CAPINFO_SPECTRUM_MGMT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_9:
	mov	x0, x21
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"station mode"

	.comm	_IEEE80211_M_HOSTAP,8,3         ; @IEEE80211_M_HOSTAP
	.comm	_IEEE80211_CAPINFO_ESS,4,2      ; @IEEE80211_CAPINFO_ESS
	.comm	_IEEE80211_M_IBSS,8,3           ; @IEEE80211_M_IBSS
	.comm	_IEEE80211_CAPINFO_IBSS,4,2     ; @IEEE80211_CAPINFO_IBSS
	.comm	_IEEE80211_F_PRIVACY,4,2        ; @IEEE80211_F_PRIVACY
	.comm	_IEEE80211_CAPINFO_PRIVACY,4,2  ; @IEEE80211_CAPINFO_PRIVACY
	.comm	_IEEE80211_F_SHPREAMBLE,4,2     ; @IEEE80211_F_SHPREAMBLE
	.comm	_IEEE80211_CAPINFO_SHORT_PREAMBLE,4,2 ; @IEEE80211_CAPINFO_SHORT_PREAMBLE
	.comm	_IEEE80211_F_SHSLOT,4,2         ; @IEEE80211_F_SHSLOT
	.comm	_IEEE80211_CAPINFO_SHORT_SLOTTIME,4,2 ; @IEEE80211_CAPINFO_SHORT_SLOTTIME
	.comm	_IEEE80211_F_DOTH,4,2           ; @IEEE80211_F_DOTH
	.comm	_IEEE80211_CAPINFO_SPECTRUM_MGMT,4,2 ; @IEEE80211_CAPINFO_SPECTRUM_MGMT
.subsections_via_symbols
