	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_alloc_icosq
_mlx5e_alloc_icosq:                     ## @mlx5e_alloc_icosq
	.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
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_sqc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rsi), %esi
	movq	_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rbx
	leaq	24(%r15), %r12
	movq	%r14, 16(%r15)
	movl	(%rbx), %eax
	movl	%eax, 8(%r15)
	movl	(%r14), %edi
	callq	_cpu_to_node
	movl	%eax, (%r13)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_mlx5_wq_cyc_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_MLX5_SND_DBR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	%rax, 24(%r15)
	movl	(%r14), %edi
	callq	_cpu_to_node
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mlx5e_alloc_icosq_db
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mlx5_wq_destroy
	jmp	LBB0_4
LBB0_2:
	addq	$4, %r15
	movq	_mlx5e_icosq_err_cqe_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_WORK
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sqc,4,2                        ## @sqc
	.comm	_wq,8,3                         ## @wq
	.comm	_MLX5_SND_DBR,8,3               ## @MLX5_SND_DBR
	.comm	_mlx5e_icosq_err_cqe_work,4,2   ## @mlx5e_icosq_err_cqe_work
	.no_dead_strip	_mlx5e_alloc_icosq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_alloc_icosq
_mlx5e_alloc_icosq:                     ; @mlx5e_alloc_icosq
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _sqc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sqc@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x1, #4]
Lloh3:
	adrp	x8, _wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wq@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_MLX5_ADDR_OF
	mov	x22, x0
	ldr	x23, [x20, #8]
	add	x24, x19, #24
	str	x20, [x19, #16]
	ldr	w8, [x23]
	str	w8, [x19, #8]
	ldr	w0, [x20]
	bl	_cpu_to_node
	str	w0, [x21]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_mlx5_wq_cyc_create
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _MLX5_SND_DBR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_SND_DBR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #24]
	ldr	w0, [x20]
	bl	_cpu_to_node
	mov	x1, x0
	mov	x0, x19
	bl	_mlx5e_alloc_icosq_db
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mlx5_wq_destroy
	b	LBB0_4
LBB0_3:
	add	x0, x19, #4
Lloh9:
	adrp	x8, _mlx5e_icosq_err_cqe_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mlx5e_icosq_err_cqe_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_WORK
LBB0_4:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sqc,4,2                        ; @sqc
	.comm	_wq,8,3                         ; @wq
	.comm	_MLX5_SND_DBR,8,3               ; @MLX5_SND_DBR
	.comm	_mlx5e_icosq_err_cqe_work,4,2   ; @mlx5e_icosq_err_cqe_work
	.no_dead_strip	_mlx5e_alloc_icosq
.subsections_via_symbols
