	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_GEN_QP_wrapper            ## -- Begin function mlx4_GEN_QP_wrapper
	.p2align	4, 0x90
_mlx4_GEN_QP_wrapper:                   ## @mlx4_GEN_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$8388607, %ebx                  ## imm = 0x7FFFFF
	andl	(%rdx), %ebx
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movl	%ebx, %edx
	callq	_get_res
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movq	_RES_QP_HW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_mlx4_DMA_wrapper
	movl	%eax, %r12d
	jmp	LBB0_4
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_put_res
LBB0_5:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_GEN_QP_wrapper            ; -- Begin function mlx4_GEN_QP_wrapper
	.p2align	2
_mlx4_GEN_QP_wrapper:                   ; @mlx4_GEN_QP_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x2]
	and	w20, w8, #0x7fffff
Lloh0:
	adrp	x27, _RES_QP@GOTPAGE
Lloh1:
	ldr	x27, [x27, _RES_QP@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x4, sp, #8
	mov	x2, x20
	bl	_get_res
	mov	x26, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _RES_QP_HW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RES_QP_HW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_mlx4_DMA_wrapper
	mov	x26, x0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_4:
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_put_res
LBB0_5:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_QP,4,2                     ; @RES_QP
	.comm	_RES_QP_HW,8,3                  ; @RES_QP_HW
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
