	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_get_portcounters
_pma_get_portcounters:                  ## @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
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_to_iport
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	(%r12), %r13
	leaq	-96(%rbp), %rsi
	movq	%rax, %rdi
	callq	_qib_get_counters
	movups	80(%rbx), %xmm0
	movups	96(%rbx), %xmm1
	shufps	$34, %xmm0, %xmm1               ## xmm1 = xmm1[2,0],xmm0[2,0]
	movdqa	-96(%rbp), %xmm0
	psubd	%xmm1, %xmm0
	movdqa	-80(%rbp), %xmm1
	movdqa	-64(%rbp), %xmm2
	movdqa	%xmm0, -96(%rbp)
	movups	48(%rbx), %xmm0
	movups	64(%rbx), %xmm3
	shufps	$34, %xmm0, %xmm3               ## xmm3 = xmm3[2,0],xmm0[2,0]
	psubd	%xmm3, %xmm1
	movdqa	%xmm1, -80(%rbp)
	movups	16(%rbx), %xmm0
	movups	32(%rbx), %xmm1
	shufps	$34, %xmm0, %xmm1               ## xmm1 = xmm1[2,0],xmm0[2,0]
	psubd	%xmm1, %xmm2
	movdqa	%xmm2, -64(%rbp)
	movl	-48(%rbp), %eax
	subl	8(%rbx), %eax
	addl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r13, (%r12)
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	cmpq	%r15, %r13
	je	LBB0_3
LBB0_2:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_3:
	movl	-96(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	movl	$65535, %ebx                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 88(%r12)
	movl	-92(%rbp), %eax
	cmpl	$255, %eax
	movl	$255, %ecx
	cmovael	%ecx, %eax
	movl	%eax, 8(%r12)
	movl	-88(%rbp), %eax
	cmpl	$255, %eax
	cmovbl	%eax, %ecx
	movl	%ecx, 12(%r12)
	movl	-84(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 80(%r12)
	movl	-80(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 72(%r12)
	movl	-76(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	cmovbl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 64(%r12)
	movl	-56(%rbp), %eax
	cmpl	$16, %eax
	jb	LBB0_5
## %bb.4:
	movl	$15, -56(%rbp)
	movl	$15, %eax
LBB0_5:
	movl	-52(%rbp), %ecx
	cmpl	$16, %ecx
	jb	LBB0_7
## %bb.6:
	movl	$15, -52(%rbp)
	movl	$15, %ecx
LBB0_7:
	shll	$4, %eax
	orl	%ecx, %eax
	movl	%eax, 16(%r12)
	movl	-48(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %edi                    ## imm = 0xFFFF
	cmovbl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 56(%r12)
	movl	-72(%rbp), %edi
	testl	%edi, %edi
	movl	$-1, %ebx
	cmovsl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 48(%r12)
	movl	-68(%rbp), %edi
	testl	%edi, %edi
	cmovsl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%r12)
	movl	-64(%rbp), %edi
	testl	%edi, %edi
	cmovsl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r12)
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r12)
	movq	%r14, %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	_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 pma_get_portcounters
_pma_get_portcounters:                  ; @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
	mov	x1, x2
	bl	_to_iport
	mov	x21, x0
	bl	_ppd_from_ibp
	ldr	x23, [x22]
	mov	x1, sp
	bl	_qib_get_counters
	ldp	q1, q0, [x21, #80]
	uzp1.4s	v0, v1, v0
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	ldp	q1, q2, [sp]
	sub.4s	v0, v1, v0
	ldp	q3, q1, [x21, #48]
	uzp1.4s	v1, v3, v1
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	sub.4s	v1, v2, v1
	stp	q0, q1, [sp]
	ldp	q1, q0, [x21, #16]
	ldr	q2, [sp, #32]
	uzp1.4s	v0, v1, v0
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	sub.4s	v0, v2, v0
	str	q0, [sp, #32]
	ldr	w8, [x21, #8]
	ldr	w9, [sp, #48]
	ldr	w10, [x21]
	sub	w8, w9, w8
	add	w8, w8, w10
	str	w8, [sp, #48]
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x23, [x22]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	cmp	x23, x20
	b.eq	LBB0_3
LBB0_2:
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_3:
	ldr	w8, [sp]
	mov	w20, #65535
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #88]
	ldr	w8, [sp, #4]
	mov	w9, #255
	cmp	w8, #255
	csel	w8, w8, w9, lo
	str	w8, [x22, #8]
	ldr	w8, [sp, #8]
	cmp	w8, #255
	csel	w8, w8, w9, lo
	str	w8, [x22, #12]
	ldr	w8, [sp, #12]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #80]
	ldr	w8, [sp, #16]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #72]
	ldr	w8, [sp, #20]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x22, #64]
	ldr	w8, [sp, #40]
	cmp	w8, #16
	b.lo	LBB0_5
; %bb.4:
	mov	w8, #15
	str	w8, [sp, #40]
LBB0_5:
	ldr	w9, [sp, #44]
	cmp	w9, #16
	b.lo	LBB0_7
; %bb.6:
	mov	w9, #15
	str	w9, [sp, #44]
LBB0_7:
	orr	w8, w9, w8, lsl #4
	str	w8, [x22, #16]
	ldr	w8, [sp, #48]
	mov	w9, #65535
	cmp	w8, w9
	csel	w0, w8, w9, lo
	bl	_cpu_to_be16
	str	x0, [x22, #56]
	ldr	w8, [sp, #24]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #48]
	ldr	w8, [sp, #28]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #40]
	ldr	w8, [sp, #32]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #32]
	ldr	w8, [sp, #36]
	cmp	w8, #0
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_be32
	str	x0, [x22, #24]
	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	_pma_get_portcounters
.subsections_via_symbols
