	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amrr_node_stats
_amrr_node_stats:                       ## @amrr_node_stats
	.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	16(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_amrr_node_is_11n
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%r15), %rcx
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	(%rax,%rcx,4), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_sbuf_printf
	movl	8(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_sbuf_printf
	movl	12(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_sbuf_printf
	movl	16(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_sbuf_printf
	movl	20(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_sbuf_printf
	movl	24(%r15), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_sbuf_printf
	movl	28(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sbuf_printf                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_RATE_VAL,4,2         ## @IEEE80211_RATE_VAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rate: MCS %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"rate: %d Mbit\n"

L_.str.2:                               ## @.str.2
	.asciz	"ticks: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"txcnt: %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"success: %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"success_threshold: %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"recovery: %u\n"

L_.str.7:                               ## @.str.7
	.asciz	"retry_cnt: %u\n"

	.no_dead_strip	_amrr_node_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amrr_node_stats
_amrr_node_stats:                       ; @amrr_node_stats
	.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, #16]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_amrr_node_is_11n
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x9, _IEEE80211_RATE_VAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_RATE_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w2, w9, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _IEEE80211_RATE_VAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_RATE_VAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ands	w8, w9, w8
	cinc	w8, w8, lt
	asr	w2, w8, #1
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_sbuf_printf
	ldr	w2, [x21, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_sbuf_printf
	ldr	w2, [x21, #12]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_sbuf_printf
	ldr	w2, [x21, #16]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_sbuf_printf
	ldr	w2, [x21, #20]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_sbuf_printf
	ldr	w2, [x21, #24]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_sbuf_printf
	ldr	w2, [x21, #28]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, 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	_sbuf_printf
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_RATE_VAL,4,2         ; @IEEE80211_RATE_VAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rate: MCS %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"rate: %d Mbit\n"

l_.str.2:                               ; @.str.2
	.asciz	"ticks: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"txcnt: %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"success: %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"success_threshold: %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"recovery: %u\n"

l_.str.7:                               ; @.str.7
	.asciz	"retry_cnt: %u\n"

	.no_dead_strip	_amrr_node_stats
.subsections_via_symbols
