	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_get_portcounters_cong
_pma_get_portcounters_cong:             ## @pma_get_portcounters_cong
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	%rsi, %rdi
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, %rsi
	callq	_to_iport
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_dd_from_ppd
	movq	%rax, %r15
	movl	20(%r12), %edi
	callq	_be32_to_cpu
	movzbl	%al, %eax
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	cmpl	$0, 4(%r15)
	movq	%r12, %r15
	je	LBB0_1
## %bb.2:
	cmpq	-120(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_4
LBB0_3:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_4:
	leaq	-112(%rbp), %rsi
	movq	%r13, %rdi
	callq	_qib_get_counters
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	callq	_xmit_wait_get_value_delta
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movups	80(%rbx), %xmm0
	movups	96(%rbx), %xmm1
	shufps	$34, %xmm0, %xmm1               ## xmm1 = xmm1[2,0],xmm0[2,0]
	movdqa	-112(%rbp), %xmm0
	psubd	%xmm1, %xmm0
	movdqa	-96(%rbp), %xmm1
	movdqa	%xmm0, -112(%rbp)
	movups	48(%rbx), %xmm0
	movups	64(%rbx), %xmm2
	shufps	$34, %xmm0, %xmm2               ## xmm2 = xmm2[2,0],xmm0[2,0]
	psubd	%xmm2, %xmm1
	movdqa	%xmm1, -96(%rbp)
	movl	-80(%rbp), %eax
	subl	40(%rbx), %eax
	addl	32(%rbx), %eax
	movl	%eax, -80(%rbp)
	movdqu	16(%rbx), %xmm0
	movdqu	-56(%rbp), %xmm1
	psubq	%xmm0, %xmm1
	movdqu	%xmm1, -56(%rbp)
	movdqu	(%rbx), %xmm0
	movdqu	-72(%rbp), %xmm1
	psubq	%xmm0, %xmm1
	movdqu	%xmm1, -72(%rbp)
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_QIB_XMIT_RATE_PICO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$13, %edi
	movq	-128(%rbp), %rax                ## 8-byte Reload
	orl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 104(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_be64
	movq	%rax, 96(%r14)
	movq	%r12, %rdi
	callq	_cpu_to_be64
	movq	%rax, 88(%r14)
	movq	-48(%rbp), %rdi
	callq	_cpu_to_be64
	movq	%rax, 80(%r14)
	movq	-56(%rbp), %rdi
	callq	_cpu_to_be64
	movq	%rax, 72(%r14)
	movq	-64(%rbp), %rdi
	callq	_cpu_to_be64
	movq	%rax, 64(%r14)
	movq	-72(%rbp), %rdi
	callq	_cpu_to_be64
	movq	%rax, 56(%r14)
	movl	-112(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	movl	$65535, %ebx                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 48(%r14)
	movl	-108(%rbp), %eax
	cmpl	$255, %eax
	movl	$255, %ecx
	cmovael	%ecx, %eax
	movl	%eax, (%r14)
	movl	-104(%rbp), %eax
	cmpl	$255, %eax
	cmovbl	%eax, %ecx
	movl	%ecx, 4(%r14)
	movl	-100(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 40(%r14)
	movl	-96(%rbp), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	cmovael	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 32(%r14)
	movl	-92(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	cmovbl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, 24(%r14)
	movl	-88(%rbp), %eax
	cmpl	$16, %eax
	jb	LBB0_6
## %bb.5:
	movl	$15, -88(%rbp)
	movl	$15, %eax
LBB0_6:
	movl	-84(%rbp), %ecx
	cmpl	$16, %ecx
	jb	LBB0_8
## %bb.7:
	movl	$15, -84(%rbp)
	movl	$15, %ecx
LBB0_8:
	shll	$4, %eax
	orl	%ecx, %eax
	movl	%eax, 8(%r14)
	movl	-80(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %edi                    ## imm = 0xFFFF
	cmovbl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 16(%r14)
	movq	%r15, %rdi
	callq	_reply
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_IB_SMP_UNSUP_METH_ATTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
	cmpq	-120(%rbp), %rax                ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_UNSUP_METH_ATTR,4,2     ## @IB_SMP_UNSUP_METH_ATTR
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_QIB_XMIT_RATE_PICO,4,2         ## @QIB_XMIT_RATE_PICO
	.no_dead_strip	_pma_get_portcounters_cong
.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_cong
_pma_get_portcounters_cong:             ; @pma_get_portcounters_cong
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x2
	mov	x19, x0
	ldr	x24, [x0, #8]
	mov	x0, x1
	mov	x1, x2
	bl	_to_iport
	mov	x21, x0
	bl	_ppd_from_ibp
	mov	x23, x0
	bl	_dd_from_ppd
	mov	x20, x0
	ldr	w0, [x19, #20]
	bl	_be32_to_cpu
	and	w8, w0, #0xff
	ldr	w9, [x20, #4]
	cbz	w9, LBB0_8
; %bb.1:
	cmp	x8, x22
	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, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_3:
	mov	x1, sp
	mov	x0, x23
	bl	_qib_get_counters
	mov	x0, x23
	bl	_spin_lock_irqsave
	mov	x0, x23
	bl	_xmit_wait_get_value_delta
	mov	x22, x0
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	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]
	ldr	w8, [x21, #40]
	ldr	w9, [sp, #32]
	ldr	w10, [x21, #32]
	sub	w8, w9, w8
	add	w8, w8, w10
	str	w8, [sp, #32]
	ldr	q0, [x21, #16]
	ldur	q1, [sp, #56]
	sub.2d	v0, v1, v0
	stur	q0, [sp, #56]
	ldr	q0, [x21]
	ldur	q1, [sp, #40]
	sub.2d	v0, v1, v0
	stur	q0, [sp, #40]
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh3:
	adrp	x8, _QIB_XMIT_RATE_PICO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QIB_XMIT_RATE_PICO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w0, w9, w8, lsl #13
	bl	_cpu_to_be16
	str	x0, [x24, #104]
	mov	x0, #0
	bl	_cpu_to_be64
	str	x0, [x24, #96]
	mov	x0, x22
	bl	_cpu_to_be64
	str	x0, [x24, #88]
	ldr	x0, [sp, #64]
	bl	_cpu_to_be64
	str	x0, [x24, #80]
	ldr	x0, [sp, #56]
	bl	_cpu_to_be64
	str	x0, [x24, #72]
	ldr	x0, [sp, #48]
	bl	_cpu_to_be64
	str	x0, [x24, #64]
	ldr	x0, [sp, #40]
	bl	_cpu_to_be64
	str	x0, [x24, #56]
	ldr	w8, [sp]
	mov	w20, #65535
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x24, #48]
	ldr	w8, [sp, #4]
	mov	w9, #255
	cmp	w8, #255
	csel	w8, w8, w9, lo
	str	w8, [x24]
	ldr	w8, [sp, #8]
	cmp	w8, #255
	csel	w8, w8, w9, lo
	str	w8, [x24, #4]
	ldr	w8, [sp, #12]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x24, #40]
	ldr	w8, [sp, #16]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x24, #32]
	ldr	w8, [sp, #20]
	cmp	w8, w20
	csel	w0, w8, w20, lo
	bl	_cpu_to_be16
	str	x0, [x24, #24]
	ldr	w8, [sp, #24]
	cmp	w8, #16
	b.lo	LBB0_5
; %bb.4:
	mov	w8, #15
	str	w8, [sp, #24]
LBB0_5:
	ldr	w9, [sp, #28]
	cmp	w9, #16
	b.lo	LBB0_7
; %bb.6:
	mov	w9, #15
	str	w9, [sp, #28]
LBB0_7:
	orr	w8, w9, w8, lsl #4
	str	w8, [x24, #8]
	ldr	w8, [sp, #32]
	mov	w9, #65535
	cmp	w8, w9
	csel	w0, w8, w9, lo
	bl	_cpu_to_be16
	str	x0, [x24, #16]
	mov	x0, x19
	bl	_reply
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
Lloh6:
	adrp	x9, _IB_SMP_UNSUP_METH_ATTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_SMP_UNSUP_METH_ATTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	str	w9, [x19, #16]
	cmp	x8, x22
	b.ne	LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_UNSUP_METH_ATTR,4,2     ; @IB_SMP_UNSUP_METH_ATTR
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_QIB_XMIT_RATE_PICO,4,2         ; @QIB_XMIT_RATE_PICO
	.no_dead_strip	_pma_get_portcounters_cong
.subsections_via_symbols
