	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_pma_get_portsamplesresult
_recv_pma_get_portsamplesresult:        ## @recv_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	%rdi, %r14
	movq	(%rdi), %r13
	movq	%rsi, %rdi
	callq	_to_idev
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	(%rax), %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%rbx), %rdi
	callq	_cpu_to_be16
	movq	%rax, 16(%r13)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	callq	_ipath_read_creg32
	movq	%rax, %r12
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %r12
LBB0_3:
	movq	%r12, %rdi
	callq	_cpu_to_be16
	movq	%rax, 8(%r13)
	movq	16(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%r14d, %r14d
	movq	_IB_PMA_SAMPLE_STATUS_DONE@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	movq	16(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, %eax
	cmpq	(%r15), %r12
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rax
	movl	(%rax,%r14,4), %edx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_counter
	movl	%eax, %edi
	callq	_cpu_to_be32
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	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_SAMPLE_STATUS_DONE,8,3  ## @IB_PMA_SAMPLE_STATUS_DONE
	.no_dead_strip	_recv_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 recv_pma_get_portsamplesresult
_recv_pma_get_portsamplesresult:        ; @recv_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	x19, x0
	ldr	x23, [x0]
	mov	x0, x1
	bl	_to_idev
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x20]
	bl	_cpu_to_be16
	str	x0, [x23, #16]
	ldr	x1, [x21]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x0, [x20, #24]
	bl	_ipath_read_creg32
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	ldr	x22, [x20, #8]
LBB0_3:
	mov	x0, x22
	bl	_cpu_to_be16
	str	x0, [x23, #8]
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x24, #0
Lloh0:
	adrp	x25, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_get_counter
	bl	_cpu_to_be32
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	str	w0, [x8, x24, lsl #2]
	add	x24, x24, #1
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cmp	x22, x8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	b	LBB0_6
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PMA_SAMPLE_STATUS_DONE,8,3  ; @IB_PMA_SAMPLE_STATUS_DONE
	.no_dead_strip	_recv_pma_get_portsamplesresult
.subsections_via_symbols
