	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_qp_alloc
_hns_roce_qp_alloc:                     ## @hns_roce_qp_alloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	%rsi, (%rdx)
	leaq	24(%rdi), %r13
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_hns_roce_table_get
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_20
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	leaq	28(%r14), %rbx
	movq	%rax, %r13
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hns_roce_table_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.7:
	leaq	32(%r14), %rsi
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_hns_roce_table_get
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_9:
	cmpq	$0, 8(%r14)
	je	LBB0_12
## %bb.10:
	leaq	36(%r14), %rsi
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_hns_roce_table_get
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_hns_roce_gsi_qp_alloc
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %r12d
	cmpq	$0, 8(%r14)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:
	leaq	36(%r14), %rsi
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_hns_roce_table_put
LBB0_16:
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.17:
	leaq	32(%r14), %rsi
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_hns_roce_table_put
LBB0_18:
	movq	(%r13), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hns_roce_table_put
LBB0_19:
	movq	(%r13), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hns_roce_table_put
LBB0_20:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QPC table get failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"IRRL table get failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"TRRL table get failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"SCC CTX table get failed\n"

	.no_dead_strip	_hns_roce_qp_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_qp_alloc
_hns_roce_qp_alloc:                     ; @hns_roce_qp_alloc
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x24, [x0, #16]
	str	x1, [x2]
	add	x21, x0, #24
	mov	x1, x21
	mov	x2, x25
	bl	_hns_roce_table_get
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	b	LBB0_19
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_4:
	add	x23, x19, #28
	ldr	x2, [x20]
	mov	x0, x19
	mov	x1, x23
	bl	_hns_roce_table_get
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	b	LBB0_18
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.7:
	add	x1, x19, #32
	ldr	x2, [x20]
	mov	x0, x19
	bl	_hns_roce_table_get
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	b	LBB0_17
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.10:
	add	x1, x19, #36
	ldr	x2, [x20]
	mov	x0, x19
	bl	_hns_roce_table_get
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	b	LBB0_15
LBB0_12:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x20
	bl	_hns_roce_gsi_qp_alloc
	mov	x22, x0
	cbz	w0, LBB0_19
; %bb.13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.14:
	add	x1, x19, #36
	ldr	x2, [x20]
	mov	x0, x19
	bl	_hns_roce_table_put
LBB0_15:
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.16:
	add	x1, x19, #32
	ldr	x2, [x20]
	mov	x0, x19
	bl	_hns_roce_table_put
LBB0_17:
	ldr	x2, [x20]
	mov	x0, x19
	mov	x1, x23
	bl	_hns_roce_table_put
LBB0_18:
	ldr	x2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_hns_roce_table_put
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QPC table get failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"IRRL table get failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"TRRL table get failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"SCC CTX table get failed\n"

	.no_dead_strip	_hns_roce_qp_alloc
.subsections_via_symbols
