	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_xmit_wait_counters         ## -- Begin function get_xmit_wait_counters
	.p2align	4, 0x90
_get_xmit_wait_counters:                ## @get_xmit_wait_counters
	.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	_C_VL_COUNT@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jge	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_C_TX_WAIT@GOTPCREL(%rip), %rax
	movq	_CNTR_INVALID_VL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmovgl	%r12d, %edx
	cmovgq	_C_TX_WAIT_VL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_read_port_cntr
	movq	%rax, %r13
	movq	16(%rbx), %rax
	movslq	%r12d, %r12
	movq	%r13, %rdi
	subq	(%rax,%r12,8), %rdi
	movl	8(%rbx), %esi
	movl	%r15d, %edx
	callq	_convert_xmit_counter
	movq	(%rbx), %rcx
	addq	%rax, (%rcx,%r12,8)
	movq	16(%rbx), %rax
	movq	%r13, (%rax,%r12,8)
	movl	%r14d, 8(%rbx)
	movq	(%rcx,%r12,8), %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_VL_COUNT,4,2                 ## @C_VL_COUNT
	.comm	_C_TX_WAIT_VL,4,2               ## @C_TX_WAIT_VL
	.comm	_C_TX_WAIT,4,2                  ## @C_TX_WAIT
	.comm	_CNTR_INVALID_VL,4,2            ## @CNTR_INVALID_VL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_xmit_wait_counters         ; -- Begin function get_xmit_wait_counters
	.p2align	2
_get_xmit_wait_counters:                ; @get_xmit_wait_counters
	.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
Lloh0:
	adrp	x8, _C_VL_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_VL_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ge	LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_3
LBB0_2:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x9, _C_TX_WAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _C_TX_WAIT@GOTPAGEOFF]
Lloh5:
	adrp	x10, _CNTR_INVALID_VL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CNTR_INVALID_VL@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _C_TX_WAIT_VL@GOTPAGE
Lloh9:
	ldr	x11, [x11, _C_TX_WAIT_VL@GOTPAGEOFF]
	cmp	w8, w3
	csel	w2, w3, w10, gt
	csel	x8, x11, x9, gt
	ldr	w1, [x8]
	bl	_read_port_cntr
	mov	x23, x0
	ldr	x8, [x20, #16]
	sbfiz	x22, x22, #3, #32
	ldr	x8, [x8, x22]
	sub	x0, x0, x8
	ldr	w1, [x20, #8]
	mov	x2, x21
	bl	_convert_xmit_counter
	ldr	x8, [x20]
	ldr	x9, [x8, x22]
	add	x9, x9, x0
	str	x9, [x8, x22]
	ldr	x9, [x20, #16]
	str	x23, [x9, x22]
	str	w19, [x20, #8]
	ldr	x0, [x8, x22]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_C_VL_COUNT,4,2                 ; @C_VL_COUNT
	.comm	_C_TX_WAIT_VL,4,2               ; @C_TX_WAIT_VL
	.comm	_C_TX_WAIT,4,2                  ; @C_TX_WAIT
	.comm	_CNTR_INVALID_VL,4,2            ; @CNTR_INVALID_VL
.subsections_via_symbols
