	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_do_listen
_socket_do_listen:                      ## @socket_do_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -40(%rbp)
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_ASSERT
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %edi
	leaq	-40(%rbp), %rsi
	callq	_print_sockaddr
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
	movl	%r15d, %edi
	movl	$32, %esi
	callq	_listen
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	callq	_set_nonblock
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_gc_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_INFO,4,2                     ## @M_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Listening for incoming TCP connection on %s"

	.comm	_M_ERR,4,2                      ## @M_ERR
L_.str.1:                               ## @.str.1
	.asciz	"TCP: listen() failed"

	.no_dead_strip	_socket_do_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_do_listen
_socket_do_listen:                      ; @socket_do_listen
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_gc_new
	str	w0, [sp, #8]
	cbz	w22, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_ASSERT
Lloh0:
	adrp	x8, _M_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_print_sockaddr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_msg
	mov	x0, x19
	mov	w1, #32
	bl	_listen
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _M_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_set_nonblock
LBB0_5:
	add	x0, sp, #8
	bl	_gc_free
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_M_INFO,4,2                     ; @M_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Listening for incoming TCP connection on %s"

	.comm	_M_ERR,4,2                      ; @M_ERR
l_.str.1:                               ; @.str.1
	.asciz	"TCP: listen() failed"

	.no_dead_strip	_socket_do_listen
.subsections_via_symbols
