	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_get_portcounters_ext
_pma_get_portcounters_ext:              ## @pma_get_portcounters_ext
	.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	%rdx, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_to_iport
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r12
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r12, (%r13)
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	cmpq	%rbx, %r12
	jne	LBB0_2
## %bb.3:
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-120(%rbp), %r9
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_qib_snapshot_counters
	movq	-72(%rbp), %rdi
	subq	56(%r15), %rdi
	movq	%rdi, -72(%rbp)
	movq	48(%r15), %rax
	subq	%rax, -64(%rbp)
	movq	40(%r15), %rax
	subq	%rax, -56(%rbp)
	movq	32(%r15), %rax
	subq	%rax, -48(%rbp)
	callq	_cpu_to_be64
	movq	%rax, 64(%r13)
	movq	-64(%rbp), %rdi
	callq	_cpu_to_be64
	movq	%rax, 56(%r13)
	movq	-56(%rbp), %rdi
	callq	_cpu_to_be64
	movq	%rax, 48(%r13)
	movq	-48(%rbp), %rdi
	callq	_cpu_to_be64
	movq	%rax, 40(%r13)
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qib_snapshot_pmacounters
	movq	-88(%rbp), %rdi
	subq	24(%r15), %rdi
	callq	_cpu_to_be64
	movq	%rax, 32(%r13)
	movq	-96(%rbp), %rdi
	subq	16(%r15), %rdi
	callq	_cpu_to_be64
	movq	%rax, 24(%r13)
	movq	-104(%rbp), %rdi
	subq	8(%r15), %rdi
	callq	_cpu_to_be64
	movq	%rax, 16(%r13)
	movq	-112(%rbp), %rdi
	subq	(%r15), %rdi
	callq	_cpu_to_be64
	movq	%rax, 8(%r13)
	jmp	LBB0_4
LBB0_2:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_4:
	movq	%r14, %rdi
	callq	_reply
	addq	$88, %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_ext
.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_ext
_pma_get_portcounters_ext:              ; @pma_get_portcounters_ext
	.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	x23, [x0, #16]
	mov	x0, x1
	mov	x1, x2
	bl	_to_iport
	mov	x20, x0
	bl	_ppd_from_ibp
	mov	x21, x0
	ldr	x24, [x23]
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x24, [x23]
	ldr	x8, [x19]
	cmp	x8, #0
	ccmp	x24, x22, #0, eq
	b.eq	LBB0_2
; %bb.1:
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]
	b	LBB0_3
LBB0_2:
	sub	x1, x29, #56
	add	x2, sp, #64
	add	x3, sp, #56
	add	x4, sp, #48
	add	x5, sp, #40
	mov	x0, x21
	bl	_qib_snapshot_counters
	ldur	x8, [x29, #-56]
	ldp	x10, x9, [x20, #48]
	sub	x0, x8, x9
	ldr	x8, [sp, #64]
	sub	x8, x8, x10
	str	x8, [sp, #64]
	ldr	x8, [sp, #56]
	ldp	x10, x9, [x20, #32]
	sub	x8, x8, x9
	stur	x0, [x29, #-56]
	str	x8, [sp, #56]
	ldr	x8, [sp, #48]
	sub	x8, x8, x10
	str	x8, [sp, #48]
	bl	_cpu_to_be64
	str	x0, [x23, #64]
	ldr	x0, [sp, #64]
	bl	_cpu_to_be64
	str	x0, [x23, #56]
	ldr	x0, [sp, #56]
	bl	_cpu_to_be64
	str	x0, [x23, #48]
	ldr	x0, [sp, #48]
	bl	_cpu_to_be64
	str	x0, [x23, #40]
	add	x1, sp, #8
	mov	x0, x20
	bl	_qib_snapshot_pmacounters
	ldr	x8, [sp, #32]
	ldr	x9, [x20, #24]
	sub	x0, x8, x9
	bl	_cpu_to_be64
	str	x0, [x23, #32]
	ldr	x8, [sp, #24]
	ldr	x9, [x20, #16]
	sub	x0, x8, x9
	bl	_cpu_to_be64
	str	x0, [x23, #24]
	ldr	x8, [sp, #16]
	ldr	x9, [x20, #8]
	sub	x0, x8, x9
	bl	_cpu_to_be64
	str	x0, [x23, #16]
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	sub	x0, x8, x9
	bl	_cpu_to_be64
	str	x0, [x23, #8]
LBB0_3:
	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
	.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_ext
.subsections_via_symbols
