	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_open_txqsq
_mlx5e_open_txqsq:                      ## @mlx5e_open_txqsq
	.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
	movq	%r9, %r13
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	16(%rbp), %r9d
	movq	$0, -64(%rbp)
	movl	%edx, %esi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	movq	%r13, %r8
	callq	_mlx5e_alloc_txqsq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -56(%rbp)
	movl	$1, -80(%rbp)
	movl	24(%r13), %eax
	movl	%eax, -64(%rbp)
	leaq	20(%r13), %rax
	movq	%rax, -72(%rbp)
	movl	16(%r13), %eax
	movl	%eax, -76(%rbp)
	movl	16(%r15), %edi
	leaq	12(%r13), %rcx
	leaq	-80(%rbp), %rdx
	movq	%r12, %rsi
	callq	_mlx5e_create_sq_rdy
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mlx5e_free_txqsq
	jmp	LBB0_7
LBB0_2:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_mlx5e_set_sq_maxrate
LBB0_4:
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.5:
	movq	_MLX5E_SQ_STATE_AM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, 8(%r13)
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_SQ_STATE_AM,4,2          ## @MLX5E_SQ_STATE_AM
	.no_dead_strip	_mlx5e_open_txqsq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_open_txqsq
_mlx5e_open_txqsq:                      ; @mlx5e_open_txqsq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x5
	mov	x22, x4
	mov	x20, x3
	mov	x24, x1
	mov	x21, x0
	str	xzr, [sp, #16]
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	mov	x5, x6
	bl	_mlx5e_alloc_txqsq
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.1:
	str	x24, [sp, #24]
	mov	w8, #1
	ldr	w9, [x19, #24]
	str	w9, [sp, #16]
	add	x9, x19, #20
	str	x9, [sp, #8]
	ldr	w9, [x19, #16]
	stp	w8, w9, [sp]
	ldr	w0, [x21, #16]
	add	x3, x19, #12
	mov	x2, sp
	mov	x1, x22
	bl	_mlx5e_create_sq_rdy
	cbz	w0, LBB0_3
; %bb.2:
	mov	x23, x0
	mov	x0, x19
	bl	_mlx5e_free_txqsq
	b	LBB0_8
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x2, [x8, x9, lsl #3]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_mlx5e_set_sq_maxrate
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _MLX5E_SQ_STATE_AM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5E_SQ_STATE_AM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	w23, #0
	ldr	w8, [x19, #8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
	mov	w23, #0
LBB0_8:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_SQ_STATE_AM,4,2          ; @MLX5E_SQ_STATE_AM
	.no_dead_strip	_mlx5e_open_txqsq
.subsections_via_symbols
