	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_2RST_QP_wrapper           ## -- Begin function mlx4_2RST_QP_wrapper
	.p2align	4, 0x90
_mlx4_2RST_QP_wrapper:                  ## @mlx4_2RST_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, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$8388607, %ebx                  ## imm = 0x7FFFFF
	andl	(%rdx), %ebx
	movq	_RES_QP_MAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movl	%ebx, %edx
	xorl	%r9d, %r9d
	callq	_qp_res_start_move_to
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_mlx4_DMA_wrapper
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movl	%eax, %r12d
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	callq	_res_abort_move
	jmp	LBB0_6
LBB0_2:
	movq	-48(%rbp), %rax
	movq	24(%rax), %rdi
	callq	_atomic_dec
	movq	-48(%rbp), %rax
	movq	16(%rax), %rdi
	callq	_atomic_dec
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_atomic_dec
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_atomic_dec
LBB0_4:
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	callq	_res_end_move
	xorl	%r12d, %r12d
LBB0_6:
	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_MAPPED,4,2              ## @RES_QP_MAPPED
	.comm	_RES_QP,4,2                     ## @RES_QP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_2RST_QP_wrapper           ; -- Begin function mlx4_2RST_QP_wrapper
	.p2align	2
_mlx4_2RST_QP_wrapper:                  ; @mlx4_2RST_QP_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x2]
	and	w19, w8, #0x7fffff
Lloh0:
	adrp	x8, _RES_QP_MAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_QP_MAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x2, x19
	mov	w5, #0
	bl	_qp_res_start_move_to
	mov	x26, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_mlx4_DMA_wrapper
	cbz	w0, LBB0_3
; %bb.2:
	mov	x26, x0
Lloh3:
	adrp	x8, _RES_QP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RES_QP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_res_abort_move
	b	LBB0_6
LBB0_3:
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #24]
	bl	_atomic_dec
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #16]
	bl	_atomic_dec
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	bl	_atomic_dec
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_atomic_dec
LBB0_5:
Lloh6:
	adrp	x8, _RES_QP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RES_QP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_res_end_move
	mov	w26, #0
LBB0_6:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_QP_MAPPED,4,2              ; @RES_QP_MAPPED
	.comm	_RES_QP,4,2                     ; @RES_QP
.subsections_via_symbols
