	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_set_portcounters_cong
_pma_set_portcounters_cong:             ## @pma_set_portcounters_cong
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_to_iport
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_dd_from_ppd
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	shrl	$24, %ebx
	leaq	-112(%rbp), %rsi
	movq	%r12, %rdi
	callq	_qib_get_counters
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_pma_get_portcounters_cong
	movl	%eax, %r15d
	movq	_IB_PMA_SEL_CONG_XMIT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 8(%r12)
	movq	_QIB_CONG_TIMER_PSINTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	movq	_IB_PMA_SEL_CONG_PORT_DATA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movups	-76(%rbp), %xmm0
	movups	%xmm0, 48(%r14)
LBB0_4:
	movq	_IB_PMA_SEL_CONG_ALL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movups	-92(%rbp), %xmm0
	movups	%xmm0, 32(%r14)
	movups	-108(%rbp), %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 8(%r14)
	movl	-112(%rbp), %eax
	movl	%eax, (%r14)
LBB0_6:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PMA_SEL_CONG_XMIT,4,2       ## @IB_PMA_SEL_CONG_XMIT
	.comm	_QIB_CONG_TIMER_PSINTERVAL,4,2  ## @QIB_CONG_TIMER_PSINTERVAL
	.comm	_IB_PMA_SEL_CONG_PORT_DATA,4,2  ## @IB_PMA_SEL_CONG_PORT_DATA
	.comm	_IB_PMA_SEL_CONG_ALL,4,2        ## @IB_PMA_SEL_CONG_ALL
	.no_dead_strip	_pma_set_portcounters_cong
.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_cong
_pma_set_portcounters_cong:             ; @pma_set_portcounters_cong
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x1
	mov	x24, x0
	mov	x0, x1
	mov	x1, x2
	bl	_to_iport
	mov	x19, x0
	bl	_ppd_from_ibp
	mov	x21, x0
	bl	_dd_from_ppd
	mov	x22, x0
	ldr	w0, [x24]
	bl	_be32_to_cpu
	lsr	w25, w0, #24
	add	x1, sp, #8
	mov	x0, x21
	bl	_qib_get_counters
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	bl	_pma_get_portcounters_cong
	mov	x20, x0
Lloh0:
	adrp	x8, _IB_PMA_SEL_CONG_XMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_PMA_SEL_CONG_XMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	xzr, [x21, #8]
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _QIB_CONG_TIMER_PSINTERVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QIB_CONG_TIMER_PSINTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x21
	mov	w2, #0
	blr	x8
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_2:
Lloh6:
	adrp	x8, _IB_PMA_SEL_CONG_PORT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_PMA_SEL_CONG_PORT_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_4
; %bb.3:
	ldur	q0, [sp, #44]
	str	q0, [x19, #48]
LBB0_4:
Lloh9:
	adrp	x8, _IB_PMA_SEL_CONG_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_PMA_SEL_CONG_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_6
; %bb.5:
	ldur	q0, [sp, #28]
	ldur	q1, [sp, #12]
	stp	q1, q0, [x19, #16]
	str	xzr, [x19, #8]
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PMA_SEL_CONG_XMIT,4,2       ; @IB_PMA_SEL_CONG_XMIT
	.comm	_QIB_CONG_TIMER_PSINTERVAL,4,2  ; @QIB_CONG_TIMER_PSINTERVAL
	.comm	_IB_PMA_SEL_CONG_PORT_DATA,4,2  ; @IB_PMA_SEL_CONG_PORT_DATA
	.comm	_IB_PMA_SEL_CONG_ALL,4,2        ; @IB_PMA_SEL_CONG_ALL
	.no_dead_strip	_pma_set_portcounters_cong
.subsections_via_symbols
