	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_parse_csaparams
_ieee80211_parse_csaparams:             ## @ieee80211_parse_csaparams
	.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, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setae	%dil
	movq	_ieee80211_state_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx,%rax,4), %rsi
	callq	_KASSERT
	movl	(%rbx), %r9d
	cmpl	$2, %r9d
	jl	LBB0_1
## %bb.15:
	movq	_IEEE80211_MSG_ELEMID@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_DOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_DISCARD_IE           ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	callq	_IEEE80211_LOCK
	movq	_IEEE80211_F_CSAPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.6:
	movl	4(%rbx), %eax
	movl	4(%r15), %r10d
	cmpl	%r10d, %eax
	jge	LBB0_10
## %bb.7:
	movl	(%rbx), %ecx
	cmpl	8(%r15), %ecx
	jne	LBB0_10
## %bb.8:
	movl	8(%rbx), %r13d
	movl	12(%r15), %esi
	movq	%r15, %rdi
	callq	_ieee80211_chan2ieee
	cmpl	%eax, %r13d
	jne	LBB0_9
## %bb.11:
	movl	4(%rbx), %eax
	cmpl	$1, %eax
	jg	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_ieee80211_csa_completeswitch
	jmp	LBB0_14
LBB0_2:
	movl	8(%rbx), %esi
	movq	16(%r15), %rax
	movq	_IEEE80211_CHAN_ALLTURBO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ieee80211_find_channel_byieee
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	8(%rbx), %esi
	movq	16(%r15), %rax
	movq	_IEEE80211_CHAN_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ieee80211_find_channel_byieee
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ieee80211_csa_startswitch
	jmp	LBB0_14
LBB0_9:
	movl	4(%r15), %r10d
	movl	4(%rbx), %eax
