	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mthca_create_qp
_mthca_create_qp:                       ## @mthca_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 40(%rsi)
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movq	%rsi, %r13
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_27
## %bb.4:
	movq	%rdi, %r15
	movl	$11, %ecx
	btl	%eax, %ecx
	jae	LBB0_19
## %bb.5:
	movq	%rdx, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movl	(%rax), %edi
	callq	_to_mucontext
	movq	%rax, %r12
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$20, %edx
	callq	_ib_copy_from_udata
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_kfree
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_24
LBB0_19:
	cmpq	$0, 8(%r15)
	jne	LBB0_1
## %bb.20:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.21:
	movq	%rax, %r14
	xorl	%eax, %eax
	cmpl	$130, (%r13)
	setne	%al
	movl	%eax, 4(%r14)
	movl	(%r15), %edi
	callq	_to_mdev
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_to_mpd
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	36(%r13), %edi
	callq	_to_mcq
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	32(%r13), %edi
	callq	_to_mcq
	movl	%eax, %r12d
	movl	24(%r13), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	28(%r13), %r15d
	leaq	4(%r13), %rbx
	movl	4(%r14), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_to_msqp
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movq	%rbx, %r9
	pushq	%rax
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_mthca_alloc_sqp
	addq	$32, %rsp
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jne	LBB0_23
	jmp	LBB0_25
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_27:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movl	(%r15), %edi
	callq	_to_mdev
	movq	%r12, %rbx
	addq	$4, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edx
	movl	-68(%rbp), %ecx
	movl	-56(%rbp), %r8d
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_mthca_map_user_db
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	jmp	LBB0_23
LBB0_12:
	movl	(%r15), %edi
	callq	_to_mdev
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	movl	-72(%rbp), %ecx
	movl	-60(%rbp), %r8d
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_mthca_map_user_db
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	(%r15), %edi
	movl	%eax, %r15d
	callq	_to_mdev
	movl	(%r12), %edx
	movl	-68(%rbp), %ecx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_mthca_unmap_user_db
	movq	%r14, %rdi
	callq	_kfree
	movl	%r15d, %edi
	jmp	LBB0_24
LBB0_14:
	movl	-64(%rbp), %eax
	movl	%eax, 36(%r14)
	movl	-68(%rbp), %eax
	movl	%eax, 32(%r14)
	movl	-72(%rbp), %eax
	movl	%eax, 20(%r14)
LBB0_15:
	movl	(%r15), %edi
	callq	_to_mdev
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_to_mpd
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	36(%r13), %edi
	callq	_to_mcq
	movl	%eax, %r12d
	movl	32(%r13), %edi
	callq	_to_mcq
	movl	(%r13), %r8d
	movl	28(%r13), %r9d
	leaq	4(%r13), %rbx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%eax, %ecx
	pushq	%r14
	pushq	%rbx
	callq	_mthca_alloc_qp
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	(%rax), %edi
	callq	_to_mucontext
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_to_mdev
	leaq	4(%rbx), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edx
	movl	-68(%rbp), %ecx
	movl	%eax, %edi
	callq	_mthca_unmap_user_db
	movl	(%r15), %edi
	callq	_to_mdev
	movl	(%rbx), %edx
	movl	-72(%rbp), %ecx
	movl	%eax, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mthca_unmap_user_db
LBB0_18:
	movl	(%r14), %eax
	movl	%eax, 4(%r14)
	testl	%r12d, %r12d
	je	LBB0_25
LBB0_23:
	movq	%r14, %rdi
	callq	_kfree
	movl	%r12d, %edi
LBB0_24:
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_26:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	28(%r14), %eax
	movl	%eax, 20(%r13)
	movl	16(%r14), %eax
	movl	%eax, 16(%r13)
	movl	24(%r14), %eax
	movl	%eax, 12(%r13)
	movl	12(%r14), %eax
	movl	%eax, 8(%r13)
	movl	8(%r14), %eax
	movl	%eax, 4(%r13)
	addq	$4, %r14
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_mthca_create_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mthca_create_qp
_mthca_create_qp:                       ; @mthca_create_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ERR_PTR
LBB0_3:
	mov	x19, x1
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.4:
	mov	x21, x0
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #11
	tst	w8, w9
	b.eq	LBB0_9
; %bb.5:
	mov	x23, x2
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_13
; %bb.6:
	mov	x20, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_21
