	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_hairpin_unpair_queues
_mlx5_hairpin_unpair_queues:            ## @mlx5_hairpin_unpair_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_MLX5_RQC_STATE_RDY@GOTPCREL(%rip), %r15
	movq	_MLX5_RQC_STATE_RST@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	40(%r14), %edi
	movq	32(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlx5_hairpin_modify_rq
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	cmpq	$0, 24(%r14)
	jne	LBB0_7
## %bb.4:
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_MLX5_SQC_STATE_RDY@GOTPCREL(%rip), %r15
	movq	_MLX5_SQC_STATE_RST@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlx5_hairpin_modify_sq
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_RQC_STATE_RDY,4,2         ## @MLX5_RQC_STATE_RDY
	.comm	_MLX5_RQC_STATE_RST,4,2         ## @MLX5_RQC_STATE_RST
	.comm	_MLX5_SQC_STATE_RDY,4,2         ## @MLX5_SQC_STATE_RDY
	.comm	_MLX5_SQC_STATE_RST,4,2         ## @MLX5_SQC_STATE_RST
	.no_dead_strip	_mlx5_hairpin_unpair_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_unpair_queues
_mlx5_hairpin_unpair_queues:            ; @mlx5_hairpin_unpair_queues
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _MLX5_RQC_STATE_RDY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MLX5_RQC_STATE_RDY@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MLX5_RQC_STATE_RST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MLX5_RQC_STATE_RST@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #40]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, x20, lsl #2]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w4, #0
	mov	w5, #0
	bl	_mlx5_hairpin_modify_rq
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x9, [x19, #24]
	cmp	x9, #0
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
Lloh4:
	adrp	x21, _MLX5_SQC_STATE_RDY@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MLX5_SQC_STATE_RDY@GOTPAGEOFF]
Lloh6:
	adrp	x22, _MLX5_SQC_STATE_RST@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MLX5_SQC_STATE_RST@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x20, lsl #2]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w4, #0
	mov	w5, #0
	bl	_mlx5_hairpin_modify_sq
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_RQC_STATE_RDY,4,2         ; @MLX5_RQC_STATE_RDY
	.comm	_MLX5_RQC_STATE_RST,4,2         ; @MLX5_RQC_STATE_RST
	.comm	_MLX5_SQC_STATE_RDY,4,2         ; @MLX5_SQC_STATE_RDY
	.comm	_MLX5_SQC_STATE_RST,4,2         ; @MLX5_SQC_STATE_RST
	.no_dead_strip	_mlx5_hairpin_unpair_queues
.subsections_via_symbols
