	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rssadapt_node_init
_rssadapt_node_init:                    ## @rssadapt_node_init
	.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	8(%rdi), %r15
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.4:
	movq	_M_80211_RATECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_IEEE80211_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$40, %edi
	callq	_IEEE80211_MALLOC
	movq	%rax, %rbx
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	leaq	24(%r14), %rax
	movq	%r12, 32(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_rssadapt_updatestats
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%r14), %rsi
	movq	32(%r14), %rcx
	decq	%rsi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rdx
	subq	$1, %rsi
	jb	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rcx,%rdx,4), %r8d
	andl	%eax, %r8d
	cmpl	$72, %r8d
	jg	LBB0_7
	jmp	LBB0_10
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	andl	(%rcx), %eax
	movl	%eax, %r8d
LBB0_10:
	movq	%rdx, (%rbx)
	movl	%r8d, (%r14)
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	8(%r14), %rdi
	movq	_IEEE80211_MSG_RATECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_NOTE                 ## TAILCALL
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_if_printf                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ratectl structure was not allocated, per-node structure allocation skipped\n"

	.comm	_M_80211_RATECTL,4,2            ## @M_80211_RATECTL
	.comm	_IEEE80211_M_NOWAIT,4,2         ## @IEEE80211_M_NOWAIT
	.comm	_IEEE80211_M_ZERO,4,2           ## @IEEE80211_M_ZERO
L_.str.1:                               ## @.str.1
	.asciz	"couldn't alloc per-node ratectl structure\n"

	.comm	_IEEE80211_RATE_VAL,4,2         ## @IEEE80211_RATE_VAL
	.comm	_ticks,4,2                      ## @ticks
	.comm	_IEEE80211_MSG_RATECTL,4,2      ## @IEEE80211_MSG_RATECTL
L_.str.2:                               ## @.str.2
	.asciz	"RSSADAPT initial rate %d"

	.no_dead_strip	_rssadapt_node_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rssadapt_node_init
_rssadapt_node_init:                    ; @rssadapt_node_init
	.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
	ldr	x21, [x0, #8]
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbnz	x20, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _M_80211_RATECTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_80211_RATECTL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IEEE80211_M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEEE80211_M_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _IEEE80211_M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #40
	bl	_IEEE80211_MALLOC
	mov	x20, x0
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
LBB0_3:
	add	x8, x19, #24
	str	x22, [x20, #32]
	ldr	q0, [x8]
	str	q0, [x20, #16]
	mov	x0, x20
	bl	_rssadapt_updatestats
Lloh9:
	adrp	x8, _IEEE80211_RATE_VAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_RATE_VAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	ldp	x8, x10, [x19, #24]
	sub	x11, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x11
	cbz	x11, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x10, x8, lsl #2]
	and	w4, w9, w11
	sub	x11, x8, #1
	cmp	w4, #72
	b.gt	LBB0_4
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_7:
	ldr	w10, [x10]
	and	w4, w9, w10
LBB0_8:
	str	x8, [x20]
	str	w4, [x19]
Lloh14:
	adrp	x8, _ticks@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x8, _IEEE80211_MSG_RATECTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_MSG_RATECTL@GOTPAGEOFF]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh21:
	ldr	w1, [x8]
	mov	x2, x19
	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	_IEEE80211_NOTE
LBB0_9:
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	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	_if_printf
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ratectl structure was not allocated, per-node structure allocation skipped\n"

	.comm	_M_80211_RATECTL,4,2            ; @M_80211_RATECTL
	.comm	_IEEE80211_M_NOWAIT,4,2         ; @IEEE80211_M_NOWAIT
	.comm	_IEEE80211_M_ZERO,4,2           ; @IEEE80211_M_ZERO
l_.str.1:                               ; @.str.1
	.asciz	"couldn't alloc per-node ratectl structure\n"

	.comm	_IEEE80211_RATE_VAL,4,2         ; @IEEE80211_RATE_VAL
	.comm	_ticks,4,2                      ; @ticks
	.comm	_IEEE80211_MSG_RATECTL,4,2      ; @IEEE80211_MSG_RATECTL
l_.str.2:                               ; @.str.2
	.asciz	"RSSADAPT initial rate %d"

	.no_dead_strip	_rssadapt_node_init
.subsections_via_symbols
