	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_tx_fqids
_update_tx_fqids:                       ## @update_tx_fqids
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_DPNI_ENQUEUE_FQID_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DPNI_ENQUEUE_FQID_VER_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dpaa2_eth_cmp_dpni_ver
	testq	%rax, %rax
	js	LBB0_13
## %bb.1:
	movq	_dpaa2_eth_enqueue_fq@GOTPCREL(%rip), %rax
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.2:
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	24(%r14), %r15
	leaq	(%r12,%r12,2), %rbx
	movq	(%r15,%rbx,8), %rax
	movq	_DPAA2_TX_CONF_FQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_dpaa2_eth_tc_count
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%rbx,8), %r15
	addq	$16, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%r14), %edx
	movl	16(%r14), %edi
	movq	_DPNI_QUEUE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r9d
	xorl	%esi, %esi
	movl	%ebx, %r8d
	leaq	-64(%rbp), %rax
	pushq	%rax
	pushq	%r13
	callq	_dpni_get_queue
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-64(%rbp), %rax
	movq	-8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	movq	%r14, %rdi
	callq	_dpaa2_eth_tc_count
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_10
LBB0_9:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movq	_dpaa2_eth_enqueue_qd@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_dpaa2_eth_enqueue_fq@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DPNI_ENQUEUE_FQID_VER_MAJOR,4,2 ## @DPNI_ENQUEUE_FQID_VER_MAJOR
	.comm	_DPNI_ENQUEUE_FQID_VER_MINOR,4,2 ## @DPNI_ENQUEUE_FQID_VER_MINOR
	.comm	_DPAA2_TX_CONF_FQ,8,3           ## @DPAA2_TX_CONF_FQ
	.comm	_DPNI_QUEUE_TX,4,2              ## @DPNI_QUEUE_TX
	.comm	_dpaa2_eth_enqueue_fq,4,2       ## @dpaa2_eth_enqueue_fq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading Tx FQID, fallback to QDID-based enqueue\n"

	.comm	_dpaa2_eth_enqueue_qd,4,2       ## @dpaa2_eth_enqueue_qd
	.no_dead_strip	_update_tx_fqids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_tx_fqids
_update_tx_fqids:                       ; @update_tx_fqids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _DPNI_ENQUEUE_FQID_VER_MAJOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPNI_ENQUEUE_FQID_VER_MAJOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DPNI_ENQUEUE_FQID_VER_MINOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPNI_ENQUEUE_FQID_VER_MINOR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_dpaa2_eth_cmp_dpni_ver
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x22, #0
	mov	w23, #24
Lloh6:
	adrp	x24, _DPAA2_TX_CONF_FQ@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DPAA2_TX_CONF_FQ@GOTPAGEOFF]
Lloh8:
	adrp	x25, _DPNI_QUEUE_TX@GOTPAGE
Lloh9:
	ldr	x25, [x25, _DPNI_QUEUE_TX@GOTPAGEOFF]
Lloh10:
	adrp	x21, _dpaa2_eth_enqueue_fq@GOTPAGE
Lloh11:
	ldr	x21, [x21, _dpaa2_eth_enqueue_fq@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x26, [x19, #24]
	mul	x8, x22, x23
	ldr	x8, [x26, x8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_dpaa2_eth_tc_count
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	madd	x8, x22, x23, x26
	add	x26, x8, #16
	add	x27, x8, #8
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w2, w0, [x19, #12]
	ldr	w3, [x25]
	ldr	w5, [x26]
	add	x6, sp, #8
	add	x7, sp, #16
	mov	w1, #0
	mov	x4, x20
	bl	_dpni_get_queue
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #16]
	ldr	x9, [x27]
	str	x8, [x9, x20, lsl #3]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x20, x20, #1
	mov	x0, x19
	bl	_dpaa2_eth_tc_count
	cmp	x20, w0, sxtw
	b.lt	LBB0_7
	b	LBB0_3
LBB0_10:
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
Lloh14:
	adrp	x21, _dpaa2_eth_enqueue_qd@GOTPAGE
Lloh15:
	ldr	x21, [x21, _dpaa2_eth_enqueue_qd@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x21, _dpaa2_eth_enqueue_fq@GOTPAGE
Lloh17:
	ldr	x21, [x21, _dpaa2_eth_enqueue_fq@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x21]
	str	w8, [x19, #4]
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DPNI_ENQUEUE_FQID_VER_MAJOR,4,2 ; @DPNI_ENQUEUE_FQID_VER_MAJOR
	.comm	_DPNI_ENQUEUE_FQID_VER_MINOR,4,2 ; @DPNI_ENQUEUE_FQID_VER_MINOR
	.comm	_DPAA2_TX_CONF_FQ,8,3           ; @DPAA2_TX_CONF_FQ
	.comm	_DPNI_QUEUE_TX,4,2              ; @DPNI_QUEUE_TX
	.comm	_dpaa2_eth_enqueue_fq,4,2       ; @dpaa2_eth_enqueue_fq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading Tx FQID, fallback to QDID-based enqueue\n"

	.comm	_dpaa2_eth_enqueue_qd,4,2       ; @dpaa2_eth_enqueue_qd
	.no_dead_strip	_update_tx_fqids
.subsections_via_symbols
