	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_msgring_thread
_create_msgring_thread:                 ## @create_msgring_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_msgring_threads@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movslq	%edi, %rbx
	movq	_msgring_process@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RFSTOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r10
	movq	_msgring_proc@GOTPCREL(%rip), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rsi
	movl	$2, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_kproc_kthread_add
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_panic
LBB0_2:
	movq	-24(%rbp), %rax
	movq	%rax, (%r14,%rbx,8)
	movq	-24(%rbp), %rdi
	callq	_thread_lock
	movq	-24(%rbp), %rdi
	movq	_PRI_ITHD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sched_class
	movq	-24(%rbp), %rdi
	movq	_SRQ_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sched_add
	movq	-24(%rbp), %rdi
	callq	_thread_unlock
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msgring_threads,8,3            ## @msgring_threads
	.comm	_msgring_process,4,2            ## @msgring_process
	.comm	_msgring_proc,4,2               ## @msgring_proc
	.comm	_RFSTOPPED,4,2                  ## @RFSTOPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msgrngproc"

L_.str.1:                               ## @.str.1
	.asciz	"msgthr%d"

L_.str.2:                               ## @.str.2
	.asciz	"kproc_kthread_add() failed with %d"

	.comm	_PRI_ITHD,4,2                   ## @PRI_ITHD
	.comm	_SRQ_INTR,4,2                   ## @SRQ_INTR
	.no_dead_strip	_create_msgring_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_msgring_thread
_create_msgring_thread:                 ; @create_msgring_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _msgring_threads@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msgring_threads@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	sxtw	x19, w0
Lloh3:
	adrp	x8, _msgring_process@GOTPAGE
Lloh4:
	ldr	x8, [x8, _msgring_process@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RFSTOPPED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RFSTOPPED@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
	str	w0, [sp]
Lloh9:
	adrp	x2, _msgring_proc@GOTPAGE
Lloh10:
	ldr	x2, [x2, _msgring_proc@GOTPAGEOFF]
Lloh11:
	adrp	x6, l_.str@PAGE
Lloh12:
	add	x6, x6, l_.str@PAGEOFF
Lloh13:
	adrp	x7, l_.str.1@PAGE
Lloh14:
	add	x7, x7, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x0, x8
	mov	x1, x19
	mov	w5, #2
	bl	_kproc_kthread_add
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_2:
	ldr	x8, [sp, #8]
	str	x8, [x20, x19, lsl #3]
	ldr	x0, [sp, #8]
	bl	_thread_lock
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x8, _PRI_ITHD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PRI_ITHD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_sched_class
	ldr	x0, [sp, #8]
Lloh20:
	adrp	x8, _SRQ_INTR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SRQ_INTR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_sched_add
	ldr	x0, [sp, #8]
	bl	_thread_unlock
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_msgring_threads,8,3            ; @msgring_threads
	.comm	_msgring_process,4,2            ; @msgring_process
	.comm	_msgring_proc,4,2               ; @msgring_proc
	.comm	_RFSTOPPED,4,2                  ; @RFSTOPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msgrngproc"

l_.str.1:                               ; @.str.1
	.asciz	"msgthr%d"

l_.str.2:                               ; @.str.2
	.asciz	"kproc_kthread_add() failed with %d"

	.comm	_PRI_ITHD,4,2                   ; @PRI_ITHD
	.comm	_SRQ_INTR,4,2                   ; @SRQ_INTR
	.no_dead_strip	_create_msgring_thread
.subsections_via_symbols
