	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_cmd_wake_completions      ## -- Begin function mlx4_cmd_wake_completions
	.p2align	4, 0x90
_mlx4_cmd_wake_completions:             ## @mlx4_cmd_wake_completions
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_mlx4_priv
	movq	%rax, %r15
	leaq	4(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	movl	$1, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CMD_STAT_INTERNAL_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	leaq	(%rbx,%r14), %r13
	movl	%eax, 8(%rbx,%r14)
	movl	(%rcx), %edi
	callq	_mlx4_status_to_errno
	movl	%eax, 4(%rbx,%r14)
	movq	%r13, %rdi
	callq	_complete
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rbx
	addq	$12, %r14
	incq	%r12
	jmp	LBB0_3
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_STAT_INTERNAL_ERR,4,2      ## @CMD_STAT_INTERNAL_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_cmd_wake_completions      ; -- Begin function mlx4_cmd_wake_completions
	.p2align	2
_mlx4_cmd_wake_completions:             ; @mlx4_cmd_wake_completions
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_mlx4_priv
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
Lloh0:
	adrp	x22, _CMD_STAT_INTERNAL_ERR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CMD_STAT_INTERNAL_ERR@GOTPAGEOFF]
	ldr	w0, [x22]
	str	w0, [x21, #8]
	bl	_mlx4_status_to_errno
	str	w0, [x21, #4]
	mov	x0, x21
	bl	_complete
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [x22]
	add	x24, x8, x21
	str	w9, [x24, #20]
	ldr	w0, [x22]
	bl	_mlx4_status_to_errno
	str	w0, [x24, #16]
	add	x0, x24, #12
	bl	_complete
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x21, x21, #12
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_STAT_INTERNAL_ERR,4,2      ; @CMD_STAT_INTERNAL_ERR
.subsections_via_symbols
