	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_create_qp
_ds_create_qp:                          ## @ds_create_qp
	.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
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	movq	%r15, 16(%rax)
	movq	_RDMA_PS_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_rdma_create_id
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%r13, %rsi
	callq	_ds_format_hdr
	movq	(%r12), %rdi
	movq	%r13, %rsi
	callq	_rdma_bind_addr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	%r12, %rdi
	callq	_ds_init_bufs
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_rs_create_cq
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r12, -56(%rbp)
	movq	(%r12), %rdi
	movl	12(%rdi), %eax
	movl	%eax, -64(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -68(%rbp)
	movq	_IBV_QPT_UD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$1, -96(%rbp)
	movl	12(%r15), %eax
	movl	%eax, -76(%rbp)
	movl	(%r15), %eax
	movl	%eax, -92(%rbp)
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, -88(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -80(%rbp)
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_rdma_create_qp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movl	-80(%rbp), %eax
	movl	%eax, 8(%r15)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ds_add_qp_dest
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	%r12, -112(%rbp)
	movl	4(%r15), %edi
	movq	_EPOLL_CTL_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rcx
	callq	_epoll_ctl
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
LBB0_13:
	movq	%r12, %rdi
	callq	_ds_free_qp
LBB0_14:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_8:
	cmpl	$0, (%r15)
	jle	LBB0_16
## %bb.9:
	xorl	%r13d, %r13d
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_RS_SNDLOWAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imull	%r13d, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ds_post_recv
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r13d
	cmpl	(%r15), %r13d
	jl	LBB0_11
LBB0_16:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ds_insert_qp
	movq	%r12, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_12:
	movl	%eax, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RDMA_PS_UDP,4,2                ## @RDMA_PS_UDP
	.comm	_IBV_QPT_UD,4,2                 ## @IBV_QPT_UD
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLL_CTL_ADD,4,2              ## @EPOLL_CTL_ADD
	.comm	_RS_SNDLOWAT,4,2                ## @RS_SNDLOWAT
	.no_dead_strip	_ds_create_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ds_create_qp
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ds_create_qp:                          ; @ds_create_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #16]
Lloh0:
	adrp	x8, _RDMA_PS_UDP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_PS_UDP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x20
	mov	x2, x20
	bl	_rdma_create_id
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.2:
	add	x0, x20, #8
	mov	x1, x23
	bl	_ds_format_hdr
	ldr	x0, [x20]
	mov	x1, x23
	bl	_rdma_bind_addr
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_ds_init_bufs
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x1, [x20]
	mov	x0, x21
	bl	_rs_create_cq
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.5:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	x20, [sp, #56]
	ldr	x0, [x20]
	ldr	d0, [x0, #8]
Lloh3:
	adrp	x8, _IBV_QPT_UD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IBV_QPT_UD@GOTPAGEOFF]
	stur	d0, [sp, #44]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	w8, #1
	ldr	w9, [x21]
	stp	w8, w9, [sp, #16]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	ldr	d1, [x21, #8]
	stp	d0, d1, [sp, #24]
	add	x2, sp, #16
	mov	x1, #0
	bl	_rdma_create_qp
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w8, [sp, #32]
	str	w8, [x21, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_ds_add_qp_dest
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x20, [sp]
	ldr	w0, [x21, #4]
Lloh11:
	adrp	x8, _EPOLL_CTL_ADD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPOLL_CTL_ADD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x3, sp
	bl	_epoll_ctl
	mov	x24, x0
	cbz	w0, LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_ds_free_qp
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ERR
LBB0_11:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
	mov	w22, #0
Lloh17:
	adrp	x23, _RS_SNDLOWAT@GOTPAGE
Lloh18:
	ldr	x23, [x23, _RS_SNDLOWAT@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	mul	w2, w8, w22
	mov	x0, x21
	mov	x1, x20
	bl	_ds_post_recv
	cbnz	w0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_13
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	bl	_ds_insert_qp
	mov	w24, #0
	str	x20, [x19]
	b	LBB0_9
LBB0_16:
	mov	x24, x0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RDMA_PS_UDP,4,2                ; @RDMA_PS_UDP
	.comm	_IBV_QPT_UD,4,2                 ; @IBV_QPT_UD
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLL_CTL_ADD,4,2              ; @EPOLL_CTL_ADD
	.comm	_RS_SNDLOWAT,4,2                ; @RS_SNDLOWAT
	.no_dead_strip	_ds_create_qp
.subsections_via_symbols