; %bb.7:
	ldr	w0, [x8]
	bl	_to_mucontext
	mov	x22, x0
	add	x0, sp, #8
	mov	x1, x23
	mov	w2, #20
	bl	_ib_copy_from_udata
	cbz	w0, LBB0_15
; %bb.8:
	mov	x0, x20
	bl	_kfree
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_26
LBB0_9:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_1
; %bb.10:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_13
; %bb.11:
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #130
	cset	w8, ne
	str	w8, [x0, #4]
	ldr	w0, [x21]
	bl	_to_mdev
	mov	x22, x0
	mov	x0, x21
	bl	_to_mpd
	mov	x21, x0
	ldr	w0, [x19, #36]
	bl	_to_mcq
	mov	x23, x0
	ldr	w0, [x19, #32]
	bl	_to_mcq
	mov	x24, x0
	add	x25, x19, #4
	ldr	w26, [x20, #4]
	ldp	w28, w27, [x19, #24]
	mov	x0, x20
	bl	_to_msqp
	str	w0, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	mov	x4, x27
	mov	x5, x25
	mov	x6, x26
	mov	x7, x28
	bl	_mthca_alloc_sqp
	mov	x22, x0
	cbnz	w22, LBB0_25
LBB0_12:
	ldr	w8, [x20, #28]
	str	w8, [x19, #20]
	ldr	w8, [x20, #16]
	str	w8, [x19, #16]
	ldr	w8, [x20, #24]
	str	w8, [x19, #12]
	ldr	d0, [x20, #8]
	stur	d0, [x19, #4]
	add	x0, x20, #4
	b	LBB0_27
LBB0_13:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
Lloh13:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	ldr	w0, [x21]
	bl	_to_mdev
	mov	x23, x22
	ldr	w2, [x23], #4
	ldr	w3, [sp, #12]
	ldr	w4, [sp, #24]
	mov	x1, x23
	bl	_mthca_map_user_db
	cbz	w0, LBB0_17
; %bb.16:
	mov	x24, x0
	b	LBB0_19
LBB0_17:
	ldr	w0, [x21]
	bl	_to_mdev
	ldr	w2, [x22]
	ldr	w3, [sp, #8]
	ldr	w4, [sp, #20]
	mov	x1, x23
	bl	_mthca_map_user_db
	cbz	w0, LBB0_20
; %bb.18:
	mov	x24, x0
	ldr	w0, [x21]
	bl	_to_mdev
	ldr	w2, [x22]
	ldr	w3, [sp, #12]
	mov	x1, x23
	bl	_mthca_unmap_user_db
LBB0_19:
	mov	x0, x20
	bl	_kfree
	mov	x0, x24
	b	LBB0_26
LBB0_20:
	ldur	d0, [sp, #12]
	str	d0, [x20, #32]
	ldr	w8, [sp, #8]
	str	w8, [x20, #20]
LBB0_21:
	ldr	w0, [x21]
	bl	_to_mdev
	mov	x22, x0
	mov	x0, x21
	bl	_to_mpd
	mov	x23, x0
	ldr	w0, [x19, #36]
	bl	_to_mcq
	mov	x24, x0
	ldr	w0, [x19, #32]
	bl	_to_mcq
	mov	x3, x0
	ldr	w4, [x19]
	ldr	w5, [x19, #28]
	add	x6, x19, #4
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x7, x20
	bl	_mthca_alloc_qp
	mov	x22, x0
	cbz	w0, LBB0_24
; %bb.22:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	w0, [x8]
	bl	_to_mucontext
	mov	x23, x0
	ldr	w0, [x21]
	bl	_to_mdev
	add	x24, x23, #4
	ldr	w2, [x23]
	ldr	w3, [sp, #12]
	mov	x1, x24
	bl	_mthca_unmap_user_db
	ldr	w0, [x21]
	bl	_to_mdev
	ldr	w2, [x23]
	ldr	w3, [sp, #8]
	mov	x1, x24
	bl	_mthca_unmap_user_db
LBB0_24:
	ldr	w8, [x20]
	str	w8, [x20, #4]
	cbz	w22, LBB0_12
LBB0_25:
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
LBB0_26:
	bl	_ERR_PTR
LBB0_27:
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_mthca_create_qp
.subsections_via_symbols
