	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_open_xdpsq               ## -- Begin function mlx5e_open_xdpsq
	.p2align	4, 0x90
_mlx5e_open_xdpsq:                      ## @mlx5e_open_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	$0, -104(%rbp)
	movq	%rcx, %rdx
	movq	%r15, %rcx
	callq	_mlx5e_alloc_xdpsq
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	$1, -104(%rbp)
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	36(%r13), %eax
	movl	%eax, -80(%rbp)
	leaq	32(%r13), %rax
	movq	%rax, -88(%rbp)
	movq	(%r13), %rax
	movq	%rax, -96(%rbp)
	movq	_MLX5E_SQ_STATE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r13), %r12
	movq	%r12, %rsi
	callq	_set_bit
	movl	8(%rbx), %edi
	leaq	8(%r13), %rcx
	leaq	-104(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mlx5e_create_sq_rdy
	testl	%eax, %eax
	je	LBB0_2
## %bb.8:
	movl	%eax, %r14d
	movq	_MLX5E_SQ_STATE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%r13, %rdi
	callq	_mlx5e_free_xdpsq
	jmp	LBB0_9
LBB0_2:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_mlx5e_set_xmit_fp
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	jne	LBB0_9
## %bb.3:
	movq	_MLX5E_XDP_TX_DS_COUNT@GOTPCREL(%rip), %rax
	movq	(%r13), %rcx
	movq	_MLX5_INLINE_MODE_NONE@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movl	$0, %r15d
	cmpq	(%rdx), %rcx
	setne	%cl
	je	LBB0_5
## %bb.4:
	movq	_MLX5E_XDP_MIN_INLINE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
LBB0_5:
	movb	%cl, %bl
	addl	(%rax), %ebx
	leaq	20(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mlx5_wq_cyc_get_size
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	leal	-1(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %r12
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mlx5_wq_cyc_get_wqe
	movq	%rax, %r15
	movl	8(%r13), %edi
	shll	$8, %edi
	orl	-64(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_cpu_to_be32
	movl	%eax, 4(%r15)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be16
	movl	%eax, (%r15)
	movl	16(%r13), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%r15,%rcx,4)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	movq	%r15, %rdi
	callq	_mlx5_wq_cyc_get_size
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_9:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_SQ_STATE_ENABLED,4,2     ## @MLX5E_SQ_STATE_ENABLED
	.comm	_MLX5E_XDP_TX_DS_COUNT,4,2      ## @MLX5E_XDP_TX_DS_COUNT
	.comm	_MLX5_INLINE_MODE_NONE,8,3      ## @MLX5_INLINE_MODE_NONE
	.comm	_MLX5E_XDP_MIN_INLINE,4,2       ## @MLX5E_XDP_MIN_INLINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_open_xdpsq               ; -- Begin function mlx5e_open_xdpsq
	.p2align	2
_mlx5e_open_xdpsq:                      ; @mlx5e_open_xdpsq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x4
	mov	x20, x2
	mov	x21, x0
	str	xzr, [sp]
	mov	x2, x3
	mov	x3, x20
	bl	_mlx5e_alloc_xdpsq
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.1:
	mov	w8, #1
	str	w8, [sp]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	stp	w9, w8, [sp, #24]
	add	x8, x19, #32
	ldr	x9, [x19]
	stp	x9, x8, [sp, #8]
Lloh0:
	adrp	x24, _MLX5E_SQ_STATE_ENABLED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MLX5E_SQ_STATE_ENABLED@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x23, x19, #12
	mov	x1, x23
	bl	_set_bit
	ldr	w0, [x21, #8]
	add	x3, x19, #8
	mov	x2, sp
	mov	x1, x20
	bl	_mlx5e_create_sq_rdy
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	w0, [x24]
	mov	x1, x23
	bl	_clear_bit
	mov	x0, x19
	bl	_mlx5e_free_xdpsq
	b	LBB0_8
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mlx5e_set_xmit_fp
	ldr	w8, [x20]
	cbnz	w8, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _MLX5E_XDP_TX_DS_COUNT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX5E_XDP_TX_DS_COUNT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x20, x19
	ldr	x9, [x20], #20
Lloh5:
	adrp	x10, _MLX5_INLINE_MODE_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MLX5_INLINE_MODE_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _MLX5E_XDP_MIN_INLINE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MLX5E_XDP_MIN_INLINE@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w21, wzr, w11, eq
	cinc	w24, w8, ne
	mov	x0, x20
	bl	_mlx5_wq_cyc_get_size
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
	sub	w25, w24, #1
	movi.2s	v8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #24]
	mov	x0, x20
	mov	x1, x22
	bl	_mlx5_wq_cyc_get_wqe
	mov	x23, x0
	ldr	w8, [x19, #8]
	orr	w0, w24, w8, lsl #8
	bl	_cpu_to_be32
	mov	x27, x23
	str	w0, [x27, #4]!
	mov	x0, x21
	bl	_cpu_to_be16
	str	w0, [x23]
	ldr	w8, [x19, #16]
	str	w8, [x27, x25, lsl #2]
	str	d8, [x26, x22, lsl #3]
	add	x22, x22, #1
	mov	x0, x20
	bl	_mlx5_wq_cyc_get_size
	cmp	x22, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
	mov	w22, #0
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_SQ_STATE_ENABLED,4,2     ; @MLX5E_SQ_STATE_ENABLED
	.comm	_MLX5E_XDP_TX_DS_COUNT,4,2      ; @MLX5E_XDP_TX_DS_COUNT
	.comm	_MLX5_INLINE_MODE_NONE,8,3      ; @MLX5_INLINE_MODE_NONE
	.comm	_MLX5E_XDP_MIN_INLINE,4,2       ; @MLX5E_XDP_MIN_INLINE
.subsections_via_symbols
