	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lsock_listen_input
_lsock_listen_input:                    ## @lsock_listen_input
	.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	%rsi, %r14
	movl	%edi, %r15d
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	movl	$1, (%rax)
	movq	(%r14), %rax
	movq	_LOCP_DGRAM_PRIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_LOCP_STREAM_PRIV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, 4(%rbx)
	leaq	8(%rbx), %rdx
	movl	$4, 8(%rbx)
	movq	%rbx, %rsi
	addq	$32, %rsi
	movq	%rsi, 24(%rbx)
	movl	%r15d, %edi
	callq	_accept
	movl	%eax, 12(%rbx)
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	_lsock_input@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_fd_select
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	addq	$8, %r14
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LIST_INSERT_HEAD               ## TAILCALL
LBB0_7:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_2:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_syslog
	jmp	LBB0_5
LBB0_4:
	movl	12(%rbx), %edi
	callq	_close
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: peer malloc failed"

	.comm	_LOCP_DGRAM_PRIV,8,3            ## @LOCP_DGRAM_PRIV
	.comm	_LOCP_STREAM_PRIV,8,3           ## @LOCP_STREAM_PRIV
L_.str.1:                               ## @.str.1
	.asciz	"%s: accept failed: %m"

	.comm	_lsock_input,4,2                ## @lsock_input
	.comm	_link,4,2                       ## @link
	.no_dead_strip	_lsock_listen_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lsock_listen_input
_lsock_listen_input:                    ; @lsock_listen_input
	.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	x20, x1
	mov	x21, x0
	mov	w22, #1
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _LOCP_DGRAM_PRIV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LOCP_DGRAM_PRIV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _LOCP_STREAM_PRIV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LOCP_STREAM_PRIV@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	str	x20, [x0, #40]
	cset	w8, eq
	stp	w22, w8, [x0]
	mov	w8, #4
	mov	x2, x0
	str	w8, [x2, #8]!
	add	x1, x0, #32
	str	x1, [x0, #24]
	mov	x0, x21
	bl	_accept
	str	w0, [x19, #12]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _lsock_input@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lsock_input@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, #0
	bl	_fd_select
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.3:
	add	x0, x20, #8
Lloh9:
	adrp	x8, _link@GOTPAGE
Lloh10:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x19
	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
	b	_LIST_INSERT_HEAD
LBB0_4:
Lloh12:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x20, #12]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	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
	b	_close
LBB0_5:
Lloh17:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w2, [x20, #12]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #12]
	bl	_close
LBB0_7:
	mov	x0, x19
	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
	b	_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: peer malloc failed"

	.comm	_LOCP_DGRAM_PRIV,8,3            ; @LOCP_DGRAM_PRIV
	.comm	_LOCP_STREAM_PRIV,8,3           ; @LOCP_STREAM_PRIV
l_.str.1:                               ; @.str.1
	.asciz	"%s: accept failed: %m"

	.comm	_lsock_input,4,2                ; @lsock_input
	.comm	_link,4,2                       ; @link
	.no_dead_strip	_lsock_listen_input
.subsections_via_symbols
