	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ehca_create_aqp1
LCPI0_0:
	.long	100                             ## 0x64
	.long	100                             ## 0x64
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ehca_create_aqp1:                      ## @ehca_create_aqp1
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	movslq	%esi, %r12
	decq	%r12
	shlq	$4, %r12
	cmpq	$0, (%r13,%r12)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ehca_err
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	$-1, %rcx
	movl	$10, %r8d
	xorl	%r9d, %r9d
	callq	_ib_create_cq
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ehca_err
	movq	%rbx, %rdi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	(%r12,%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, (%rax)
	movq	8(%r13,%r12), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_ehca_err
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	leaq	-136(%rbp), %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movq	%rax, -72(%rbp)
	movq	_IB_SIGNAL_ALL_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [100,100,2,1]
	movups	%xmm0, -96(%rbp)
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)
	movl	%r15d, -128(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -120(%rbp)
	movq	$0, -104(%rbp)
	movq	8(%r14), %rdi
	leaq	-136(%rbp), %rsi
	callq	_ib_create_qp
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_ehca_err
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_ib_destroy_cq
	jmp	LBB0_8
LBB0_10:
	leaq	(%r12,%r13), %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r15, (%rax,%rcx,8)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AQP1 CQ is already created."

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"Cannot create AQP1 CQ."

	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
L_.str.2:                               ## @.str.2
	.asciz	"AQP1 QP is already created."

	.comm	_IB_SIGNAL_ALL_WR,4,2           ## @IB_SIGNAL_ALL_WR
L_.str.3:                               ## @.str.3
	.asciz	"Cannot create AQP1 QP."

	.no_dead_strip	_ehca_create_aqp1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ehca_create_aqp1
lCPI0_0:
	.long	100                             ; 0x64
	.long	100                             ; 0x64
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ehca_create_aqp1:                      ; @ehca_create_aqp1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	sxtw	x8, w20
	sub	x24, x8, #1
	add	x22, x23, x24, lsl #4
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ehca_err
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #-1
	mov	w4, #10
	mov	w5, #0
	bl	_ib_create_cq
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ehca_err
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_PTR_ERR
LBB0_5:
	add	x23, x23, x24, lsl #4
	ldr	x8, [x23, #8]!
	str	x21, [x22]
Lloh7:
	adrp	x24, _IB_QPT_GSI@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IB_QPT_GSI@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_7
; %bb.6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ehca_err
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_9
LBB0_7:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	stp	x21, x21, [sp, #64]
Lloh14:
	adrp	x8, _IB_SIGNAL_ALL_WR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_SIGNAL_ALL_WR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [sp, #40]
	ldr	x8, [x24]
	str	x8, [sp]
	str	w20, [sp, #8]
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	x0, [x19, #8]
	mov	x1, sp
	bl	_ib_create_qp
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ehca_err
	mov	x0, x20
	bl	_PTR_ERR
	mov	x19, x0
LBB0_9:
	ldr	x0, [x22]
	bl	_ib_destroy_cq
	b	LBB0_2
LBB0_10:
	mov	w19, #0
	ldr	x8, [x23]
	ldr	x9, [x24]
	str	x20, [x8, x9, lsl #3]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AQP1 CQ is already created."

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"Cannot create AQP1 CQ."

	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
l_.str.2:                               ; @.str.2
	.asciz	"AQP1 QP is already created."

	.comm	_IB_SIGNAL_ALL_WR,4,2           ; @IB_SIGNAL_ALL_WR
l_.str.3:                               ; @.str.3
	.asciz	"Cannot create AQP1 QP."

	.no_dead_strip	_ehca_create_aqp1
.subsections_via_symbols
