	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_assign_wq
_dpaa_assign_wq:                        ## @dpaa_assign_wq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	leal	-128(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	$5, 4(%rdi)
	popq	%rbp
	retq
LBB0_4:
	movl	8(%rdi), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_5:
	movq	_DPAA_TC_TXQ_NUM@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.6:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	$6, 4(%rdi)
	popq	%rbp
	retq
LBB0_8:
	movl	$1, 4(%rdi)
	popq	%rbp
	retq
LBB0_9:
	movl	$2, 4(%rdi)
	popq	%rbp
	retq
LBB0_10:
	movl	$0, 4(%rdi)
	popq	%rbp
	retq
LBB0_11:
	movq	_DPAA_ETH_TXQ_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_3
.set L0_1_set_3, LBB0_3-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
LJTI0_1:
	.long	L0_1_set_3
	.long	L0_1_set_9
	.long	L0_1_set_8
	.long	L0_1_set_10
	.end_data_region
                                        ## -- End function
	.comm	_DPAA_TC_TXQ_NUM,4,2            ## @DPAA_TC_TXQ_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many TX FQs: more than %d!\n"

	.comm	_DPAA_ETH_TXQ_NUM,4,2           ## @DPAA_ETH_TXQ_NUM
L_.str.1:                               ## @.str.1
	.asciz	"Invalid FQ type %d for FQID %d!\n"

	.no_dead_strip	_dpaa_assign_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_assign_wq
_dpaa_assign_wq:                        ; @dpaa_assign_wq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w2, [x0]
	sub	w8, w2, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w8, #5
	b	LBB0_8
LBB0_3:
	ldr	w8, [x0, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_9
LBB0_4:
Lloh4:
	adrp	x8, _DPAA_TC_TXQ_NUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPAA_TC_TXQ_NUM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	sdiv	w8, w1, w8
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.5:
Lloh7:
	adrp	x9, lJTI0_1@PAGE
Lloh8:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	w8, #6
	b	LBB0_8
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	w8, [x0, #4]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_10:
Lloh9:
	adrp	x8, _DPAA_ETH_TXQ_NUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPAA_ETH_TXQ_NUM@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_WARN
LBB0_11:
	mov	w8, #2
	b	LBB0_8
LBB0_12:
	str	wzr, [x0, #4]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
                                        ; -- End function
	.comm	_DPAA_TC_TXQ_NUM,4,2            ; @DPAA_TC_TXQ_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many TX FQs: more than %d!\n"

	.comm	_DPAA_ETH_TXQ_NUM,4,2           ; @DPAA_ETH_TXQ_NUM
l_.str.1:                               ; @.str.1
	.asciz	"Invalid FQ type %d for FQID %d!\n"

	.no_dead_strip	_dpaa_assign_wq
.subsections_via_symbols
