	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_get_ib_portcounters
_pma_get_ib_portcounters:               ## @pma_get_ib_portcounters
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_pma_get_opa_port_ectrs
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	cmpq	%r14, (%r13)
	je	LBB0_3
LBB0_2:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
LBB0_4:
	movq	%r15, %rdi
	callq	_reply
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$0, 72(%r13)
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	cmpl	$255, %eax
	movl	$255, %ebx
	cmovael	%ebx, %eax
	movl	%eax, 8(%r13)
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
	cmpl	$255, %eax
	cmovael	%ebx, %eax
	movl	%eax, 12(%r13)
	movl	-52(%rbp), %edi
	callq	_be64_to_cpu
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %r14d                   ## imm = 0xFFFF
	cmovael	%r14d, %eax
	movl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 64(%r13)
	movl	-56(%rbp), %edi
	callq	_be64_to_cpu
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	cmovael	%r14d, %eax
	movl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 56(%r13)
	movl	-60(%rbp), %edi
	callq	_be64_to_cpu
	movl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 48(%r13)
	movl	-64(%rbp), %edi
	callq	_be64_to_cpu
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	cmovbl	%eax, %r14d
	movl	%r14d, %edi
	callq	_cpu_to_be16
	movq	%rax, 40(%r13)
	movl	-68(%rbp), %edi
	callq	_be64_to_cpu
	cmpl	$255, %eax
	cmovael	%ebx, %eax
	movl	%eax, 16(%r13)
	movl	-72(%rbp), %edi
	callq	_be64_to_cpu
	cmpl	$255, %eax
	cmovbl	%eax, %ebx
	movl	%ebx, 20(%r13)
	movl	-76(%rbp), %edi
	callq	_be64_to_cpu
	movl	%eax, %ebx
	cmpl	$15, %eax
	movl	$15, %r14d
	cmovael	%r14d, %ebx
	shll	$4, %ebx
	movl	-80(%rbp), %edi
	callq	_be64_to_cpu
	cmpl	$15, %eax
	cmovbl	%eax, %r14d
	orl	%ebx, %r14d
	movq	%r14, 32(%r13)
	movq	$0, 24(%r13)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.no_dead_strip	_pma_get_ib_portcounters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pma_get_ib_portcounters
_pma_get_ib_portcounters:               ; @pma_get_ib_portcounters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_pma_get_opa_port_ectrs
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, x20
	b.eq	LBB0_4
LBB0_2:
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_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	str	xzr, [x22, #72]
	ldr	w0, [sp, #44]
	bl	_be32_to_cpu
	mov	w20, #255
	cmp	w0, #255
	csel	w8, w0, w20, lo
	str	w8, [x22, #8]
	ldr	w0, [sp, #40]
	bl	_be32_to_cpu
	cmp	w0, #255
	csel	w8, w0, w20, lo
	str	w8, [x22, #12]
	ldr	w0, [sp, #36]
	bl	_be64_to_cpu
	mov	w21, #65535
	cmp	w0, w21
	csel	w0, w0, w21, lo
	bl	_cpu_to_be16
	str	x0, [x22, #64]
	ldr	w0, [sp, #32]
	bl	_be64_to_cpu
	cmp	w0, w21
	csel	w0, w0, w21, lo
	bl	_cpu_to_be16
	str	x0, [x22, #56]
	ldr	w0, [sp, #28]
	bl	_be64_to_cpu
	bl	_cpu_to_be16
	str	x0, [x22, #48]
	ldr	w0, [sp, #24]
	bl	_be64_to_cpu
	cmp	w0, w21
	csel	w0, w0, w21, lo
	bl	_cpu_to_be16
	str	x0, [x22, #40]
	ldr	w0, [sp, #20]
	bl	_be64_to_cpu
	cmp	w0, #255
	csel	w8, w0, w20, lo
	str	w8, [x22, #16]
	ldr	w0, [sp, #16]
	bl	_be64_to_cpu
	cmp	w0, #255
	csel	w8, w0, w20, lo
	str	w8, [x22, #20]
	ldr	w0, [sp, #12]
	bl	_be64_to_cpu
	mov	w20, #15
	cmp	w0, #15
	csel	w21, w0, w20, lo
	ldr	w0, [sp, #8]
	bl	_be64_to_cpu
	cmp	w0, #15
	csel	w8, w0, w20, lo
	orr	w8, w8, w21, lsl #4
	stp	xzr, x8, [x22, #24]
	b	LBB0_3
	.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_ib_portcounters
.subsections_via_symbols
