	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_alloc_eqs
_mlx4_ib_alloc_eqs:                     ## @mlx4_ib_alloc_eqs
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$0, 4(%r15)
	jle	LBB0_2
## %bb.8:
	movl	$1, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%r12), %eax
	cmpl	4(%r15), %r12d
	movl	%eax, %r12d
	jge	LBB0_3
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mlx4_get_eqs_per_port
	testl	%eax, %eax
	jle	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r13d, %r13d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r14), %rax
	movq	%r15, %rdi
	movq	%r14, %r15
	movq	%r12, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movslq	%r12d, %r14
	leaq	(%rax,%r14,4), %rdx
	movl	%ebx, (%rax,%r14,4)
	movq	%rdi, %rbx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mlx4_assign_eq
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r15), %rax
	movl	$-1, (%rax,%r14,4)
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r15, %r14
	movq	%rbx, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	%r13d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mlx4_get_eqs_per_port
	cmpl	%eax, %r13d
	jge	LBB0_18
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %ebx
	cmpl	$2, %r12d
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mlx4_is_eq_shared
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	%r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_16
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	(%r15), %esi
	jge	LBB0_6
## %bb.4:
	movq	(%r14), %rax
	movslq	%esi, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r15), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_5
LBB0_6:
	movl	%esi, 8(%r14)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mlx4_ib_alloc_eqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_alloc_eqs
_mlx4_ib_alloc_eqs:                     ; @mlx4_ib_alloc_eqs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	w24, #0
	mov	w23, #0
	mov	w21, #1
	mov	w25, #-1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, w26
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w21, #1
	ldr	w9, [x20, #4]
	cmp	w21, w9
	mov	x21, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x0, x20
	mov	x1, x21
	bl	_mlx4_get_eqs_per_port
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x19]
	add	x2, x8, w23, sxtw #2
	str	w22, [x2]
	mov	x0, x20
	mov	x1, x21
	bl	_mlx4_assign_eq
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_10 Depth=2
	sxtw	x8, w23
	ldr	x9, [x19]
	str	w25, [x9, x8, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w26, w26, #1
	mov	x0, x20
	mov	x1, x21
	bl	_mlx4_get_eqs_per_port
	cmp	w26, w0
	b.ge	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w22, w24, w26
	cmp	w21, #2
	b.lo	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_mlx4_is_eq_shared
	cbnz	x0, LBB0_9
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=2
	add	w23, w23, #1
	b	LBB0_9
LBB0_13:
	mov	w23, #0
LBB0_14:
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_17
; %bb.15:
	ldr	x8, [x19]
	mov	x9, x23
	sxtw	x10, w9
	mov	w9, #-1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w9, [x8, x10, lsl #2]
	add	x11, x10, #1
	ldrsw	x12, [x20]
	mov	x10, x11
	cmp	x11, x12
	b.lt	LBB0_16
LBB0_17:
	str	w23, [x19, #8]
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mlx4_ib_alloc_eqs
.subsections_via_symbols
