	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_hairpin_pair_queues
_mlx5_hairpin_pair_queues:              ## @mlx5_hairpin_pair_queues
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	movq	_MLX5_SQC_STATE_RST@GOTPCREL(%rip), %rcx
	movq	_MLX5_SQC_STATE_RDY@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rax
	movl	(%rax,%r15,4), %ebx
	movl	(%rcx), %r14d
	movl	(%rdx), %r13d
	movl	32(%r12), %edi
	movq	_vhca_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movq	24(%r12), %rcx
	movl	(%rcx,%r15,4), %r9d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_mlx5_hairpin_modify_sq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	movq	_MLX5_SQC_STATE_RST@GOTPCREL(%rip), %rcx
	movq	_MLX5_SQC_STATE_RDY@GOTPCREL(%rip), %rdx
	jl	LBB0_2
## %bb.4:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	xorl	%r15d, %r15d
	movq	_MLX5_RQC_STATE_RST@GOTPCREL(%rip), %rcx
	movq	_MLX5_RQC_STATE_RDY@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	24(%r12), %rax
	movl	(%rax,%r15,4), %r14d
	movq	%r12, %rbx
	movq	%rcx, %r13
	movl	(%rcx), %r12d
	movl	(%rdx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	movq	_vhca_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movq	8(%rbx), %rcx
	movl	(%rcx,%r15,4), %r9d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_mlx5_hairpin_modify_rq
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	movq	%rbx, %r12
	movq	%r13, %rcx
	movq	_MLX5_RQC_STATE_RDY@GOTPCREL(%rip), %rdx
	jl	LBB0_6
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_10:
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_12:
	movl	%eax, %r14d
	testl	%r15d, %r15d
	movq	%rbx, %r12
	je	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %edi
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	_MLX5_RQC_STATE_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlx5_hairpin_modify_rq
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_14
LBB0_15:
	movl	(%r12), %r15d
LBB0_16:
	movq	_MLX5_SQC_STATE_RST@GOTPCREL(%rip), %rcx
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.17:
	movl	%r15d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_MLX5_SQC_STATE_RDY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %edi
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r13), %edx
	movq	%rcx, %r15
	movl	(%rcx), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlx5_hairpin_modify_sq
	movq	%r15, %rcx
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_18
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_SQC_STATE_RST,4,2         ## @MLX5_SQC_STATE_RST
	.comm	_MLX5_SQC_STATE_RDY,4,2         ## @MLX5_SQC_STATE_RDY
	.comm	_vhca_id,4,2                    ## @vhca_id
	.comm	_MLX5_RQC_STATE_RST,4,2         ## @MLX5_RQC_STATE_RST
	.comm	_MLX5_RQC_STATE_RDY,4,2         ## @MLX5_RQC_STATE_RDY
	.no_dead_strip	_mlx5_hairpin_pair_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_hairpin_pair_queues
_mlx5_hairpin_pair_queues:              ; @mlx5_hairpin_pair_queues
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x27, #0
Lloh0:
	adrp	x24, _MLX5_SQC_STATE_RST@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MLX5_SQC_STATE_RST@GOTPAGEOFF]
Lloh2:
	adrp	x25, _MLX5_SQC_STATE_RDY@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MLX5_SQC_STATE_RDY@GOTPAGEOFF]
Lloh4:
	adrp	x26, _vhca_id@GOTPAGE
Lloh5:
	ldr	x26, [x26, _vhca_id@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x19, #16]
	ldr	x8, [x19, #8]
	lsl	x28, x27, #2
	ldr	w21, [x8, x28]
	ldr	w22, [x24]
	ldr	w23, [x25]
	ldr	w0, [x19, #32]
	ldr	w1, [x26]
	bl	_MLX5_CAP_GEN
	mov	x4, x0
	ldr	x8, [x19, #24]
	ldr	w5, [x8, x28]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_mlx5_hairpin_modify_sq
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19]
	cmp	x27, x8
	b.lt	LBB0_2
; %bb.4:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x27, #0
Lloh6:
	adrp	x9, _MLX5_RQC_STATE_RST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_RQC_STATE_RST@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MLX5_RQC_STATE_RDY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MLX5_RQC_STATE_RDY@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x19, #32]
	ldr	x8, [x19, #24]
	lsl	x28, x27, #2
	ldr	w21, [x8, x28]
	mov	x24, x9
	ldr	w22, [x9]
	mov	x25, x10
	ldr	w23, [x10]
	ldr	w0, [x19, #16]
	ldr	w1, [x26]
	bl	_MLX5_CAP_GEN
	mov	x4, x0
	ldr	x8, [x19, #8]
	ldr	w5, [x8, x28]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_mlx5_hairpin_modify_rq
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19]
	cmp	x27, x8
	mov	x9, x24
	mov	x10, x25
	b.lt	LBB0_6
LBB0_8:
	mov	w20, #0
	b	LBB0_16
LBB0_9:
	mov	x20, x0
	cmp	w27, #1
	b.ge	LBB0_14
	b	LBB0_16
LBB0_10:
	mov	x20, x0
	cbz	w27, LBB0_13
; %bb.11:
	mov	x21, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x25]
	ldr	w3, [x24]
	mov	w4, #0
	mov	w5, #0
	bl	_mlx5_hairpin_modify_rq
	add	x21, x21, #1
	cmp	x27, x21
	b.ne	LBB0_12
LBB0_13:
	ldr	w27, [x19]
Lloh10:
	adrp	x24, _MLX5_SQC_STATE_RST@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MLX5_SQC_STATE_RST@GOTPAGEOFF]
Lloh12:
	adrp	x25, _MLX5_SQC_STATE_RDY@GOTPAGE
Lloh13:
	ldr	x25, [x25, _MLX5_SQC_STATE_RDY@GOTPAGEOFF]
	cmp	w27, #1
	b.lt	LBB0_16
LBB0_14:
	mov	x21, #0
	mov	w8, w27
	lsl	x22, x8, #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x21]
	ldr	w2, [x25]
	ldr	w3, [x24]
	mov	w4, #0
	mov	w5, #0
	bl	_mlx5_hairpin_modify_sq
	add	x21, x21, #4
	cmp	x22, x21
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_SQC_STATE_RST,4,2         ; @MLX5_SQC_STATE_RST
	.comm	_MLX5_SQC_STATE_RDY,4,2         ; @MLX5_SQC_STATE_RDY
	.comm	_vhca_id,4,2                    ; @vhca_id
	.comm	_MLX5_RQC_STATE_RST,4,2         ; @MLX5_RQC_STATE_RST
	.comm	_MLX5_RQC_STATE_RDY,4,2         ; @MLX5_RQC_STATE_RDY
	.no_dead_strip	_mlx5_hairpin_pair_queues
.subsections_via_symbols
