	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_create_gsi_qp             ## -- Begin function qedr_create_gsi_qp
	.p2align	4, 0x90
_qedr_create_gsi_qp:                    ## @qedr_create_gsi_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_qedr_check_gsi_qp_attrs
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %edi
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_qedr_ll2_start
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DP_ERR
	movl	%ebx, %edi
	jmp	LBB0_2
LBB0_5:
	movl	$1, 8(%r14)
	movl	4(%r13), %edi
	movl	%edi, 28(%r14)
	movl	(%r13), %eax
	movl	%eax, 24(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$1, %esi
	callq	_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	24(%r14), %edi
	movl	(%rbx), %edx
	movl	$1, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	leaq	8(%r14), %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_qedr_store_gsi_qp_cq
	movl	16(%r15), %edi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	callq	_ether_addr_copy
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_qedr_destroy_gsi_cq
	movq	_QEDR_CQ_TYPE_GSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movq	_QEDR_MSG_GSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_DP_DEBUG
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_8:
	movq	(%r14), %rdi
LBB0_9:
	callq	_kfree
	movq	%r15, %rdi
	callq	_qedr_ll2_stop
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_ERR
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create gsi qp: failed on ll2 start. rc=%d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_QEDR_CQ_TYPE_GSI,8,3           ## @QEDR_CQ_TYPE_GSI
	.comm	_QEDR_MSG_GSI,4,2               ## @QEDR_MSG_GSI
L_.str.1:                               ## @.str.1
	.asciz	"created GSI QP %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"create gsi qp: failed destroy on create\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_create_gsi_qp             ; -- Begin function qedr_create_gsi_qp
	.p2align	2
_qedr_create_gsi_qp:                    ; @qedr_create_gsi_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_qedr_check_gsi_qp_attrs
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_qedr_ll2_start
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
	mov	x0, x22
	b	LBB0_10
LBB0_3:
	mov	w8, #1
	mov	x22, x20
	str	w8, [x22, #8]!
	ldp	w8, w0, [x21]
	stp	w8, w0, [x20, #24]
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #1
	bl	_kcalloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x20, #24]
	ldr	w2, [x23]
	mov	w1, #1
	bl	_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_qedr_store_gsi_qp_cq
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_ether_addr_copy
	mov	x0, x19
	mov	x1, x21
	bl	_qedr_destroy_gsi_cq
Lloh4:
	adrp	x8, _QEDR_CQ_TYPE_GSI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QEDR_CQ_TYPE_GSI@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x19]
	str	x9, [x10]
	ldr	x8, [x8]
	str	x8, [x10]
Lloh6:
	adrp	x8, _QEDR_MSG_GSI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QEDR_MSG_GSI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_DP_DEBUG
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x0, [x20]
LBB0_7:
	bl	_kfree
	mov	x0, x19
	bl	_qedr_ll2_stop
	cbz	w0, LBB0_9
; %bb.8:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #80
	b	_ERR_PTR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create gsi qp: failed on ll2 start. rc=%d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_QEDR_CQ_TYPE_GSI,8,3           ; @QEDR_CQ_TYPE_GSI
	.comm	_QEDR_MSG_GSI,4,2               ; @QEDR_MSG_GSI
l_.str.1:                               ; @.str.1
	.asciz	"created GSI QP %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"create gsi qp: failed destroy on create\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
