	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_qp_sw_comp
_mlx4_ib_qp_sw_comp:                    ## @mlx4_ib_qp_sw_comp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	32(%rdi), %r9
	leaq	8(%rdi), %rax
	testl	%r8d, %r8d
	cmoveq	%rax, %r9
	movl	(%r9), %r11d
	subl	4(%r9), %r11d
	je	LBB0_4
## %bb.1:
	movl	(%rcx), %eax
	addq	$16, %rdx
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %r8
	movq	_MLX4_CQE_SYNDROME_WR_FLUSH_ERR@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %eax
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r9), %r14
	movslq	4(%r9), %rbx
	movslq	8(%r9), %rax
	decq	%rax
	andq	%rbx, %rax
	movl	(%r14,%rax,4), %eax
	movl	%eax, (%rdx)
	movl	(%r8), %eax
	movl	%eax, -4(%rdx)
	movl	(%r10), %eax
	movl	%eax, -8(%rdx)
	leal	1(%rbx), %eax
	movl	%eax, 4(%r9)
	movl	(%rcx), %eax
	incl	%eax
	movl	%eax, (%rcx)
	movq	%rdi, -16(%rdx)
	addq	$24, %rdx
	decl	%r11d
	jne	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.comm	_MLX4_CQE_SYNDROME_WR_FLUSH_ERR,4,2 ## @MLX4_CQE_SYNDROME_WR_FLUSH_ERR
	.no_dead_strip	_mlx4_ib_qp_sw_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_qp_sw_comp
_mlx4_ib_qp_sw_comp:                    ; @mlx4_ib_qp_sw_comp
	.cfi_startproc
; %bb.0:
	add	x8, x0, #32
	add	x9, x0, #8
	cmp	w4, #0
	csel	x8, x9, x8, eq
	ldp	w9, w10, [x8]
	subs	w9, w9, w10
	b.eq	LBB0_4
; %bb.1:
	ldr	w13, [x3]
	add	x10, x2, #16
Lloh0:
	adrp	x11, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x12, _MLX4_CQE_SYNDROME_WR_FLUSH_ERR@GOTPAGE
Lloh3:
	ldr	x12, [x12, _MLX4_CQE_SYNDROME_WR_FLUSH_ERR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w13, w1
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x13, [x8, #16]
	ldp	w14, w15, [x8, #4]
	sub	w15, w15, #1
	and	w15, w15, w14
	ldr	w13, [x13, w15, sxtw #2]
	str	w13, [x10]
	ldr	w13, [x11]
	stur	w13, [x10, #-4]
	ldr	w13, [x12]
	stur	w13, [x10, #-8]
	add	w13, w14, #1
	str	w13, [x8, #4]
	ldr	w13, [x3]
	add	w13, w13, #1
	str	w13, [x3]
	stur	x0, [x10, #-16]
	add	x10, x10, #24
	subs	w9, w9, #1
	b.ne	LBB0_2
LBB0_4:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.comm	_MLX4_CQE_SYNDROME_WR_FLUSH_ERR,4,2 ; @MLX4_CQE_SYNDROME_WR_FLUSH_ERR
	.no_dead_strip	_mlx4_ib_qp_sw_comp
.subsections_via_symbols
