	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nix_setup_txschq
_nix_setup_txschq:                      ## @nix_setup_txschq
	.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
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_NIX_TXSCH_LVL_CNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %r13
	movl	$4, %r14d
	xorl	%r15d, %r15d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movl	%r15d, -4(%r12,%r14)
	leal	-128(%r15), %eax
	cmpl	$4, %eax
	ja	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NIX_AF_TL4_CONST@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NIX_AF_TL3_CONST@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NIX_AF_TL2_CONST@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NIX_AF_TL1_CONST@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NIX_AF_MDQ_CONST@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rvu_read64
	movzwl	%ax, %eax
	leaq	(%r12,%r14), %rbx
	movl	%eax, (%r12,%r14)
	movq	%rbx, %rdi
	callq	_rvu_alloc_bitmap
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movl	(%r12,%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_devm_kcalloc
	movl	%eax, 4(%r12,%r14)
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_U8_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %edx
	shll	$2, %edx
	movl	%eax, %edi
	callq	_memset
	incq	%r15
	movq	_NIX_TXSCH_LVL_CNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$12, %r14
	cmpq	%rax, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_2
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_NIX_TXSCH_LVL_CNT,4,2          ## @NIX_TXSCH_LVL_CNT
	.comm	_NIX_AF_MDQ_CONST,4,2           ## @NIX_AF_MDQ_CONST
	.comm	_NIX_AF_TL4_CONST,4,2           ## @NIX_AF_TL4_CONST
	.comm	_NIX_AF_TL3_CONST,4,2           ## @NIX_AF_TL3_CONST
	.comm	_NIX_AF_TL2_CONST,4,2           ## @NIX_AF_TL2_CONST
	.comm	_NIX_AF_TL1_CONST,4,2           ## @NIX_AF_TL1_CONST
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_U8_MAX,4,2                     ## @U8_MAX
	.no_dead_strip	_nix_setup_txschq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nix_setup_txschq
_nix_setup_txschq:                      ; @nix_setup_txschq
	.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
Lloh0:
	adrp	x23, _NIX_TXSCH_LVL_CNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NIX_TXSCH_LVL_CNT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x24, #0
	mov	x25, #0
Lloh2:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	adrp	x27, _U8_MAX@GOTPAGE
Lloh5:
	ldr	x27, [x27, _U8_MAX@GOTPAGEOFF]
                                        ; implicit-def: $w22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x20]
	str	w25, [x28, x24]
	sub	w8, w25, #128
	cmp	w8, #4
	b.hi	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh6:
	adrp	x11, lJTI0_0@PAGE
Lloh7:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_4
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _NIX_AF_TL4_CONST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NIX_AF_TL4_CONST@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x8, _NIX_AF_TL3_CONST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NIX_AF_TL3_CONST@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, _NIX_AF_TL2_CONST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NIX_AF_TL2_CONST@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _NIX_AF_TL1_CONST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NIX_AF_TL1_CONST@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh16:
	adrp	x8, _NIX_AF_MDQ_CONST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NIX_AF_MDQ_CONST@GOTPAGEOFF]
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x8]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_rvu_read64
	and	w8, w0, #0xffff
	add	x28, x28, x24
	mov	x0, x28
	str	w8, [x0, #4]!
	bl	_rvu_alloc_bitmap
	cbnz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x28, #4]
	ldr	w3, [x26]
	mov	w2, #4
	bl	_devm_kcalloc
	str	w0, [x28, #8]
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x27]
	ldr	w8, [x28, #4]
	lsl	w2, w8, #2
	bl	_memset
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #12
	cmp	x25, x8
	b.lt	LBB0_2
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_NIX_TXSCH_LVL_CNT,4,2          ; @NIX_TXSCH_LVL_CNT
	.comm	_NIX_AF_MDQ_CONST,4,2           ; @NIX_AF_MDQ_CONST
	.comm	_NIX_AF_TL4_CONST,4,2           ; @NIX_AF_TL4_CONST
	.comm	_NIX_AF_TL3_CONST,4,2           ; @NIX_AF_TL3_CONST
	.comm	_NIX_AF_TL2_CONST,4,2           ; @NIX_AF_TL2_CONST
	.comm	_NIX_AF_TL1_CONST,4,2           ; @NIX_AF_TL1_CONST
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_U8_MAX,4,2                     ; @U8_MAX
	.no_dead_strip	_nix_setup_txschq
.subsections_via_symbols
