	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accept_client
_accept_client:                         ## @accept_client
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	$4, -44(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_accept
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	leaq	-40(%rbp), %rdi
	callq	_ws_get_raddr
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_new_wsclient
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	movl	-40(%rbp), %edi
	movl	4(%rax), %edx
	movq	_INET6_ADDRSTRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_inet_ntop
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rsi
	callq	_list_insert_prepend
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FATAL
	movl	(%rbx), %edi
	callq	_strerror
	movslq	%eax, %rdi
	callq	_LOG
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_list_create
LBB0_5:
	movq	%rax, (%r14)
	movl	(%rbx), %edi
	callq	_set_nonblocking
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set accept: %s."

	.comm	_errno,4,2                      ## @errno
	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
	.no_dead_strip	_accept_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accept_client
_accept_client:                         ; @accept_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w8, #4
	str	w8, [sp, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_accept
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	add	x0, sp, #8
	bl	_ws_get_raddr
	mov	x22, x0
	bl	_new_wsclient
	mov	x21, x0
	str	w19, [x0]
	ldr	w0, [sp, #8]
	ldr	w2, [x21, #4]
Lloh0:
	adrp	x8, _INET6_ADDRSTRLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INET6_ADDRSTRLEN@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x22
	bl	_inet_ntop
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x21
	bl	_list_insert_prepend
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x20, _errno@GOTPAGE
Lloh4:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_strerror
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
	ldr	w0, [x20]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_LOG
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_list_create
LBB0_5:
	str	x0, [x20]
	ldr	w0, [x21]
	bl	_set_nonblocking
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set accept: %s."

	.comm	_errno,4,2                      ; @errno
	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
	.no_dead_strip	_accept_client
.subsections_via_symbols
