	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_start_txq
_qede_start_txq:                        ## @qede_start_txq
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	48(%rdx), %rbx
	movq	%rbx, %rdi
	callq	_qed_chain_get_pbl_phys
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_qed_chain_get_page_cnt
	movl	%eax, %ebx
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	cmpq	$0, 40(%r13)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_QEDE_TXQ_XDP_TO_IDX
	jmp	LBB0_3
LBB0_2:
	movl	28(%r13), %eax
LBB0_3:
	movl	%eax, -56(%rbp)
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)
	movq	%r15, -88(%rbp)
	movl	32(%r13), %eax
	movl	%eax, -72(%rbp)
	movq	8(%r14), %rax
	movl	(%r14), %edi
	leaq	-88(%rbp), %rdx
	leaq	-128(%rbp), %r9
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	28(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_DP_ERR
	jmp	LBB0_6
LBB0_5:
	movl	-116(%rbp), %eax
	movl	%eax, 8(%r13)
	movl	-120(%rbp), %eax
	movl	%eax, 24(%r13)
	movq	(%r12), %rax
	movq	(%rax), %rax
	shlq	$2, %r15
	addq	(%rax), %r15
	movq	%r15, 16(%r13)
	movl	4(%r13), %edi
	movq	_ETH_DB_DATA_DEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DB_DEST_XCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SET_FIELD
	movl	4(%r13), %edi
	movq	_ETH_DB_DATA_AGG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DB_AGG_CMD_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SET_FIELD
	movl	4(%r13), %edi
	movq	_ETH_DB_DATA_AGG_VAL_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DQ_XCM_ETH_TX_BD_PROD_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SET_FIELD
	movq	_DQ_XCM_ETH_DQ_CF_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movl	(%r14), %edi
	movl	8(%r13), %esi
	movq	_DB_REC_WIDTH_32B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DB_REC_KERNEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%r13, %rdx
	callq	*(%rax)
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start TXQ #%d failed %d\n"

	.comm	_ETH_DB_DATA_DEST,4,2           ## @ETH_DB_DATA_DEST
	.comm	_DB_DEST_XCM,4,2                ## @DB_DEST_XCM
	.comm	_ETH_DB_DATA_AGG_CMD,4,2        ## @ETH_DB_DATA_AGG_CMD
	.comm	_DB_AGG_CMD_SET,4,2             ## @DB_AGG_CMD_SET
	.comm	_ETH_DB_DATA_AGG_VAL_SEL,4,2    ## @ETH_DB_DATA_AGG_VAL_SEL
	.comm	_DQ_XCM_ETH_TX_BD_PROD_CMD,4,2  ## @DQ_XCM_ETH_TX_BD_PROD_CMD
	.comm	_DQ_XCM_ETH_DQ_CF_CMD,4,2       ## @DQ_XCM_ETH_DQ_CF_CMD
	.comm	_DB_REC_WIDTH_32B,4,2           ## @DB_REC_WIDTH_32B
	.comm	_DB_REC_KERNEL,4,2              ## @DB_REC_KERNEL
	.no_dead_strip	_qede_start_txq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_start_txq
_qede_start_txq:                        ; @qede_start_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	add	x25, x2, #48
	mov	x0, x25
	bl	_qed_chain_get_pbl_phys
	mov	x24, x0
	mov	x0, x25
	bl	_qed_chain_get_page_cnt
	mov	x25, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_QEDE_TXQ_XDP_TO_IDX
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #28]
LBB0_3:
	str	w0, [sp, #72]
	ldr	x8, [x22]
	str	x8, [sp, #64]
	str	x21, [sp, #40]
	ldr	w8, [x19, #32]
	str	w8, [sp, #56]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x20]
	add	x2, sp, #40
	mov	x5, sp
	mov	x1, x23
	mov	x3, x24
	mov	x4, x25
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	x23, x0
	ldr	w2, [x19, #28]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x23
	bl	_DP_ERR
	b	LBB0_6
LBB0_5:
	ldp	w9, w8, [sp, #8]
	str	w8, [x19, #8]
	str	w9, [x19, #24]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, x21, lsl #2
	str	x8, [x19, #16]
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _ETH_DB_DATA_DEST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_DB_DATA_DEST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DB_DEST_XCM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DB_DEST_XCM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_SET_FIELD
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _ETH_DB_DATA_AGG_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_DB_DATA_AGG_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _DB_AGG_CMD_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DB_AGG_CMD_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_SET_FIELD
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x8, _ETH_DB_DATA_AGG_VAL_SEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_DB_DATA_AGG_VAL_SEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _DQ_XCM_ETH_TX_BD_PROD_CMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DQ_XCM_ETH_TX_BD_PROD_CMD@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_SET_FIELD
Lloh20:
	adrp	x8, _DQ_XCM_ETH_DQ_CF_CMD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DQ_XCM_ETH_DQ_CF_CMD@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
Lloh23:
	adrp	x9, _DB_REC_WIDTH_32B@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DB_REC_WIDTH_32B@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x9]
Lloh26:
	adrp	x9, _DB_REC_KERNEL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DB_REC_KERNEL@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x9]
	mov	x2, x19
	blr	x8
	mov	x23, x0
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start TXQ #%d failed %d\n"

	.comm	_ETH_DB_DATA_DEST,4,2           ; @ETH_DB_DATA_DEST
	.comm	_DB_DEST_XCM,4,2                ; @DB_DEST_XCM
	.comm	_ETH_DB_DATA_AGG_CMD,4,2        ; @ETH_DB_DATA_AGG_CMD
	.comm	_DB_AGG_CMD_SET,4,2             ; @DB_AGG_CMD_SET
	.comm	_ETH_DB_DATA_AGG_VAL_SEL,4,2    ; @ETH_DB_DATA_AGG_VAL_SEL
	.comm	_DQ_XCM_ETH_TX_BD_PROD_CMD,4,2  ; @DQ_XCM_ETH_TX_BD_PROD_CMD
	.comm	_DQ_XCM_ETH_DQ_CF_CMD,4,2       ; @DQ_XCM_ETH_DQ_CF_CMD
	.comm	_DB_REC_WIDTH_32B,4,2           ; @DB_REC_WIDTH_32B
	.comm	_DB_REC_KERNEL,4,2              ; @DB_REC_KERNEL
	.no_dead_strip	_qede_start_txq
.subsections_via_symbols