LBB0_10:
	movq	_IEEE80211_MSG_DOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%r15), %r8d
	movl	12(%r15), %r9d
	movl	(%rbx), %r11d
	movl	8(%rbx), %ebx
	leaq	L_.str.4(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_IEEE80211_NOTE_FRAME
	addq	$32, %rsp
	movq	%r15, %rdi
	callq	_ieee80211_csa_cancelswitch
LBB0_14:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_UNLOCK               ## TAILCALL
LBB0_4:
	movq	_IEEE80211_MSG_ELEMID@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_DOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	8(%rbx), %r9d
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.3(%rip), %r8
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_IEEE80211_DISCARD_IE
	jmp	LBB0_14
LBB0_13:
	movl	%eax, 4(%r15)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.comm	_ieee80211_state_name,8,3       ## @ieee80211_state_name
	.comm	_IEEE80211_MSG_ELEMID,4,2       ## @IEEE80211_MSG_ELEMID
	.comm	_IEEE80211_MSG_DOTH,4,2         ## @IEEE80211_MSG_DOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"CSA"

L_.str.2:                               ## @.str.2
	.asciz	"invalid mode %u"

	.comm	_IEEE80211_F_CSAPENDING,4,2     ## @IEEE80211_F_CSAPENDING
	.comm	_IEEE80211_CHAN_ALLTURBO,4,2    ## @IEEE80211_CHAN_ALLTURBO
	.comm	_IEEE80211_CHAN_ALL,4,2         ## @IEEE80211_CHAN_ALL
L_.str.3:                               ## @.str.3
	.asciz	"invalid channel %u"

L_.str.4:                               ## @.str.4
	.asciz	"CSA ie mismatch, initial ie <%d,%d,%d>, this ie <%d,%d,%d>"

	.comm	_IEEE80211_CSA_COUNT_MIN,4,2    ## @IEEE80211_CSA_COUNT_MIN
	.no_dead_strip	_ieee80211_parse_csaparams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_parse_csaparams
_ieee80211_parse_csaparams:             ; @ieee80211_parse_csaparams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _IEEE80211_S_RUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_S_RUN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, hs
Lloh3:
	adrp	x9, _ieee80211_state_name@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ieee80211_state_name@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldrsw	x1, [x9, x8, lsl #2]
	bl	_KASSERT
	ldr	w5, [x22]
	cmp	w5, #2
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _IEEE80211_MSG_ELEMID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_MSG_ELEMID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IEEE80211_MSG_DOTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_MSG_DOTH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh14:
	adrp	x4, l_.str.2@PAGE
Lloh15:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_IEEE80211_DISCARD_IE
LBB0_2:
	mov	x0, x19
	bl	_IEEE80211_LOCK
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _IEEE80211_F_CSAPENDING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IEEE80211_F_CSAPENDING@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	ldr	w8, [x22, #4]
	ldr	w6, [x19, #4]
	cmp	w8, w6
	b.ge	LBB0_12
; %bb.4:
	ldr	w9, [x22]
	ldr	w10, [x19, #8]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.5:
	ldr	w23, [x22, #8]
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_ieee80211_chan2ieee
	cmp	w23, w0
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.gt	LBB0_15
; %bb.7:
	mov	x0, x19
	bl	_ieee80211_csa_completeswitch
	b	LBB0_13
LBB0_8:
	ldr	w1, [x22, #8]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _IEEE80211_CHAN_ALLTURBO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IEEE80211_CHAN_ALLTURBO@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_ieee80211_find_channel_byieee
	mov	x1, x0
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x22, #8]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _IEEE80211_CHAN_ALL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IEEE80211_CHAN_ALL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_ieee80211_find_channel_byieee
	mov	x1, x0
	cbz	x0, LBB0_14
LBB0_10:
	ldp	w2, w3, [x22]
	mov	x0, x19
	bl	_ieee80211_csa_startswitch
	b	LBB0_13
LBB0_11:
	ldr	w6, [x19, #4]
	ldr	w8, [x22, #4]
LBB0_12:
Lloh25:
	adrp	x9, _IEEE80211_MSG_DOTH@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IEEE80211_MSG_DOTH@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	ldp	w4, w5, [x19, #8]
	ldr	w7, [x22]
	ldr	w9, [x22, #8]
	stp	w9, w8, [sp]
Lloh28:
	adrp	x3, l_.str.4@PAGE
Lloh29:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_IEEE80211_NOTE_FRAME
	mov	x0, x19
	bl	_ieee80211_csa_cancelswitch
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_IEEE80211_UNLOCK
LBB0_14:
Lloh30:
	adrp	x8, _IEEE80211_MSG_ELEMID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_MSG_ELEMID@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _IEEE80211_MSG_DOTH@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IEEE80211_MSG_DOTH@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w5, [x22, #8]
Lloh36:
	adrp	x3, l_.str.1@PAGE
Lloh37:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh38:
	adrp	x4, l_.str.3@PAGE
Lloh39:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_IEEE80211_DISCARD_IE
	b	LBB0_13
LBB0_15:
	str	w8, [x19, #4]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.comm	_ieee80211_state_name,8,3       ; @ieee80211_state_name
	.comm	_IEEE80211_MSG_ELEMID,4,2       ; @IEEE80211_MSG_ELEMID
	.comm	_IEEE80211_MSG_DOTH,4,2         ; @IEEE80211_MSG_DOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"CSA"

l_.str.2:                               ; @.str.2
	.asciz	"invalid mode %u"

	.comm	_IEEE80211_F_CSAPENDING,4,2     ; @IEEE80211_F_CSAPENDING
	.comm	_IEEE80211_CHAN_ALLTURBO,4,2    ; @IEEE80211_CHAN_ALLTURBO
	.comm	_IEEE80211_CHAN_ALL,4,2         ; @IEEE80211_CHAN_ALL
l_.str.3:                               ; @.str.3
	.asciz	"invalid channel %u"

l_.str.4:                               ; @.str.4
	.asciz	"CSA ie mismatch, initial ie <%d,%d,%d>, this ie <%d,%d,%d>"

	.comm	_IEEE80211_CSA_COUNT_MIN,4,2    ; @IEEE80211_CSA_COUNT_MIN
	.no_dead_strip	_ieee80211_parse_csaparams
.subsections_via_symbols
