	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_HW2SW_EQ_wrapper          ## -- Begin function mlx4_HW2SW_EQ_wrapper
	.p2align	4, 0x90
_mlx4_HW2SW_EQ_wrapper:                 ## @mlx4_HW2SW_EQ_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, %r12
	movl	%esi, %r14d
	movl	%esi, %r13d
	shll	$10, %r13d
	orl	(%rdx), %r13d
	movq	_RES_EQ_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%rdi, %r15
	movl	%r13d, %edx
	callq	_eq_res_start_move_to
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_RES_MTT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_get_res
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %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
	movl	%eax, %ebx
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movl	(%rdi), %edx
	movq	_RES_MTT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_put_res
LBB0_5:
	movq	_RES_EQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %ecx
	callq	_res_abort_move
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addq	$4, %rdi
	callq	_atomic_dec
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_RES_MTT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_put_res
	movq	_RES_EQ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %ecx
	callq	_res_end_move
	movl	(%rbx), %r8d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_rem_res_range
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_EQ_RESERVED,4,2            ## @RES_EQ_RESERVED
	.comm	_RES_MTT,4,2                    ## @RES_MTT
	.comm	_RES_EQ,4,2                     ## @RES_EQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_HW2SW_EQ_wrapper          ; -- Begin function mlx4_HW2SW_EQ_wrapper
	.p2align	2
_mlx4_HW2SW_EQ_wrapper:                 ; @mlx4_HW2SW_EQ_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	x20, x1
	mov	x21, x0
	ldr	w8, [x2]
	orr	w19, w8, w1, lsl #10
Lloh0:
	adrp	x8, _RES_EQ_RESERVED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_EQ_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x2, x19
	bl	_eq_res_start_move_to
	mov	x26, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh3:
	adrp	x27, _RES_MTT@GOTPAGE
Lloh4:
	ldr	x27, [x27, _RES_MTT@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x20
	mov	x4, #0
	bl	_get_res
	mov	x26, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_mlx4_DMA_wrapper
	mov	x26, x0
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w2, [x8]
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x20
	bl	_put_res
LBB0_4:
Lloh5:
	adrp	x8, _RES_EQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RES_EQ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_res_abort_move
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
LBB0_6:
	add	x0, x8, #4
	bl	_atomic_dec
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x20
	bl	_put_res
Lloh8:
	adrp	x22, _RES_EQ@GOTPAGE
Lloh9:
	ldr	x22, [x22, _RES_EQ@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_res_end_move
	ldr	w4, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	mov	w5, #0
	bl	_rem_res_range
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_EQ_RESERVED,4,2            ; @RES_EQ_RESERVED
	.comm	_RES_MTT,4,2                    ; @RES_MTT
	.comm	_RES_EQ,4,2                     ; @RES_EQ
.subsections_via_symbols
