	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_alloc_txqsq
_mlx5e_alloc_txqsq:                     ## @mlx5e_alloc_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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %rbx
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_sqc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %esi
	movq	_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	40(%r15), %r13
	movl	32(%r15), %eax
	movl	%eax, 92(%rbx)
	movl	28(%r15), %eax
	movl	%eax, 88(%rbx)
	leaq	4(%r13), %rax
	movq	%rax, 80(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 72(%rbx)
	movq	%r15, 64(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movl	%r12d, 8(%rbx)
	movl	(%r13), %eax
	movl	%eax, 56(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 52(%rbx)
	movl	4(%r14), %esi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_MLX5E_SW2HW_MTU
	movl	%eax, 48(%rbx)
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movq	8(%rcx), %rcx
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	shlq	$2, %rdx
	addq	(%rcx,%rax,8), %rdx
	movq	%rdx, 40(%rbx)
	movq	_MLX5E_SQ_STOP_ROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	32(%rbx), %rdi
	movq	_mlx5e_tx_err_cqe_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_wqe_vlan_insert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_MLX5_CAP_ETH
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %rsi
	callq	_set_bit
LBB0_2:
	leaq	96(%rbx), %r12
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_MLX5_IPSEC_DEV
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MLX5E_SQ_STATE_IPSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %rsi
	callq	_set_bit
LBB0_4:
	movl	8(%r15), %edi
	callq	_cpu_to_node
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi)
	leaq	12(%rbx), %r14
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_mlx5_wq_cyc_create
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	_MLX5_SND_DBR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	%rax, 96(%rbx)
	movl	8(%r15), %edi
	callq	_cpu_to_node
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mlx5e_alloc_txqsq_db
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mlx5_wq_destroy
	jmp	LBB0_8
LBB0_6:
	leaq	20(%rbx), %rdi
	movq	_mlx5e_tx_dim_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %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	_MLX5E_SQ_STOP_ROOM,4,2         ## @MLX5E_SQ_STOP_ROOM
	.comm	_mlx5e_tx_err_cqe_work,4,2      ## @mlx5e_tx_err_cqe_work
	.comm	_wqe_vlan_insert,4,2            ## @wqe_vlan_insert
	.comm	_MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE,4,2 ## @MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE
	.comm	_MLX5E_SQ_STATE_IPSEC,4,2       ## @MLX5E_SQ_STATE_IPSEC
	.comm	_MLX5_SND_DBR,8,3               ## @MLX5_SND_DBR
	.comm	_mlx5e_tx_dim_work,4,2          ## @mlx5e_tx_dim_work
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_MLX5E_SQ_STATE_TLS,4,2         ## @MLX5E_SQ_STATE_TLS
	.comm	_MLX5E_SQ_TLS_ROOM,8,3          ## @MLX5E_SQ_TLS_ROOM
	.comm	_TLS_MAX_PAYLOAD_SIZE,4,2       ## @TLS_MAX_PAYLOAD_SIZE
	.no_dead_strip	_mlx5e_alloc_txqsq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_alloc_txqsq
_mlx5e_alloc_txqsq:                     ; @mlx5e_alloc_txqsq
	.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	x26, x5
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x27, x1
	mov	x21, 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	x23, x0
	ldr	x24, [x21, #40]
	ldur	d0, [x21, #28]
	str	d0, [x19, #88]
	mov	x8, x24
	ldr	w9, [x8], #4
	add	x25, x19, #96
	str	x8, [x19, #80]
	ldr	w8, [x21, #24]
	str	w8, [x19, #72]
	str	x21, [x19, #64]
	ldr	x8, [x21]
	str	x8, [x19]
	str	w27, [x19, #8]
	ldp	w1, w8, [x20, #4]
	stp	w8, w9, [x19, #52]
	mov	x0, x20
	bl	_MLX5E_SW2HW_MTU
	str	w0, [x19, #48]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	add	x8, x8, w26, sxtw #2
	str	x8, [x19, #40]
Lloh6:
	adrp	x8, _MLX5E_SQ_STOP_ROOM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5E_SQ_STOP_ROOM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	add	x0, x19, #32
Lloh9:
	adrp	x8, _mlx5e_tx_err_cqe_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mlx5e_tx_err_cqe_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh12:
	adrp	x8, _wqe_vlan_insert@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wqe_vlan_insert@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_MLX5_CAP_ETH
	cbnz	w0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_set_bit
LBB0_2:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_MLX5_IPSEC_DEV
	cbz	x0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _MLX5E_SQ_STATE_IPSEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLX5E_SQ_STATE_IPSEC@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_set_bit
LBB0_4:
	ldr	w0, [x21, #8]
	bl	_cpu_to_node
	str	w0, [x22]
	add	x26, x19, #12
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	mov	x3, x25
	mov	x4, x26
	bl	_mlx5_wq_cyc_create
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x19, #96]
Lloh21:
	adrp	x9, _MLX5_SND_DBR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MLX5_SND_DBR@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #96]
	ldr	w0, [x21, #8]
	bl	_cpu_to_node
	mov	x1, x0
	mov	x0, x19
	bl	_mlx5e_alloc_txqsq_db
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x26
	bl	_mlx5_wq_destroy
	b	LBB0_8
LBB0_7:
	add	x0, x19, #20
Lloh24:
	adrp	x8, _mlx5e_tx_dim_work@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mlx5e_tx_dim_work@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w8, [x20]
	str	w8, [x19, #16]
LBB0_8:
	mov	x0, x22
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_sqc,4,2                        ; @sqc
	.comm	_wq,8,3                         ; @wq
	.comm	_MLX5E_SQ_STOP_ROOM,4,2         ; @MLX5E_SQ_STOP_ROOM
	.comm	_mlx5e_tx_err_cqe_work,4,2      ; @mlx5e_tx_err_cqe_work
	.comm	_wqe_vlan_insert,4,2            ; @wqe_vlan_insert
	.comm	_MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE,4,2 ; @MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE
	.comm	_MLX5E_SQ_STATE_IPSEC,4,2       ; @MLX5E_SQ_STATE_IPSEC
	.comm	_MLX5_SND_DBR,8,3               ; @MLX5_SND_DBR
	.comm	_mlx5e_tx_dim_work,4,2          ; @mlx5e_tx_dim_work
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_MLX5E_SQ_STATE_TLS,4,2         ; @MLX5E_SQ_STATE_TLS
	.comm	_MLX5E_SQ_TLS_ROOM,8,3          ; @MLX5E_SQ_TLS_ROOM
	.comm	_TLS_MAX_PAYLOAD_SIZE,4,2       ; @TLS_MAX_PAYLOAD_SIZE
	.no_dead_strip	_mlx5e_alloc_txqsq
.subsections_via_symbols
