	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listen                         ## -- Begin function listen
	.p2align	4, 0x90
_listen:                                ## @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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	leaq	-20(%rbp), %rsi
	callq	_fd_get
	movq	_fd_rsocket@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	-20(%rbp), %edi
	movl	%ebx, %esi
	callq	_rlisten
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_real@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edi
	movl	%ebx, %esi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	%r14d, %edi
	callq	_fd_gets
	movq	_fd_fork@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	-20(%rbp), %esi
	movq	_fd_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fd_fork_listen@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_fd_store
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_rsocket,8,3                 ## @fd_rsocket
	.comm	_real,8,3                       ## @real
	.comm	_fd_fork,8,3                    ## @fd_fork
	.comm	_fd_normal,4,2                  ## @fd_normal
	.comm	_fd_fork_listen,4,2             ## @fd_fork_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listen                         ; -- Begin function listen
	.p2align	2
_listen:                                ; @listen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_fd_get
Lloh0:
	adrp	x8, _fd_rsocket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd_rsocket@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [sp, #12]
	mov	x1, x20
	bl	_rlisten
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _real@GOTPAGE
Lloh4:
	ldr	x8, [x8, _real@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [sp, #12]
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_fd_gets
Lloh6:
	adrp	x8, _fd_fork@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fd_fork@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [sp, #12]
Lloh9:
	adrp	x8, _fd_normal@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fd_normal@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _fd_fork_listen@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fd_fork_listen@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_fd_store
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_rsocket,8,3                 ; @fd_rsocket
	.comm	_real,8,3                       ; @real
	.comm	_fd_fork,8,3                    ; @fd_fork
	.comm	_fd_normal,4,2                  ; @fd_normal
	.comm	_fd_fork_listen,4,2             ; @fd_fork_listen
.subsections_via_symbols
