	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_get_portsamplesresult
_pma_get_portsamplesresult:             ## @pma_get_portsamplesresult
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	%rsi, %rdi
	callq	_to_idev
	movq	%rax, %rdi
	callq	_dd_from_dev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_to_iport
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %r15
	movq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	8(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	(%r14), %rdi
	callq	_cpu_to_be16
	movq	%rax, 16(%r12)
	movq	(%r15), %rax
	movq	_IB_PMA_CONG_HW_CONTROL_TIMER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IB_PMA_SAMPLE_STATUS_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_4
LBB0_2:
	movq	_QIBPORTCNTR_PSSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_cpu_to_be16
	movq	%rax, 8(%r12)
	movq	_IB_PMA_SAMPLE_STATUS_DONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	movq	%rbx, %r13
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_cache_hw_sample_counters
	movq	%r15, %rdi
	callq	_xmit_wait_get_value_delta
	movl	%eax, 8(%r15)
	movq	_QIB_CONG_TIMER_PSINTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	_IB_PMA_CONG_HW_CONTROL_TIMER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_4:
	movq	16(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_get_cache_hw_sample_counters
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	16(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PMA_CONG_HW_CONTROL_TIMER,8,3 ## @IB_PMA_CONG_HW_CONTROL_TIMER
	.comm	_IB_PMA_SAMPLE_STATUS_DONE,8,3  ## @IB_PMA_SAMPLE_STATUS_DONE
	.comm	_QIBPORTCNTR_PSSTAT,4,2         ## @QIBPORTCNTR_PSSTAT
	.comm	_QIB_CONG_TIMER_PSINTERVAL,4,2  ## @QIB_CONG_TIMER_PSINTERVAL
	.no_dead_strip	_pma_get_portsamplesresult
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pma_get_portsamplesresult
_pma_get_portsamplesresult:             ; @pma_get_portsamplesresult
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x25, [x0]
	mov	x0, x1
	bl	_to_idev
	bl	_dd_from_dev
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	bl	_to_iport
	mov	x20, x0
	bl	_ppd_from_ibp
	mov	x21, x0
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x22, x20, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x0, [x20]
	bl	_cpu_to_be16
	str	x0, [x25, #16]
	ldr	x8, [x21]
Lloh0:
	adrp	x26, _IB_PMA_CONG_HW_CONTROL_TIMER@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IB_PMA_CONG_HW_CONTROL_TIMER@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x25, #8]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x23]
Lloh5:
	adrp	x9, _QIBPORTCNTR_PSSTAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QIBPORTCNTR_PSSTAT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	mov	x24, x0
	bl	_cpu_to_be16
	str	x0, [x25, #8]
Lloh8:
	adrp	x8, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_cache_hw_sample_counters
	mov	x0, x21
	bl	_xmit_wait_get_value_delta
	str	w0, [x21, #8]
	ldr	x8, [x23, #8]
Lloh11:
	adrp	x9, _QIB_CONG_TIMER_PSINTERVAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QIB_CONG_TIMER_PSINTERVAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	x0, x21
	mov	w2, #0
	blr	x8
	ldr	x8, [x26]
	str	x8, [x21]
LBB0_4:
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	lsl	x24, x23, #2
	ldr	w1, [x8, x24]
	mov	x0, x21
	bl	_get_cache_hw_sample_counters
	bl	_cpu_to_be32
	ldr	x8, [x25]
	str	w0, [x8, x24]
	add	x23, x23, #1
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_reply
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PMA_CONG_HW_CONTROL_TIMER,8,3 ; @IB_PMA_CONG_HW_CONTROL_TIMER
	.comm	_IB_PMA_SAMPLE_STATUS_DONE,8,3  ; @IB_PMA_SAMPLE_STATUS_DONE
	.comm	_QIBPORTCNTR_PSSTAT,4,2         ; @QIBPORTCNTR_PSSTAT
	.comm	_QIB_CONG_TIMER_PSINTERVAL,4,2  ; @QIB_CONG_TIMER_PSINTERVAL
	.no_dead_strip	_pma_get_portsamplesresult
.subsections_via_symbols
