	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_set_portcounters_ext
_pma_set_portcounters_ext:              ## @pma_set_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	$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	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_to_iport
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	leaq	-88(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	leaq	-96(%rbp), %r9
	movq	%rax, %rdi
	callq	_qib_snapshot_counters
	movl	(%r13), %eax
	movq	_IB_PMA_SELX_PORT_XMIT_DATA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	-88(%rbp), %rcx
	movq	%rcx, 40(%rbx)
LBB0_2:
	movq	_IB_PMA_SELX_PORT_RCV_DATA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	-80(%rbp), %rcx
	movq	%rcx, 32(%rbx)
LBB0_4:
	movq	_IB_PMA_SELX_PORT_XMIT_PACKETS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	-72(%rbp), %rcx
	movq	%rcx, 24(%rbx)
LBB0_6:
	movq	_IB_PMA_SELX_PORT_RCV_PACKETS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rax
	movq	%rax, 16(%rbx)
LBB0_8:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qib_snapshot_pmacounters
	movl	(%r13), %eax
	movq	_IB_PMA_SELX_PORT_UNI_XMIT_PACKETS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %ecx
	movl	%ecx, 12(%rbx)
LBB0_10:
	movq	_IB_PMA_SELX_PORT_UNI_RCV_PACKETS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movl	-48(%rbp), %ecx
	movl	%ecx, 8(%rbx)
LBB0_12:
	movq	_IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movl	-52(%rbp), %ecx
	movl	%ecx, 4(%rbx)
LBB0_14:
	movq	_IB_PMA_SELX_PORT_MULTI_RCV_PACKETS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movl	-56(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_16:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_pma_get_portcounters_ext
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PMA_SELX_PORT_XMIT_DATA,4,2 ## @IB_PMA_SELX_PORT_XMIT_DATA
	.comm	_IB_PMA_SELX_PORT_RCV_DATA,4,2  ## @IB_PMA_SELX_PORT_RCV_DATA
	.comm	_IB_PMA_SELX_PORT_XMIT_PACKETS,4,2 ## @IB_PMA_SELX_PORT_XMIT_PACKETS
	.comm	_IB_PMA_SELX_PORT_RCV_PACKETS,4,2 ## @IB_PMA_SELX_PORT_RCV_PACKETS
	.comm	_IB_PMA_SELX_PORT_UNI_XMIT_PACKETS,4,2 ## @IB_PMA_SELX_PORT_UNI_XMIT_PACKETS
	.comm	_IB_PMA_SELX_PORT_UNI_RCV_PACKETS,4,2 ## @IB_PMA_SELX_PORT_UNI_RCV_PACKETS
	.comm	_IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS,4,2 ## @IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS
	.comm	_IB_PMA_SELX_PORT_MULTI_RCV_PACKETS,4,2 ## @IB_PMA_SELX_PORT_MULTI_RCV_PACKETS
	.no_dead_strip	_pma_set_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_set_portcounters_ext
_pma_set_portcounters_ext:              ; @pma_set_portcounters_ext
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
	mov	x0, x1
	mov	x1, x2
	bl	_to_iport
	mov	x22, x0
	bl	_ppd_from_ibp
	add	x1, sp, #56
	add	x2, sp, #48
	add	x3, sp, #40
	add	x4, sp, #32
	add	x5, sp, #24
	bl	_qib_snapshot_counters
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _IB_PMA_SELX_PORT_XMIT_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_XMIT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [sp, #56]
	str	x9, [x22, #40]
LBB0_2:
Lloh3:
	adrp	x9, _IB_PMA_SELX_PORT_RCV_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_RCV_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x9, [sp, #48]
	str	x9, [x22, #32]
LBB0_4:
Lloh6:
	adrp	x9, _IB_PMA_SELX_PORT_XMIT_PACKETS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_XMIT_PACKETS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x9, [sp, #40]
	str	x9, [x22, #24]
LBB0_6:
Lloh9:
	adrp	x9, _IB_PMA_SELX_PORT_RCV_PACKETS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_RCV_PACKETS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [sp, #32]
	str	x8, [x22, #16]
LBB0_8:
	add	x1, sp, #8
	mov	x0, x22
	bl	_qib_snapshot_pmacounters
	ldr	w8, [x23]
Lloh12:
	adrp	x9, _IB_PMA_SELX_PORT_UNI_XMIT_PACKETS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_UNI_XMIT_PACKETS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w9, [sp, #20]
	str	w9, [x22, #12]
LBB0_10:
Lloh15:
	adrp	x9, _IB_PMA_SELX_PORT_UNI_RCV_PACKETS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_UNI_RCV_PACKETS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w9, [sp, #16]
	str	w9, [x22, #8]
LBB0_12:
Lloh18:
	adrp	x9, _IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w9, [sp, #12]
	str	w9, [x22, #4]
LBB0_14:
Lloh21:
	adrp	x9, _IB_PMA_SELX_PORT_MULTI_RCV_PACKETS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_PMA_SELX_PORT_MULTI_RCV_PACKETS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [sp, #8]
	str	w8, [x22]
LBB0_16:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_pma_get_portcounters_ext
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PMA_SELX_PORT_XMIT_DATA,4,2 ; @IB_PMA_SELX_PORT_XMIT_DATA
	.comm	_IB_PMA_SELX_PORT_RCV_DATA,4,2  ; @IB_PMA_SELX_PORT_RCV_DATA
	.comm	_IB_PMA_SELX_PORT_XMIT_PACKETS,4,2 ; @IB_PMA_SELX_PORT_XMIT_PACKETS
	.comm	_IB_PMA_SELX_PORT_RCV_PACKETS,4,2 ; @IB_PMA_SELX_PORT_RCV_PACKETS
	.comm	_IB_PMA_SELX_PORT_UNI_XMIT_PACKETS,4,2 ; @IB_PMA_SELX_PORT_UNI_XMIT_PACKETS
	.comm	_IB_PMA_SELX_PORT_UNI_RCV_PACKETS,4,2 ; @IB_PMA_SELX_PORT_UNI_RCV_PACKETS
	.comm	_IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS,4,2 ; @IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS
	.comm	_IB_PMA_SELX_PORT_MULTI_RCV_PACKETS,4,2 ; @IB_PMA_SELX_PORT_MULTI_RCV_PACKETS
	.no_dead_strip	_pma_set_portcounters_ext
.subsections_via_symbols
