	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_cleanup_eq_table         ## -- Begin function mthca_cleanup_eq_table
	.p2align	4, 0x90
_mthca_cleanup_eq_table:                ## @mthca_cleanup_eq_table
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_mthca_free_irqs
	movq	%r15, %rdi
	callq	_async_mask
	movq	8(%r15), %rcx
	movq	_MTHCA_EQ_ASYNC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_mthca_MAP_EQ
	movq	_MTHCA_CMD_EVENT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rax
	movq	_MTHCA_EQ_CMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_mthca_MAP_EQ
	movq	_MTHCA_NUM_EQ@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	callq	_mthca_free_eq
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_mthca_unmap_eq_regs
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mthca_alloc_cleanup            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_EQ_ASYNC,8,3             ## @MTHCA_EQ_ASYNC
	.comm	_MTHCA_CMD_EVENT_MASK,4,2       ## @MTHCA_CMD_EVENT_MASK
	.comm	_MTHCA_EQ_CMD,8,3               ## @MTHCA_EQ_CMD
	.comm	_MTHCA_NUM_EQ,4,2               ## @MTHCA_NUM_EQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_cleanup_eq_table         ; -- Begin function mthca_cleanup_eq_table
	.p2align	2
_mthca_cleanup_eq_table:                ; @mthca_cleanup_eq_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_mthca_free_irqs
	mov	x0, x19
	bl	_async_mask
	mov	x1, x0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _MTHCA_EQ_ASYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTHCA_EQ_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	mov	w2, #1
	bl	_mthca_MAP_EQ
Lloh3:
	adrp	x8, _MTHCA_CMD_EVENT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTHCA_CMD_EVENT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _MTHCA_EQ_CMD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MTHCA_EQ_CMD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	mov	w2, #1
	bl	_mthca_MAP_EQ
Lloh9:
	adrp	x20, _MTHCA_NUM_EQ@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MTHCA_NUM_EQ@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_mthca_free_eq
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_mthca_unmap_eq_regs
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mthca_alloc_cleanup
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_EQ_ASYNC,8,3             ; @MTHCA_EQ_ASYNC
	.comm	_MTHCA_CMD_EVENT_MASK,4,2       ; @MTHCA_CMD_EVENT_MASK
	.comm	_MTHCA_EQ_CMD,8,3               ; @MTHCA_EQ_CMD
	.comm	_MTHCA_NUM_EQ,4,2               ; @MTHCA_NUM_EQ
.subsections_via_symbols
