	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_node_stats
_rate_node_stats:                       ## @rate_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
	movq	(%rdi), %rdx
	movl	(%rdx), %eax
	movq	_ATH_RATE_TLV_RATETABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_1
## %bb.3:
	movl	4(%rdx), %eax
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.5:
	movl	48(%rdx), %eax
	movq	_ATH_RATE_TLV_SAMPLENODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_1
## %bb.6:
	movl	52(%rdx), %eax
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.7:
	leaq	32(%rdx), %rsi
	addq	$80, %rdx
	callq	_ath_sample_stats
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	jmp	LBB0_2
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	$4, %ecx
LBB0_2:
	callq	_fprintf
	movl	$127, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_RATE_TLV_RATETABLE,4,2     ## @ATH_RATE_TLV_RATETABLE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected rate control TLV (got 0x%x, expected 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected TLV len (got %d bytes, expected %d bytes\n"

	.comm	_ATH_RATE_TLV_SAMPLENODE,4,2    ## @ATH_RATE_TLV_SAMPLENODE
	.no_dead_strip	_rate_node_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_node_stats
_rate_node_stats:                       ; @rate_node_stats
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	w2, [x8]
Lloh0:
	adrp	x9, _ATH_RATE_TLV_RATETABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_RATE_TLV_RATETABLE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	cmp	w2, w3
	b.ne	LBB0_5
; %bb.1:
	ldr	w2, [x8, #4]
	cmp	w2, #4
	b.ne	LBB0_6
; %bb.2:
	ldr	w2, [x8, #48]
Lloh3:
	adrp	x9, _ATH_RATE_TLV_SAMPLENODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH_RATE_TLV_SAMPLENODE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	cmp	w2, w3
	b.ne	LBB0_5
; %bb.3:
	ldr	w2, [x8, #52]
	cmp	w2, #4
	b.ne	LBB0_6
; %bb.4:
	add	x1, x8, #32
	add	x2, x8, #80
	bl	_ath_sample_stats
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #4
LBB0_7:
	bl	_fprintf
	mov	w0, #127
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_RATE_TLV_RATETABLE,4,2     ; @ATH_RATE_TLV_RATETABLE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected rate control TLV (got 0x%x, expected 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected TLV len (got %d bytes, expected %d bytes\n"

	.comm	_ATH_RATE_TLV_SAMPLENODE,4,2    ; @ATH_RATE_TLV_SAMPLENODE
	.no_dead_strip	_rate_node_stats
.subsections_via_symbols
