	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_cache_init
_queue_cache_init:                      ## @queue_cache_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_queue_cache@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_HV_NCS_QTYPE_MAU@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	cmpq	$0, -8(%rax,%rcx,8)
	jne	LBB0_3
## %bb.1:
	movq	_MAU_NUM_ENTRIES@GOTPCREL(%rip), %rax
	movq	_MAU_ENTRY_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %esi
	imull	%edx, %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movq	(%r14), %rcx
	movslq	(%r15), %rdx
	movq	%rax, -8(%rcx,%rdx,8)
	movq	(%r14), %rax
	cmpq	$0, -8(%rax,%rdx,8)
	je	LBB0_2
LBB0_3:
	movq	_HV_NCS_QTYPE_CWQ@GOTPCREL(%rip), %r12
	movslq	(%r12), %rcx
	xorl	%ebx, %ebx
	cmpq	$0, -8(%rax,%rcx,8)
	jne	LBB0_7
## %bb.4:
	movq	_CWQ_NUM_ENTRIES@GOTPCREL(%rip), %rax
	movq	_CWQ_ENTRY_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %esi
	imull	%edx, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movq	(%r14), %rcx
	movslq	(%r12), %rdx
	movq	%rax, -8(%rcx,%rdx,8)
	movq	(%r14), %rax
	cmpq	$0, -8(%rax,%rdx,8)
	jne	LBB0_7
## %bb.5:
	movslq	(%r15), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	callq	_kmem_cache_destroy
	movq	(%r14), %rax
	movslq	(%r15), %rcx
	movq	$0, -8(%rax,%rcx,8)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_queue_cache,8,3                ## @queue_cache
	.comm	_HV_NCS_QTYPE_MAU,4,2           ## @HV_NCS_QTYPE_MAU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mau_queue"

	.comm	_MAU_NUM_ENTRIES,4,2            ## @MAU_NUM_ENTRIES
	.comm	_MAU_ENTRY_SIZE,4,2             ## @MAU_ENTRY_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HV_NCS_QTYPE_CWQ,4,2           ## @HV_NCS_QTYPE_CWQ
L_.str.1:                               ## @.str.1
	.asciz	"cwq_queue"

	.comm	_CWQ_NUM_ENTRIES,4,2            ## @CWQ_NUM_ENTRIES
	.comm	_CWQ_ENTRY_SIZE,4,2             ## @CWQ_ENTRY_SIZE
	.no_dead_strip	_queue_cache_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_cache_init
_queue_cache_init:                      ; @queue_cache_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _queue_cache@GOTPAGE
Lloh1:
	ldr	x19, [x19, _queue_cache@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _HV_NCS_QTYPE_MAU@GOTPAGE
Lloh3:
	ldr	x20, [x20, _HV_NCS_QTYPE_MAU@GOTPAGEOFF]
	ldrsw	x9, [x20]
	add	x9, x8, x9, lsl #3
	ldur	x9, [x9, #-8]
	cbnz	x9, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _MAU_NUM_ENTRIES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAU_NUM_ENTRIES@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MAU_ENTRY_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAU_ENTRY_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	mul	w1, w2, w8
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	w3, #0
	mov	x4, #0
	bl	_kmem_cache_create
	ldr	x8, [x19]
	ldrsw	x9, [x20]
	lsl	x9, x9, #3
	sub	x9, x9, #8
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_6
LBB0_2:
Lloh12:
	adrp	x21, _HV_NCS_QTYPE_CWQ@GOTPAGE
Lloh13:
	ldr	x21, [x21, _HV_NCS_QTYPE_CWQ@GOTPAGEOFF]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _CWQ_NUM_ENTRIES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CWQ_NUM_ENTRIES@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _CWQ_ENTRY_SIZE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CWQ_ENTRY_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
	mul	w1, w2, w8
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w3, #0
	mov	x4, #0
	bl	_kmem_cache_create
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	ldrsw	x10, [x21]
	lsl	x10, x10, #3
	sub	x10, x10, #8
	str	x8, [x9, x10]
	ldr	x8, [x19]
	ldr	x9, [x8, x10]
	cbnz	x9, LBB0_7
; %bb.5:
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	bl	_kmem_cache_destroy
	ldr	x8, [x19]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	stur	xzr, [x8, #-8]
LBB0_6:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_queue_cache,8,3                ; @queue_cache
	.comm	_HV_NCS_QTYPE_MAU,4,2           ; @HV_NCS_QTYPE_MAU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mau_queue"

	.comm	_MAU_NUM_ENTRIES,4,2            ; @MAU_NUM_ENTRIES
	.comm	_MAU_ENTRY_SIZE,4,2             ; @MAU_ENTRY_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HV_NCS_QTYPE_CWQ,4,2           ; @HV_NCS_QTYPE_CWQ
l_.str.1:                               ; @.str.1
	.asciz	"cwq_queue"

	.comm	_CWQ_NUM_ENTRIES,4,2            ; @CWQ_NUM_ENTRIES
	.comm	_CWQ_ENTRY_SIZE,4,2             ; @CWQ_ENTRY_SIZE
	.no_dead_strip	_queue_cache_init
.subsections_via_symbols
