	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_alloc_xdpsq
_mlx5e_alloc_xdpsq:                     ## @mlx5e_alloc_xdpsq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_sqc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rcx), %esi
	movq	_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rcx
	leaq	56(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	28(%r14), %eax
	movl	%eax, 52(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 48(%rbx)
	movq	%r14, 40(%rbx)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, 32(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 28(%rbx)
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_MLX5E_SW2HW_MTU
	movl	%eax, 24(%rbx)
	movq	%r13, 8(%rbx)
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,4), %rax
	addq	$8, %rax
	jmp	LBB0_5
LBB0_2:
	movq	(%r14), %rcx
	movq	16(%r14), %rax
	movq	(%rax), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$4, %rax
	jmp	LBB0_5
LBB0_4:
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rax
LBB0_5:
	movq	%rax, 16(%rbx)
	movl	8(%r14), %edi
	callq	_cpu_to_node
	movl	%eax, (%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_mlx5_wq_cyc_create
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_MLX5_SND_DBR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	%rax, 56(%rbx)
	movl	8(%r14), %edi
	callq	_cpu_to_node
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mlx5e_alloc_xdpsq_db
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mlx5_wq_destroy
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$40, %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
	.no_dead_strip	_mlx5e_alloc_xdpsq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_alloc_xdpsq
_mlx5e_alloc_xdpsq:                     ; @mlx5e_alloc_xdpsq
	.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
	mov	x25, x5
	mov	x19, x4
	mov	x21, x3
	mov	x26, x2
	mov	x27, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _sqc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sqc@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x3, #4]
Lloh3:
	adrp	x8, _wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wq@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_MLX5_ADDR_OF
	mov	x22, x0
	ldr	x24, [x20, #32]
	add	x23, x19, #56
	ldr	d0, [x20, #24]
	str	d0, [x19, #48]
	str	x20, [x19, #40]
	ldr	w8, [x24]
	ldp	w1, w9, [x27]
	stp	w9, w8, [x19, #28]
	mov	x0, x27
	bl	_MLX5E_SW2HW_MTU
	str	w0, [x19, #24]
	str	x26, [x19, #8]
	cbz	x26, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x20]
	mov	w10, #12
	madd	x8, x9, x10, x8
	add	x8, x8, #8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x20]
	mov	w10, #12
	madd	x10, x9, x10, x8
	mov	w11, #12
	madd	x8, x9, x11, x8
	add	x8, x8, #4
	cmp	w25, #0
	csel	x8, x10, x8, eq
LBB0_3:
	str	x8, [x19, #16]
	ldr	w0, [x20, #8]
	bl	_cpu_to_node
	str	w0, [x21]
	mov	x0, x24
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	bl	_mlx5_wq_cyc_create
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x19, #56]
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, #56]
	ldr	w0, [x20, #8]
	bl	_cpu_to_node
	mov	x1, x0
	mov	x0, x19
	bl	_mlx5e_alloc_xdpsq_db
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mlx5_wq_destroy
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sqc,4,2                        ; @sqc
	.comm	_wq,8,3                         ; @wq
	.comm	_MLX5_SND_DBR,8,3               ; @MLX5_SND_DBR
	.no_dead_strip	_mlx5e_alloc_xdpsq
.subsections_via_symbols
