	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_pma_get_portcounters_ext
_recv_pma_get_portcounters_ext:         ## @recv_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_to_idev
	movq	%rax, %r12
	movl	(%rbx), %r13d
	movl	48(%rax), %edi
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-60(%rbp), %r9
	callq	_ipath_snapshot_counters
	movl	40(%r12), %eax
	subl	%eax, -56(%rbp)
	movl	32(%r12), %eax
	subl	%eax, -52(%rbp)
	movl	24(%r12), %eax
	subl	%eax, -48(%rbp)
	movl	16(%r12), %eax
	subl	%eax, -44(%rbp)
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r13d, (%rbx)
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.1:
	cmpl	%r15d, %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(%r14)
LBB0_4:
	movl	-56(%rbp), %edi
	callq	_cpu_to_be64
	movq	%rax, 64(%rbx)
	movl	-52(%rbp), %edi
	callq	_cpu_to_be64
	movq	%rax, 56(%rbx)
	movl	-48(%rbp), %edi
	callq	_cpu_to_be64
	movq	%rax, 48(%rbx)
	movl	-44(%rbp), %edi
	callq	_cpu_to_be64
	movq	%rax, 40(%rbx)
	movl	12(%r12), %edi
	callq	_cpu_to_be64
	movq	%rax, 32(%rbx)
	movl	8(%r12), %edi
	callq	_cpu_to_be64
	movq	%rax, 24(%rbx)
	movl	4(%r12), %edi
	callq	_cpu_to_be64
	movq	%rax, 16(%rbx)
	movl	(%r12), %edi
	callq	_cpu_to_be64
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_reply
	addq	$24, %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_ext
.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_ext
_recv_pma_get_portcounters_ext:         ; @recv_pma_get_portcounters_ext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	x0, x1
	bl	_to_idev
	mov	x20, x0
	ldr	w23, [x22]
	ldr	w0, [x0, #48]
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	add	x5, sp, #12
	bl	_ipath_snapshot_counters
	ldr	w8, [x20, #40]
	ldr	w9, [sp, #28]
	sub	w8, w9, w8
	str	w8, [sp, #28]
	ldr	w8, [x20, #32]
	ldr	w9, [sp, #24]
	sub	w8, w9, w8
	str	w8, [sp, #24]
	ldr	w8, [x20, #24]
	ldr	w9, [sp, #20]
	sub	w8, w9, w8
	str	w8, [sp, #20]
	ldr	w8, [x20, #16]
	ldr	w9, [sp, #16]
	sub	w8, w9, w8
	str	w8, [sp, #16]
	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, w21
	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	w0, [sp, #28]
	bl	_cpu_to_be64
	str	x0, [x22, #64]
	ldr	w0, [sp, #24]
	bl	_cpu_to_be64
	str	x0, [x22, #56]
	ldr	w0, [sp, #20]
	bl	_cpu_to_be64
	str	x0, [x22, #48]
	ldr	w0, [sp, #16]
	bl	_cpu_to_be64
	str	x0, [x22, #40]
	ldr	w0, [x20, #12]
	bl	_cpu_to_be64
	str	x0, [x22, #32]
	ldr	w0, [x20, #8]
	bl	_cpu_to_be64
	str	x0, [x22, #24]
	ldr	w0, [x20, #4]
	bl	_cpu_to_be64
	str	x0, [x22, #16]
	ldr	w0, [x20]
	bl	_cpu_to_be64
	str	x0, [x22, #8]
	mov	x0, x19
	bl	_reply
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	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_ext
.subsections_via_symbols
