	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svc_run_internal
_svc_run_internal:                      ## @svc_run_internal
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	64(%rdi), %r13
	movl	$32, %edi
	callq	_mem_alloc
	movq	%rax, %r12
	leaq	4(%rax), %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_mtx_init
	movq	%r13, 24(%r12)
	movq	$0, 16(%r12)
	leaq	8(%r12), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_STAILQ_INIT
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_cv_init
	leaq	40(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mtx_lock
	movq	(%r14), %rax
	movq	_SVCPOOL_THREADSTARTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SVCPOOL_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_2:
	movq	_SVCPOOL_CLOSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_48:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_50
## %bb.49:
	movq	$0, 16(%r12)
	callq	_SVC_RELEASE
LBB0_50:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_STAILQ_EMPTY
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_destroy
	movq	%r12, %rdi
	callq	_cv_destroy
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_mem_free
	decq	16(%r14)
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_52
## %bb.51:
	movq	%r14, %rdi
	callq	_wakeup
LBB0_52:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	44(%r14), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	48(%r14), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_lock
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	movq	_SVCPOOL_CLOSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_48
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_45 Depth 2
	movq	_SVCPOOL_THREADWANTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SVCPOOL_THREADSTARTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	%r14, %rdi
	callq	_svc_new_thread
	movq	%rbx, %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_mtx_lock
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	8(%r14), %rax
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_svc_checkidle
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_svc_request_space_available
	testq	%rax, %rax
	je	LBB0_40
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	$0, -56(%rbp)
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	callq	_svc_getreq
	movl	%eax, %r12d
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_37
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_svc_change_space_used
	movq	(%r13), %rax
	movq	-56(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	%rbx, %r14
	movq	%r13, %r15
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	*%rax
	movq	%rax, %rbx
	movq	-56(%rbp), %rsi
	movq	%rax, 8(%rsi)
	leaq	8(%rax), %rdi
	movq	_rq_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_STAILQ_INSERT_TAIL
	leaq	4(%rbx), %rdi
	callq	_mtx_unlock
	cmpq	%r13, %rbx
	movq	%r15, %r13
	movq	%r14, %rbx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	$0, -56(%rbp)
LBB0_37:                                ##   in Loop: Header=BB0_31 Depth=2
	cmpq	$0, -56(%rbp)
	jne	LBB0_40
LBB0_38:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	_XPRT_MOREREQS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	(%r14), %rax
	movq	_SVCPOOL_CLOSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movq	_rq_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_STAILQ_INSERT_TAIL
	cmpq	$0, -56(%rbp)
	je	LBB0_38
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_lock
	movq	$0, 8(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 16(%rax)
	cmpq	$0, (%rbx)
	je	LBB0_44
## %bb.41:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_svc_request_space_available
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_xprt_assignthread
	testl	%eax, %eax
	jne	LBB0_44
LBB0_43:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_xp_alink@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
LBB0_44:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_SVC_RELEASE
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_STAILQ_FIRST
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	movq	_rq_link@GOTPCREL(%rip), %r12
	je	LBB0_46
	.p2align	4, 0x90
LBB0_45:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rax
	xorl	%ebx, %ebx
	subq	%rax, %rbx
	callq	_svc_executereq
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	callq	_svc_change_space_used
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	%rbx, %rdi
	callq	_STAILQ_FIRST
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_45
	jmp	LBB0_46
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	cmpq	24(%r14), %rax
	jg	LBB0_48
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_svc_request_space_available
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	_xp_alink@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_TAILQ_REMOVE
	movq	%r15, %rdi
	callq	_SVC_ACQUIRE
	movq	%r12, 8(%r15)
	movq	%r15, 16(%r12)
	jmp	LBB0_7
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_st_ilink@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_LIST_INSERT_HEAD
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	cmpq	32(%r14), %rax
	jle	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cv_timedwait_sig
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	cmpq	$0, 16(%r12)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_st_ilink@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_LIST_REMOVE
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	cmpq	32(%r14), %rax
	jle	LBB0_7
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%r12)
	jne	LBB0_7
	jmp	LBB0_50
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	sete	%al
	movq	_ERESTART@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	movslq	%r15d, %rsi
	callq	_KASSERT
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_PROC_LOCK
	movq	%r15, %rdi
	callq	_P_SHOULDSTOP
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_P_TOTAL_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_47
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	callq	_thread_suspend_check
	movq	%r15, %rdi
	callq	_PROC_UNLOCK
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cv_wait_sig
	jmp	LBB0_20
LBB0_47:
	movq	%r15, %rdi
	callq	_PROC_UNLOCK
	movq	%r13, %rdi
	callq	_svc_exit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_lock
	jmp	LBB0_48
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st_lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
L_.str.1:                               ## @.str.1
	.asciz	"rpcsvc"

	.comm	_SVCPOOL_THREADSTARTING,8,3     ## @SVCPOOL_THREADSTARTING
	.comm	_SVCPOOL_ACTIVE,8,3             ## @SVCPOOL_ACTIVE
	.comm	_SVCPOOL_CLOSING,8,3            ## @SVCPOOL_CLOSING
	.comm	_SVCPOOL_THREADWANTED,8,3       ## @SVCPOOL_THREADWANTED
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_xp_alink,4,2                   ## @xp_alink
	.comm	_st_ilink,4,2                   ## @st_ilink
	.comm	_hz,4,2                         ## @hz
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ERESTART,4,2                   ## @ERESTART
	.comm	_curproc,8,3                    ## @curproc
	.comm	_P_TOTAL_STOP,4,2               ## @P_TOTAL_STOP
	.comm	_rq_link,4,2                    ## @rq_link
	.comm	_XPRT_MOREREQS,4,2              ## @XPRT_MOREREQS
L_.str.3:                               ## @.str.3
	.asciz	"stray reqs on exit"

	.no_dead_strip	_svc_run_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svc_run_internal
_svc_run_internal:                      ; @svc_run_internal
	.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
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x19, x0
	ldr	x25, [x0, #64]
	mov	w0, #32
	bl	_mem_alloc
	mov	x21, x0
	add	x22, x0, #4
Lloh0:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_mtx_init
	stp	xzr, x25, [x21, #16]
	add	x24, x21, #8
	mov	x0, x24
	bl	_STAILQ_INIT
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_cv_init
	add	x23, x19, #40
	mov	x0, x23
	bl	_mtx_lock
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _SVCPOOL_THREADSTARTING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SVCPOOL_THREADSTARTING@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _SVCPOOL_ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SVCPOOL_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
Lloh13:
	adrp	x26, _SVCPOOL_CLOSING@GOTPAGE
Lloh14:
	ldr	x26, [x26, _SVCPOOL_CLOSING@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_3:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_5
; %bb.4:
	str	xzr, [x21, #16]
	bl	_SVC_RELEASE
LBB0_5:
	mov	x0, x24
	bl	_STAILQ_EMPTY
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_KASSERT
	mov	x0, x22
	bl	_mtx_destroy
	mov	x0, x21
	bl	_cv_destroy
	mov	x0, x21
	mov	w1, #32
	bl	_mem_free
	ldr	x8, [x19, #16]
	sub	x8, x8, #1
	str	x8, [x19, #16]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_wakeup
LBB0_7:
	mov	x0, x23
	bl	_mtx_unlock
	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
LBB0_8:
Lloh17:
	adrp	x28, _SVCPOOL_THREADWANTED@GOTPAGE
Lloh18:
	ldr	x28, [x28, _SVCPOOL_THREADWANTED@GOTPAGEOFF]
	add	x10, x19, #44
	add	x9, x19, #48
	stp	x9, x10, [sp]                   ; 16-byte Folded Spill
Lloh19:
	adrp	x20, _rq_link@GOTPAGE
Lloh20:
	ldr	x20, [x20, _rq_link@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_mtx_unlock
	mov	x0, x23
	bl	_mtx_lock
Lloh21:
	adrp	x26, _SVCPOOL_CLOSING@GOTPAGE
Lloh22:
	ldr	x26, [x26, _SVCPOOL_CLOSING@GOTPAGEOFF]
Lloh23:
	adrp	x28, _SVCPOOL_THREADWANTED@GOTPAGE
Lloh24:
	ldr	x28, [x28, _SVCPOOL_THREADWANTED@GOTPAGEOFF]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_32 Depth 2
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh25:
	adrp	x8, _SVCPOOL_THREADSTARTING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SVCPOOL_THREADSTARTING@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh28:
	adrp	x8, _time_uptime@GOTPAGE
Lloh29:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x19, #56]
	mov	x0, x23
	bl	_mtx_unlock
	mov	x0, x19
	bl	_svc_new_thread
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_mtx_lock
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh31:
	adrp	x8, _time_uptime@GOTPAGE
Lloh32:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_svc_checkidle
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x28, [x21, #16]
	cbz	x28, LBB0_34
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_mtx_unlock
Lloh34:
	adrp	x8, _time_uptime@GOTPAGE
Lloh35:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x28, #16]
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	bl	_svc_request_space_available
	cbz	x0, LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	str	xzr, [sp, #24]
	add	x1, sp, #24
	mov	x0, x28
	bl	_svc_getreq
	mov	x27, x0
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x1, [x8]
	mov	x0, x25
	bl	_svc_change_space_used
	ldr	x8, [x25]
	ldr	x1, [sp, #24]
	cbz	x8, LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x21
	blr	x8
	mov	x26, x0
	ldr	x1, [sp, #24]
	str	x0, [x1, #8]
	add	x0, x0, #8
	ldr	w2, [x20]
	bl	_STAILQ_INSERT_TAIL
	add	x0, x26, #4
	bl	_mtx_unlock
	cmp	x26, x21
Lloh37:
	adrp	x26, _SVCPOOL_CLOSING@GOTPAGE
Lloh38:
	ldr	x26, [x26, _SVCPOOL_CLOSING@GOTPAGEOFF]
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	str	xzr, [sp, #24]
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_27
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=2
Lloh39:
	adrp	x8, _XPRT_MOREREQS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _XPRT_MOREREQS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_18
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=2
	str	x21, [x1, #8]
	ldr	w2, [x20]
	mov	x0, x24
	bl	_STAILQ_INSERT_TAIL
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_24
LBB0_27:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_mtx_lock
	str	xzr, [x28, #8]
	str	xzr, [x21, #16]
	ldr	x8, [x28]
	cbz	x8, LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_svc_request_space_available
	cbz	x0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	bl	_xprt_assignthread
	cbnz	w0, LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh42:
	adrp	x8, _xp_alink@GOTPAGE
Lloh43:
	ldr	x8, [x8, _xp_alink@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x28
	bl	_TAILQ_INSERT_TAIL
LBB0_31:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_mtx_unlock
	mov	x0, x28
	bl	_SVC_RELEASE
LBB0_32:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_mtx_lock
	mov	x0, x24
	bl	_STAILQ_FIRST
	str	x0, [sp, #24]
	cbz	x0, LBB0_9
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	ldr	w1, [x20]
	mov	x0, x24
	bl	_STAILQ_REMOVE_HEAD
	mov	x0, x22
	bl	_mtx_unlock
	ldr	x0, [sp, #24]
	ldr	x26, [x0]
	bl	_svc_executereq
	neg	x1, x26
	mov	x0, x25
	bl	_svc_change_space_used
	b	LBB0_32
LBB0_34:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
Lloh45:
	adrp	x28, _SVCPOOL_THREADWANTED@GOTPAGE
Lloh46:
	ldr	x28, [x28, _SVCPOOL_THREADWANTED@GOTPAGEOFF]
	cbnz	x8, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.gt	LBB0_3
LBB0_36:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_svc_request_space_available
	cbz	x0, LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, x0
Lloh47:
	adrp	x8, _xp_alink@GOTPAGE
Lloh48:
	ldr	x8, [x8, _xp_alink@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x27
	bl	_TAILQ_REMOVE
	mov	x0, x27
	bl	_SVC_ACQUIRE
	str	x21, [x27, #8]
	str	x27, [x21, #16]
	b	LBB0_10
LBB0_39:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh50:
	adrp	x8, _st_ilink@GOTPAGE
Lloh51:
	ldr	x8, [x8, _st_ilink@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x21
	bl	_LIST_INSERT_HEAD
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.le	LBB0_52
LBB0_41:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh53:
	adrp	x8, _hz@GOTPAGE
Lloh54:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	add	w2, w8, w8, lsl #2
	mov	x0, x21
	mov	x1, x23
	bl	_cv_timedwait_sig
LBB0_42:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, x0
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh56:
	adrp	x8, _st_ilink@GOTPAGE
Lloh57:
	ldr	x8, [x8, _st_ilink@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LIST_REMOVE
LBB0_44:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh59:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_10
; %bb.46:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.47:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_10
	b	LBB0_5
LBB0_48:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w27, LBB0_10
; %bb.49:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh62:
	adrp	x8, _EINTR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	cmp	w27, w8
Lloh65:
	adrp	x8, _ERESTART@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ERESTART@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	ccmp	w27, w8, #4, ne
	cset	w0, eq
	sxtw	x1, w27
	bl	_KASSERT
	mov	x0, x23
	bl	_mtx_unlock
Lloh68:
	adrp	x8, _curproc@GOTPAGE
Lloh69:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh70:
	ldr	x27, [x8]
	mov	x0, x27
	bl	_PROC_LOCK
	mov	x0, x27
	bl	_P_SHOULDSTOP
	cbnz	x0, LBB0_51
; %bb.50:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x27]
Lloh71:
	adrp	x9, _P_TOTAL_STOP@GOTPAGE
Lloh72:
	ldr	x9, [x9, _P_TOTAL_STOP@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_53
LBB0_51:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #0
	bl	_thread_suspend_check
	mov	x0, x27
	bl	_PROC_UNLOCK
	b	LBB0_13
LBB0_52:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_cv_wait_sig
	b	LBB0_42
LBB0_53:
	mov	x0, x27
	bl	_PROC_UNLOCK
	mov	x0, x25
	bl	_svc_exit
	mov	x0, x23
	bl	_mtx_lock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st_lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
l_.str.1:                               ; @.str.1
	.asciz	"rpcsvc"

	.comm	_SVCPOOL_THREADSTARTING,8,3     ; @SVCPOOL_THREADSTARTING
	.comm	_SVCPOOL_ACTIVE,8,3             ; @SVCPOOL_ACTIVE
	.comm	_SVCPOOL_CLOSING,8,3            ; @SVCPOOL_CLOSING
	.comm	_SVCPOOL_THREADWANTED,8,3       ; @SVCPOOL_THREADWANTED
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_xp_alink,4,2                   ; @xp_alink
	.comm	_st_ilink,4,2                   ; @st_ilink
	.comm	_hz,4,2                         ; @hz
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ERESTART,4,2                   ; @ERESTART
	.comm	_curproc,8,3                    ; @curproc
	.comm	_P_TOTAL_STOP,4,2               ; @P_TOTAL_STOP
	.comm	_rq_link,4,2                    ; @rq_link
	.comm	_XPRT_MOREREQS,4,2              ; @XPRT_MOREREQS
l_.str.3:                               ; @.str.3
	.asciz	"stray reqs on exit"

	.no_dead_strip	_svc_run_internal
.subsections_via_symbols
