	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svc_listen
_svc_listen:                            ## @svc_listen
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_ATM_SD
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_lock_sock
	movq	_ATM_VF_SESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	_ATM_VF_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_ATM_VF_WAITING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movl	8(%r15), %edi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	movq	_as_listen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %r8
	addq	$4, %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sigd_enq
	movq	%r12, %r14
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movq	_sigd@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.6:
	movq	_wait@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movl	8(%r15), %edi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_prepare_to_wait
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_7
LBB0_9:
	movl	8(%r15), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	cmpq	$0, (%r13)
	je	LBB0_10
## %bb.11:
	movq	_ATM_VF_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_vcc_insert_socket
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jg	LBB0_13
## %bb.12:
	movq	_ATM_BACKLOG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movl	%eax, (%r15)
	leaq	4(%r15), %rax
	jmp	LBB0_14
LBB0_10:
	movq	_EUNATCH@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_release_sock
	movl	%ebx, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svc_listen %p\n"

	.comm	_ATM_VF_SESSION,4,2             ## @ATM_VF_SESSION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATM_VF_LISTEN,4,2              ## @ATM_VF_LISTEN
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_ATM_VF_WAITING,4,2             ## @ATM_VF_WAITING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_as_listen,4,2                  ## @as_listen
	.comm	_sigd,8,3                       ## @sigd
	.comm	_EUNATCH,4,2                    ## @EUNATCH
	.comm	_ATM_BACKLOG_DEFAULT,4,2        ## @ATM_BACKLOG_DEFAULT
	.no_dead_strip	_svc_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svc_listen
_svc_listen:                            ; @svc_listen
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
	ldr	x19, [x21]
	mov	x0, x21
	bl	_ATM_SD
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	mov	x0, x19
	bl	_lock_sock
Lloh5:
	adrp	x8, _ATM_VF_SESSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATM_VF_SESSION@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
Lloh10:
	adrp	x23, _ATM_VF_LISTEN@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ATM_VF_LISTEN@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh14:
	adrp	x24, _ATM_VF_WAITING@GOTPAGE
Lloh15:
	ldr	x24, [x24, _ATM_VF_WAITING@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x21
	bl	_set_bit
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x25, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh17:
	ldr	x25, [x25, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh18:
	adrp	x1, _wait@GOTPAGE
Lloh19:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_prepare_to_wait
Lloh20:
	adrp	x8, _as_listen@GOTPAGE
Lloh21:
	ldr	x8, [x8, _as_listen@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x4, x21, #4
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_sigd_enq
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
Lloh23:
	adrp	x26, _sigd@GOTPAGE
Lloh24:
	ldr	x26, [x26, _sigd@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_7
; %bb.5:
Lloh25:
	adrp	x22, _wait@GOTPAGE
Lloh26:
	ldr	x22, [x22, _wait@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_schedule
	ldr	w0, [x19, #8]
	ldr	w2, [x25]
	mov	x1, x22
	bl	_prepare_to_wait
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	ldr	x8, [x26]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_6
LBB0_7:
	ldr	w0, [x19, #8]
Lloh27:
	adrp	x1, _wait@GOTPAGE
Lloh28:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	ldr	x8, [x26]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_set_bit
	mov	x0, x19
	bl	_vcc_insert_socket
Lloh29:
	adrp	x8, _ATM_BACKLOG_DEFAULT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ATM_BACKLOG_DEFAULT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w9, w20, w8, gt
	mov	x8, x19
	str	w9, [x8], #4
	b	LBB0_10
LBB0_9:
Lloh32:
	adrp	x8, _EUNATCH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EUNATCH@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svc_listen %p\n"

	.comm	_ATM_VF_SESSION,4,2             ; @ATM_VF_SESSION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATM_VF_LISTEN,4,2              ; @ATM_VF_LISTEN
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_ATM_VF_WAITING,4,2             ; @ATM_VF_WAITING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_as_listen,4,2                  ; @as_listen
	.comm	_sigd,8,3                       ; @sigd
	.comm	_EUNATCH,4,2                    ; @EUNATCH
	.comm	_ATM_BACKLOG_DEFAULT,4,2        ; @ATM_BACKLOG_DEFAULT
	.no_dead_strip	_svc_listen
.subsections_via_symbols
