	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_INIT2RTR_QP_wrapper       ## -- Begin function mlx4_INIT2RTR_QP_wrapper
	.p2align	4, 0x90
_mlx4_INIT2RTR_QP_wrapper:              ## @mlx4_INIT2RTR_QP_wrapper
	.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	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	(%rcx), %rax
	movl	$8388607, %ecx                  ## imm = 0x7FFFFF
	andl	(%rdx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	384(%rax), %rdx
	movq	424(%rax), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movups	392(%rax), %xmm0
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movups	408(%rax), %xmm0
	movaps	%xmm0, -128(%rbp)               ## 16-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	callq	_adjust_qp_sched_queue
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	_QP_TRANS_INIT2RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%r13d, %r8d
	callq	_verify_qp_parameters
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_roce_verify_mac
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_update_pkey_index
	movslq	%r13d, %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_update_gid
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_adjust_proxy_tun_qkey
	movq	(%r14), %r14
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_get_res
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %rax
	movq	48(%rax), %rax
	movq	_RES_QP_HW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_update_vport_qp_param
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	callq	_mlx4_DMA_wrapper
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.10:
	movq	-72(%rbp), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 40(%rax)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, 32(%rax)
	movaps	-128(%rbp), %xmm0               ## 16-byte Reload
	movups	%xmm0, 16(%rax)
	movaps	-144(%rbp), %xmm0               ## 16-byte Reload
	movups	%xmm0, (%rax)
	xorl	%r15d, %r15d
LBB0_11:
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_put_res
LBB0_12:
	movl	%r15d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QP_TRANS_INIT2RTR,4,2          ## @QP_TRANS_INIT2RTR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RES_QP,4,2                     ## @RES_QP
	.comm	_RES_QP_HW,8,3                  ## @RES_QP_HW
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_INIT2RTR_QP_wrapper       ; -- Begin function mlx4_INIT2RTR_QP_wrapper
	.p2align	2
_mlx4_INIT2RTR_QP_wrapper:              ; @mlx4_INIT2RTR_QP_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x3]
	add	x26, x8, #384
	ldr	w25, [x2]
	ldp	x10, x28, [x8, #416]
	ldr	x9, [x8, #408]
	stp	x9, x10, [sp, #24]              ; 16-byte Folded Spill
	ldp	x8, x9, [x8, #392]
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	mov	x2, x26
	bl	_adjust_qp_sched_queue
	mov	x27, x0
	cbnz	w0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _QP_TRANS_INIT2RTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QP_TRANS_INIT2RTR@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x4, x19
	bl	_verify_qp_parameters
	mov	x27, x0
	cbnz	w0, LBB0_12
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x26
	mov	x3, x23
	bl	_roce_verify_mac
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_12
LBB0_4:
	and	w25, w25, #0x7fffff
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_update_pkey_index
	sxtw	x2, w19
	mov	x0, x20
	mov	x1, x23
	bl	_update_gid
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	bl	_adjust_proxy_tun_qkey
	ldr	x26, [x26]
Lloh6:
	adrp	x8, _RES_QP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RES_QP@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_get_res
	mov	x27, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	x8, [sp, #40]
	ldr	x8, [x8, #48]
Lloh9:
	adrp	x9, _RES_QP_HW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RES_QP_HW@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x25
	bl	_update_vport_qp_param
	mov	x27, x0
Lloh12:
	adrp	x10, _RES_QP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RES_QP@GOTPAGEOFF]
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_mlx4_DMA_wrapper
	mov	x27, x0
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_9:
Lloh17:
	adrp	x10, _RES_QP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RES_QP@GOTPAGEOFF]
	cbnz	w27, LBB0_11
; %bb.10:
	ldp	x11, x8, [sp, #32]              ; 8-byte Folded Reload
	stp	x28, x26, [x8, #32]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	stp	x9, x11, [x8, #16]
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	stp	x9, x11, [x8]
LBB0_11:
	ldr	w3, [x10]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_put_res
LBB0_12:
	mov	x0, x27
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_QP_TRANS_INIT2RTR,4,2          ; @QP_TRANS_INIT2RTR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RES_QP,4,2                     ; @RES_QP
	.comm	_RES_QP_HW,8,3                  ; @RES_QP_HW
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
