	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_hairpin_create_queues
_mlx5_hairpin_create_queues:            ## @mlx5_hairpin_create_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
	pushq	%rax
	.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	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movq	8(%r14), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rsi
	callq	_mlx5_hairpin_create_rq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
## %bb.4:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edi
	movq	24(%r14), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rsi
	callq	_mlx5_hairpin_create_sq
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_10:
	movl	%eax, %r13d
	testl	%r12d, %r12d
	jg	LBB0_16
	jmp	LBB0_18
LBB0_12:
	movl	%eax, %r13d
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edi
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_mlx5_core_destroy_sq
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_14
LBB0_15:
	movl	(%r14), %r12d
	testl	%r12d, %r12d
	jle	LBB0_18
LBB0_16:
	movl	%r12d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_mlx5_core_destroy_rq
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_17
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx5_hairpin_create_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_create_queues
_mlx5_hairpin_create_queues:            ; @mlx5_hairpin_create_queues
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	x23, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	add	x2, x8, x23
	mov	x1, x21
	bl	_mlx5_hairpin_create_rq
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_2
; %bb.4:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x23, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	add	x2, x8, x23
	mov	x1, x21
	bl	_mlx5_hairpin_create_sq
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w20, #0
	b	LBB0_16
LBB0_9:
	mov	x20, x0
	cmp	w22, #1
	b.ge	LBB0_14
	b	LBB0_16
LBB0_10:
	mov	x20, x0
	cbz	w22, 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]
	bl	_mlx5_core_destroy_sq
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_12
LBB0_13:
	ldr	w22, [x19]
	cmp	w22, #1
	b.lt	LBB0_16
LBB0_14:
	mov	x21, #0
	mov	w8, w22
	lsl	x22, x8, #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x21]
	bl	_mlx5_core_destroy_rq
	add	x21, x21, #4
	cmp	x22, x21
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x20
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx5_hairpin_create_queues
.subsections_via_symbols
