	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_return_cnp                     ## -- Begin function return_cnp
	.p2align	4, 0x90
_return_cnp:                            ## @return_cnp
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rbp), %r13
	movq	16(%rbp), %rsi
	movq	(%rdi), %rax
	movq	(%rax,%rsi,8), %r15
	movq	%r14, %rdi
	callq	_qp_to_send_context
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ppd_from_ibp
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_HFI1_PKT_TYPE_9B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	testq	%r13, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	16(%r13), %eax
	leaq	-120(%rbp), %rbx
	movl	%eax, -96(%rbp)
	movq	_LRH_9B_DWORDS@GOTPCREL(%rip), %rax
	movq	_SIZE_OF_CRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	(%rax), %ecx
	leal	20(,%rcx,4), %edi
	callq	_cpu_to_be16
	movl	%eax, -100(%rbp)
	movl	$255, -112(%rbp)
	movl	8(%r13), %eax
	movl	%eax, -108(%rbp)
	movl	4(%r13), %eax
	movl	%eax, -104(%rbp)
	movl	$10, %r14d
	movq	_HFI1_LRH_GRH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	-128(%rbp), %rbx
	movl	$5, %r14d
	movq	_HFI1_LRH_BTH@GOTPCREL(%rip), %rax
LBB0_3:
	movq	16(%rbp), %r13
	movl	%r13d, %ecx
	shll	$12, %ecx
	movzwl	%cx, %ecx
	shlq	$4, %r15
	orq	%rcx, %r15
	orq	(%rax), %r15
	movq	_IB_OPCODE_CNP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	orl	%eax, %r12d
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_IB_BECN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	btsl	%eax, %edi
	callq	_cpu_to_be32
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	movq	$0, 16(%rax)
	movq	_SIZE_OF_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%r14d, %edx
	leaq	-128(%rbp), %rdi
	movq	%r15, %rsi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_hfi1_make_ib_hdr
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leal	2(%r14), %r15d
	movq	%r13, %rdi
	callq	_ib_is_sc5
	movl	%eax, %ebx
	movq	_PBC_DC_INFO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	movq	%r13, %rsi
	callq	_sc_to_vlt
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	movl	%r15d, %r8d
	callq	_create_pbc
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movl	%eax, %r14d
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sc_buffer_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rdi
	leaq	-128(%rbp), %r15
	movq	%r15, %rsi
	movq	16(%rbp), %rdx
	callq	_trace_pio_output_ibhdr
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%r15, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	*(%rdi)
LBB0_6:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_PKT_TYPE_9B,4,2           ## @HFI1_PKT_TYPE_9B
	.comm	_LRH_9B_DWORDS,4,2              ## @LRH_9B_DWORDS
	.comm	_SIZE_OF_CRC,4,2                ## @SIZE_OF_CRC
	.comm	_HFI1_LRH_GRH,8,3               ## @HFI1_LRH_GRH
	.comm	_HFI1_LRH_BTH,8,3               ## @HFI1_LRH_BTH
	.comm	_IB_OPCODE_CNP,4,2              ## @IB_OPCODE_CNP
	.comm	_IB_BECN_SHIFT,4,2              ## @IB_BECN_SHIFT
	.comm	_PBC_DC_INFO_SHIFT,4,2          ## @PBC_DC_INFO_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_return_cnp                     ; -- Begin function return_cnp
	.p2align	2
_return_cnp:                            ; @return_cnp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x19, x6
	mov	x21, x5
	mov	x25, x4
	mov	x27, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x28, [x8, x6, lsl #3]
	mov	x0, x1
	mov	x1, x6
	bl	_qp_to_send_context
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x20
	bl	_ppd_from_ibp
Lloh0:
	adrp	x8, _HFI1_PKT_TYPE_9B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI1_PKT_TYPE_9B@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh3:
	adrp	x26, _SIZE_OF_CRC@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SIZE_OF_CRC@GOTPAGEOFF]
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x20, x24
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w8, [x22, #16]
	add	x9, sp, #16
	add	x24, x9, #8
Lloh5:
	adrp	x9, _LRH_9B_DWORDS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LRH_9B_DWORDS@GOTPAGEOFF]
	str	w8, [sp, #48]
Lloh7:
	ldr	w8, [x9]
	ldr	w9, [x26]
	sub	w8, w9, w8
	lsl	w8, w8, #2
	add	w0, w8, #20
	bl	_cpu_to_be16
	str	w0, [sp, #44]
	mov	w8, #255
	str	w8, [sp, #32]
	ldur	d0, [x22, #4]
	rev64.2s	v0, v0
	stur	d0, [sp, #36]
	mov	w22, #10
Lloh8:
	adrp	x8, _HFI1_LRH_GRH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HFI1_LRH_GRH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	w22, #5
Lloh10:
	adrp	x8, _HFI1_LRH_BTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HFI1_LRH_BTH@GOTPAGEOFF]
	add	x24, sp, #16
LBB0_3:
	ldr	x8, [x8]
	lsl	w9, w19, #12
	and	x9, x9, #0xf000
	orr	x9, x9, x28, lsl #4
	orr	x28, x9, x8
Lloh12:
	adrp	x8, _IB_OPCODE_CNP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_OPCODE_CNP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w0, w27, w8, lsl #24
	bl	_cpu_to_be32
	ldr	x8, [x24]
	str	x0, [x8]
Lloh15:
	adrp	x8, _IB_BECN_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_BECN_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w0, w8, w20
	bl	_cpu_to_be32
	ldr	x8, [x24]
	str	x0, [x8, #8]
	ldr	x8, [x24]
	str	xzr, [x8, #16]
	ldr	w8, [x26]
	add	w2, w8, w22
	add	x0, sp, #16
	mov	x1, x28
	mov	x3, x21
	mov	x4, x25
	bl	_hfi1_make_ib_hdr
	add	w24, w22, #2
	mov	x0, x19
	bl	_ib_is_sc5
Lloh18:
	adrp	x8, _PBC_DC_INFO_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PBC_DC_INFO_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	w25, w0, w8
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	ldr	x0, [x20]
	mov	x1, x19
	bl	_sc_to_vlt
	mov	x3, x0
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x25
	mov	x4, x24
	bl	_create_pbc
	mov	x23, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x24
	mov	x2, #0
	mov	x3, #0
	bl	_sc_buffer_alloc
	mov	x21, x0
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x20]
	add	x1, sp, #16
	mov	x2, x19
	bl	_trace_pio_output_ibhdr
	ldr	x0, [x20]
	ldr	x8, [x0]
	add	x3, sp, #16
	mov	x1, x21
	mov	x2, x23
	mov	x4, x22
	blr	x8
LBB0_6:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_PKT_TYPE_9B,4,2           ; @HFI1_PKT_TYPE_9B
	.comm	_LRH_9B_DWORDS,4,2              ; @LRH_9B_DWORDS
	.comm	_SIZE_OF_CRC,4,2                ; @SIZE_OF_CRC
	.comm	_HFI1_LRH_GRH,8,3               ; @HFI1_LRH_GRH
	.comm	_HFI1_LRH_BTH,8,3               ; @HFI1_LRH_BTH
	.comm	_IB_OPCODE_CNP,4,2              ; @IB_OPCODE_CNP
	.comm	_IB_BECN_SHIFT,4,2              ; @IB_BECN_SHIFT
	.comm	_PBC_DC_INFO_SHIFT,4,2          ; @PBC_DC_INFO_SHIFT
.subsections_via_symbols
