	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_pma_get_portcounters
_recv_pma_get_portcounters:             ## @recv_pma_get_portcounters
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movq	%rsi, %rdi
	callq	_to_idev
	movq	%rax, %rbx
	movl	(%r12), %r13d
	movl	120(%rax), %edi
	leaq	-96(%rbp), %rsi
	callq	_ipath_get_counters
	movl	112(%rbx), %eax
	subl	%eax, -96(%rbp)
	movq	-92(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movl	-84(%rbp), %eax
	addl	88(%rbx), %eax
	movdqu	96(%rbx), %xmm1
	pshufd	$66, %xmm1, %xmm1               ## xmm1 = xmm1[2,0,0,1]
	pinsrd	$2, 80(%rbx), %xmm1
	pinsrd	$3, 72(%rbx), %xmm1
	pinsrd	$2, %eax, %xmm0
	pinsrd	$3, -80(%rbp), %xmm0
	psubd	%xmm1, %xmm0
	movdqu	%xmm0, -92(%rbp)
	movups	40(%rbx), %xmm0
	movups	56(%rbx), %xmm1
	shufps	$34, %xmm0, %xmm1               ## xmm1 = xmm1[2,0],xmm0[2,0]
	movdqu	-76(%rbp), %xmm0
	psubd	%xmm1, %xmm0
	movdqu	%xmm0, -76(%rbp)
	movl	32(%rbx), %eax
	subl	%eax, -60(%rbp)
	movl	24(%rbx), %eax
	subl	%eax, -56(%rbp)
	movl	16(%rbx), %eax
	subl	%eax, -52(%rbp)
	movl	-48(%rbp), %eax
	subl	8(%rbx), %eax
	addl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r13d, (%r12)
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.1:
	cmpl	%r14d, %r13d
	je	LBB0_4
## %bb.2:
	cmpl	$255, %r13d
	je	LBB0_4
LBB0_3:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
LBB0_4:
	movl	-96(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	movl	$65535, %ebx                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 80(%r12)
	movl	-92(%rbp), %eax
	cmpl	$255, %eax
	movl	$255, %ecx
	cmovael	%ecx, %eax
	movl	%eax, 4(%r12)
	movl	-88(%rbp), %eax
	cmpl	$255, %eax
	cmovbl	%eax, %ecx
	movl	%ecx, 8(%r12)
	movl	-84(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 72(%r12)
	movl	-80(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 64(%r12)
	movl	-76(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	cmovbl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 56(%r12)
	movl	-56(%rbp), %eax
	cmpl	$16, %eax
	jb	LBB0_6
## %bb.5:
	movl	$15, -56(%rbp)
	movl	$15, %eax
LBB0_6:
	movl	-52(%rbp), %ecx
	cmpl	$16, %ecx
	jb	LBB0_8
## %bb.7:
	movl	$15, -52(%rbp)
	movl	$15, %ecx
LBB0_8:
	shll	$4, %eax
	orl	%ecx, %eax
	movl	%eax, 12(%r12)
	movl	-48(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %edi                    ## imm = 0xFFFF
	cmovbl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 48(%r12)
	movl	-72(%rbp), %edi
	testl	%edi, %edi
	movl	$-1, %ebx
	cmovsl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%r12)
	movl	-68(%rbp), %edi
	testl	%edi, %edi
	cmovsl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r12)
	movl	-64(%rbp), %edi
	testl	%edi, %edi
	cmovsl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r12)
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%r12)
	movq	%r15, %rdi
	callq	_reply
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.no_dead_strip	_recv_pma_get_portcounters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_pma_get_portcounters
_recv_pma_get_portcounters:             ; @recv_pma_get_portcounters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	x0, x1
	bl	_to_idev
	mov	x21, x0
	ldr	w23, [x22]
	ldr	w0, [x0, #120]
	add	x1, sp, #8
	bl	_ipath_get_counters
	ldr	w8, [x21, #96]
	ldp	w9, w10, [sp, #16]
	sub	w8, w9, w8
	ldr	w9, [x21, #88]
	ldr	w11, [x21, #80]
	add	w9, w10, w9
	sub	w9, w9, w11
	ldur	q0, [x21, #104]
	ldr	d1, [sp, #8]
	xtn.2s	v0, v0
	rev64.2s	v0, v0
	sub.2s	v0, v1, v0
	str	d0, [sp, #8]
	stp	w8, w9, [sp, #16]
	ldp	q1, q0, [x21, #48]
	uzp1.4s	v0, v1, v0
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	ldur	q1, [sp, #24]
	ldur	q2, [sp, #40]
	sub.4s	v0, v1, v0
	stur	q0, [sp, #24]
	ldp	q1, q0, [x21, #16]
	uzp1.4s	v0, v1, v0
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	sub.4s	v0, v2, v0
	stur	q0, [sp, #40]
	ldr	w8, [x21, #8]
	ldr	w9, [sp, #56]
	ldr	w10, [x21]
	sub	w8, w9, w8
	add	w8, w8, w10
	str	w8, [sp, #56]
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	w23, [x22]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
	cmp	w23, w20
	b.eq	LBB0_4
; %bb.2:
	cmp	w23, #255
	b.eq	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_4:
	ldr	w8, [sp, #8]
	mov	w20, #65535
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #80]
	ldr	w8, [sp, #12]
	mov	w9, #255
	cmp	w8, #255
	csel	w8, w8, w9, lo
	str	w8, [x22, #4]
	ldr	w8, [sp, #16]
	cmp	w8, #255
	csel	w8, w8, w9, lo
	str	w8, [x22, #8]
	ldr	w8, [sp, #20]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #72]
	ldr	w8, [sp, #24]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #64]
	ldr	w8, [sp, #28]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #56]
	ldr	w8, [sp, #48]
	cmp	w8, #16
	b.lo	LBB0_6
; %bb.5:
	mov	w8, #15
	str	w8, [sp, #48]
LBB0_6:
	ldr	w9, [sp, #52]
	cmp	w9, #16
	b.lo	LBB0_8
; %bb.7:
	mov	w9, #15
	str	w9, [sp, #52]
LBB0_8:
	orr	w8, w9, w8, lsl #4
	str	w8, [x22, #12]
	ldr	w8, [sp, #56]
	mov	w9, #65535
	cmp	w8, w9
	csel	w0, w8, w9, lo
	bl	_cpu_to_be16
	str	x0, [x22, #48]
	ldr	w8, [sp, #32]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #40]
	ldr	w8, [sp, #36]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #32]
	ldr	w8, [sp, #40]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #24]
	ldr	w8, [sp, #44]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #16]
	mov	x0, x19
	bl	_reply
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.no_dead_strip	_recv_pma_get_portcounters
.subsections_via_symbols
