	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xprt_assignthread
_xprt_assignthread:                     ## @xprt_assignthread
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	leaq	36(%r15), %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtx_assert
	leaq	32(%r15), %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_st_ilink@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	%r14, %rdi
	callq	_SVC_ACQUIRE
	movq	%rbx, (%r14)
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	_cv_signal
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	(%r15), %rcx
	movq	_SVCPOOL_ACTIVE@GOTPCREL(%rip), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.3:
	movq	8(%r15), %rcx
	movq	_time_uptime@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.4:
	movq	16(%r15), %rcx
	cmpq	24(%r15), %rcx
	jge	LBB0_6
## %bb.5:
	movq	_SVCPOOL_THREADWANTED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r15)
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_st_ilink,4,2                   ## @st_ilink
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SVCPOOL_ACTIVE,8,3             ## @SVCPOOL_ACTIVE
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_SVCPOOL_THREADWANTED,8,3       ## @SVCPOOL_THREADWANTED
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_xprt_assignthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xprt_assignthread
_xprt_assignthread:                     ; @xprt_assignthread
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x0, x21, #36
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mtx_assert
	add	x0, x21, #32
	bl	_LIST_FIRST
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _st_ilink@GOTPAGE
Lloh4:
	ldr	x8, [x8, _st_ilink@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LIST_REMOVE
	mov	x0, x19
	bl	_SVC_ACQUIRE
	str	x20, [x19]
	str	x19, [x20, #8]
	mov	x0, x20
	bl	_cv_signal
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _SVCPOOL_ACTIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SVCPOOL_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x21, #8]
Lloh11:
	adrp	x9, _time_uptime@GOTPAGE
Lloh12:
	ldr	x9, [x9, _time_uptime@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:
	ldp	x8, x9, [x21, #16]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _SVCPOOL_THREADWANTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVCPOOL_THREADWANTED@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_6:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_st_ilink,4,2                   ; @st_ilink
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SVCPOOL_ACTIVE,8,3             ; @SVCPOOL_ACTIVE
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_SVCPOOL_THREADWANTED,8,3       ; @SVCPOOL_THREADWANTED
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_xprt_assignthread
.subsections_via_symbols
