	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svc_addparty
_svc_addparty:                          ## @svc_addparty
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_DEFINE_WAIT
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_ATM_SD
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_lock_sock
	movq	_ATM_VF_WAITING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movl	4(%r14), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_prepare_to_wait
	movq	_as_addparty@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_sigd_enq
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_ATM_VF_WAITING@GOTPCREL(%rip), %rax
	movq	%rax, %r12
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_sigd@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.4:
	movq	_wait@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movl	4(%r14), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_prepare_to_wait
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_5
LBB0_7:
	movl	4(%r14), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_xchg
	movl	%eax, %r13d
LBB0_8:
	movq	%r14, %rdi
	callq	_release_sock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_ATM_VF_WAITING,4,2             ## @ATM_VF_WAITING
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_as_addparty,4,2                ## @as_addparty
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svc_addparty added wait queue\n"

	.comm	_sigd,8,3                       ## @sigd
	.no_dead_strip	_svc_addparty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svc_addparty
_svc_addparty:                          ; @svc_addparty
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _wait@GOTPAGE
Lloh1:
	ldr	x23, [x23, _wait@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_DEFINE_WAIT
	ldr	x19, [x20]
	mov	x0, x20
	bl	_ATM_SD
	mov	x20, x0
	mov	x0, x19
	bl	_lock_sock
Lloh2:
	adrp	x24, _ATM_VF_WAITING@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ATM_VF_WAITING@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x20
	bl	_set_bit
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x25, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x1, x23
	bl	_prepare_to_wait
Lloh6:
	adrp	x8, _as_addparty@GOTPAGE
Lloh7:
	ldr	x8, [x8, _as_addparty@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, x22
	bl	_sigd_enq
Lloh9:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x1, _wait@GOTPAGE
Lloh13:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
Lloh14:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_bit
Lloh19:
	adrp	x22, _sigd@GOTPAGE
Lloh20:
	ldr	x22, [x22, _sigd@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_5
; %bb.3:
Lloh21:
	adrp	x21, _wait@GOTPAGE
Lloh22:
	ldr	x21, [x21, _wait@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_schedule
	ldr	w0, [x19, #4]
	ldr	w2, [x25]
	mov	x1, x21
	bl	_prepare_to_wait
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_bit
	ldr	x8, [x22]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_4
LBB0_5:
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x1, _wait@GOTPAGE
Lloh24:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	mov	x0, x19
	mov	w1, #0
	bl	_xchg
	mov	x20, x0
LBB0_6:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_ATM_VF_WAITING,4,2             ; @ATM_VF_WAITING
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_as_addparty,4,2                ; @as_addparty
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svc_addparty added wait queue\n"

	.comm	_sigd,8,3                       ; @sigd
	.no_dead_strip	_svc_addparty
.subsections_via_symbols
