	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_llp_connect                 ## -- Begin function c2_llp_connect
	.p2align	4, 0x90
_c2_llp_connect:                        ## @c2_llp_connect
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_to_c2dev
	movq	%rax, %r15
	movl	32(%rbx), %edi
	movl	16(%r12), %esi
	callq	_c2_get_qp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_to_c2qp
	movq	%rax, %r14
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	%rbx, (%r14)
	movl	(%r12), %eax
	movq	_C2_MAX_PRIVATE_DATA_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	testl	%r13d, %r13d
	jne	LBB0_17
LBB0_16:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_5:
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_c2_qp_set_read_limits
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_6
LBB0_17:
	movq	$0, 8(%rbx)
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	*(%rbx)
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_vq_req_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_CCWR_QP_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_c2_wr_set_id
	movq	$0, 32(%r13)
	movl	(%r15), %eax
	movl	%eax, 28(%r13)
	movl	8(%r14), %eax
	movl	%eax, 24(%r13)
	movl	20(%rbx), %eax
	movl	%eax, 20(%r13)
	movl	16(%rbx), %eax
	movl	%eax, 16(%r13)
	cmpl	$0, 4(%r12)
	je	LBB0_12
## %bb.11:
	movl	(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, (%r13)
	movq	8(%r13), %rdi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	callq	_memcpy
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	%r13, %r12
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_12:
	movq	$0, (%r13)
LBB0_13:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_vq_send_wr
	movq	%r13, %r12
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vq_req_free
LBB0_14:
	movq	%r12, %rdi
	callq	_kfree
	testl	%r13d, %r13d
	jne	LBB0_17
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_C2_MAX_PRIVATE_DATA_SIZE,4,2   ## @C2_MAX_PRIVATE_DATA_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CCWR_QP_CONNECT,4,2            ## @CCWR_QP_CONNECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_llp_connect                 ; -- Begin function c2_llp_connect
	.p2align	2
_c2_llp_connect:                        ; @c2_llp_connect
	.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	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_to_c2dev
	mov	x21, x0
	ldr	w0, [x19, #32]
	ldr	w1, [x22, #16]
	bl	_c2_get_qp
	cbz	x0, LBB0_4
; %bb.1:
	bl	_to_c2qp
	mov	x20, x0
	str	x0, [x19, #8]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	str	x19, [x20]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _C2_MAX_PRIVATE_DATA_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _C2_MAX_PRIVATE_DATA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w24, w8
	cbnz	w24, LBB0_6
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_5:
	ldp	w3, w2, [x22, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_c2_qp_set_read_limits
	mov	x24, x0
	cbz	w0, LBB0_8
LBB0_6:
	str	xzr, [x19, #8]
	str	xzr, [x20]
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	x0, x24
	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
	ret
LBB0_8:
	ldr	w0, [x21, #4]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.9:
	mov	x23, x0
	mov	x0, x21
	bl	_vq_req_alloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x25, x0
Lloh11:
	adrp	x8, _CCWR_QP_CONNECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CCWR_QP_CONNECT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_c2_wr_set_id
	str	xzr, [x23, #32]
	ldr	w8, [x21]
	ldr	w9, [x20, #8]
	stp	w9, w8, [x23, #24]
	ldr	d0, [x19, #16]
	str	d0, [x23, #16]
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_14
; %bb.11:
	ldr	w0, [x22]
	bl	_cpu_to_be32
	str	x0, [x23]
	ldr	x0, [x23, #8]
	ldp	w2, w1, [x22]
	bl	_memcpy
	b	LBB0_15
LBB0_12:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_14:
	str	xzr, [x23]
LBB0_15:
	mov	x0, x21
	mov	x1, x23
	bl	_vq_send_wr
	mov	x24, x0
	mov	x0, x21
	mov	x1, x25
	bl	_vq_req_free
LBB0_16:
	mov	x0, x23
	bl	_kfree
	cbnz	w24, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_C2_MAX_PRIVATE_DATA_SIZE,4,2   ; @C2_MAX_PRIVATE_DATA_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CCWR_QP_CONNECT,4,2            ; @CCWR_QP_CONNECT
.subsections_via_symbols
