	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_set_chan        ## -- Begin function ieee80211_node_set_chan
	.p2align	4, 0x90
_ieee80211_node_set_chan:               ## @ieee80211_node_set_chan
	.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, %rbx
	movq	%rdi, %r14
	movq	32(%rdi), %r13
	movq	40(%rdi), %r15
	movq	_IEEE80211_CHAN_ANYC@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rsi, (%rax)
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%rbx, 24(%r14)
	movq	%rbx, %rdi
	callq	_ieee80211_chan2mode
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_IEEE80211_IS_CHAN_HT
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_get_suphtrates
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_4
## %bb.2:
	movq	_IEEE80211_FHT_PUREN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_3
LBB0_4:
	movq	_IEEE80211_MODE_11NG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_8
## %bb.5:
	movq	_IEEE80211_FHT_PUREN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_8
## %bb.6:
	movq	_IEEE80211_MODE_11G@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_IEEE80211_MODE_11A@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
LBB0_8:
	movq	_IEEE80211_MODE_11G@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_11
## %bb.9:
	movq	_IEEE80211_F_PUREG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	jne	LBB0_11
## %bb.10:
	movq	_IEEE80211_MODE_11B@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	shlq	$2, %rax
	addq	8(%r13), %rax
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_get_suprates
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_ANYC,8,3        ## @IEEE80211_CHAN_ANYC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no channel"

	.comm	_IEEE80211_MODE_11NA,4,2        ## @IEEE80211_MODE_11NA
	.comm	_IEEE80211_FHT_PUREN,4,2        ## @IEEE80211_FHT_PUREN
	.comm	_IEEE80211_MODE_11A,4,2         ## @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11NG,4,2        ## @IEEE80211_MODE_11NG
	.comm	_IEEE80211_MODE_11G,4,2         ## @IEEE80211_MODE_11G
	.comm	_IEEE80211_F_PUREG,4,2          ## @IEEE80211_F_PUREG
	.comm	_IEEE80211_MODE_11B,4,2         ## @IEEE80211_MODE_11B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_set_chan        ; -- Begin function ieee80211_node_set_chan
	.p2align	2
_ieee80211_node_set_chan:               ; @ieee80211_node_set_chan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldp	x23, x21, [x0, #32]
Lloh0:
	adrp	x8, _IEEE80211_CHAN_ANYC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CHAN_ANYC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	cset	w0, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	str	x20, [x19, #24]
	mov	x0, x20
	bl	_ieee80211_chan2mode
	mov	x22, x0
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_HT
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_ieee80211_get_suphtrates
	ldr	w8, [x0]
	str	w8, [x19, #16]
Lloh5:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
Lloh8:
	adrp	x8, _IEEE80211_MODE_11G@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_MODE_11G@GOTPAGEOFF]
	cmp	w22, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	w9, [x23]
Lloh10:
	adrp	x10, _IEEE80211_FHT_PUREN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IEEE80211_FHT_PUREN@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
LBB0_3:
Lloh13:
	adrp	x9, _IEEE80211_MODE_11NG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE80211_MODE_11NG@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w22, w9
	b.ne	LBB0_6
; %bb.4:
	ldr	w9, [x23]
Lloh16:
	adrp	x10, _IEEE80211_FHT_PUREN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IEEE80211_FHT_PUREN@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	ldr	w11, [x8]
	tst	w10, w9
	csel	w22, w11, w22, eq
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x9, _IEEE80211_MODE_11A@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IEEE80211_MODE_11A@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x9]
LBB0_6:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x23, #4]
Lloh22:
	adrp	x9, _IEEE80211_F_PUREG@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IEEE80211_F_PUREG@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _IEEE80211_MODE_11B@GOTPAGE
Lloh26:
	ldr	x10, [x10, _IEEE80211_MODE_11B@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w22, w10, w22, eq
LBB0_8:
	ldr	x8, [x23, #8]
	add	x8, x8, w22, uxtw #2
	str	x8, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_ieee80211_get_suprates
	ldr	w8, [x0]
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_ANYC,8,3        ; @IEEE80211_CHAN_ANYC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no channel"

	.comm	_IEEE80211_MODE_11NA,4,2        ; @IEEE80211_MODE_11NA
	.comm	_IEEE80211_FHT_PUREN,4,2        ; @IEEE80211_FHT_PUREN
	.comm	_IEEE80211_MODE_11A,4,2         ; @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11NG,4,2        ; @IEEE80211_MODE_11NG
	.comm	_IEEE80211_MODE_11G,4,2         ; @IEEE80211_MODE_11G
	.comm	_IEEE80211_F_PUREG,4,2          ; @IEEE80211_F_PUREG
	.comm	_IEEE80211_MODE_11B,4,2         ; @IEEE80211_MODE_11B
.subsections_via_symbols
