	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sw_comp
_sw_comp:                               ## @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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	32(%rdi), %r10
	leaq	8(%rdi), %rax
	testl	%r8d, %r8d
	cmoveq	%rax, %r10
	movl	(%r10), %r9d
	movl	4(%r10), %r8d
	subl	%r8d, %r9d
	je	LBB0_7
## %bb.1:
	movl	(%rcx), %eax
	cmpl	%esi, %eax
	jge	LBB0_6
## %bb.2:
	movq	16(%r10), %r11
	movslq	8(%r10), %r15
	decq	%r15
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	_MLX5_CQE_SYNDROME_WR_FLUSH_ERR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	addq	$16, %rdx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r8d, %r8
	movq	%rax, %r13
	movq	%r15, %rax
	andq	%r8, %rax
	movl	(%r11,%rax,4), %eax
	movl	%eax, (%rdx)
	movq	%r13, %rax
	movl	%r14d, -4(%rdx)
	movl	%r12d, -8(%rdx)
	incl	%r8d
	movl	%r8d, 4(%r10)
	movq	%rdi, -16(%rdx)
	leal	1(%rbx), %r13d
	cmpl	%r9d, %ebx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %ebx
	addq	$24, %rdx
	cmpl	%esi, %ebx
	movl	%r13d, %ebx
	jl	LBB0_3
LBB0_5:
	addl	%r13d, %eax
	decl	%eax
LBB0_6:
	movl	%eax, (%rcx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.comm	_MLX5_CQE_SYNDROME_WR_FLUSH_ERR,4,2 ## @MLX5_CQE_SYNDROME_WR_FLUSH_ERR
	.no_dead_strip	_sw_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sw_comp
_sw_comp:                               ; @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	w11, w9, w10
	b.eq	LBB0_7
; %bb.1:
	ldr	w9, [x3]
	cmp	w9, w1
	b.ge	LBB0_6
; %bb.2:
	mov	w15, #0
	ldr	x12, [x8, #16]
	ldr	w13, [x8, #8]
Lloh0:
	adrp	x14, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh1:
	ldr	x14, [x14, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
	sub	w13, w13, #1
Lloh2:
	ldr	w14, [x14]
Lloh3:
	adrp	x16, _MLX5_CQE_SYNDROME_WR_FLUSH_ERR@GOTPAGE
Lloh4:
	ldr	x16, [x16, _MLX5_CQE_SYNDROME_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w16, [x16]
	add	x17, x2, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w2, w10, w15
	and	w4, w13, w2
	ldr	w4, [x12, w4, sxtw #2]
	stp	w14, w4, [x17, #-4]
	stur	w16, [x17, #-8]
	add	w2, w2, #1
	str	w2, [x8, #4]
	stur	x0, [x17, #-16]
	add	w2, w15, #1
	cmp	w2, w11
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w15, w9, w15
	add	w4, w15, #1
	add	x17, x17, #24
	mov	x15, x2
	cmp	w4, w1
	b.lt	LBB0_3
LBB0_5:
	add	w9, w9, w2
LBB0_6:
	str	w9, [x3]
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.comm	_MLX5_CQE_SYNDROME_WR_FLUSH_ERR,4,2 ; @MLX5_CQE_SYNDROME_WR_FLUSH_ERR
	.no_dead_strip	_sw_comp
.subsections_via_symbols
