	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fork_passive
_fork_passive:                          ## @fork_passive
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_fd_getd
	movl	%eax, %ebx
	movl	$24, -48(%rbp)
	movq	_real@GOTPCREL(%rip), %rax
	leaq	-88(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	movq	_fd_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fd_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_fd_store
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-84(%rbp), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	movq	_S_IRWXG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	$1, %ecx
	callq	_sem_open
	movq	%rax, %r12
	movq	_SEM_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_11
## %bb.2:
	movl	-88(%rbp), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rsocket
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %r13d
	movl	$1, -52(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movl	%r13d, %edi
	movl	$4, %r8d
	callq	_rsetsockopt
	movq	%r12, %rdi
	callq	_sem_wait
	leaq	-88(%rbp), %rsi
	movl	%r13d, %edi
	movl	$24, %edx
	callq	_rbind
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_rlisten
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	$0, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$8, %edx
	movq	_real@GOTPCREL(%rip), %rax
	callq	*8(%rax)
	movl	%eax, -48(%rbp)
	xorl	%r15d, %r15d
	cmpl	$8, %eax
	jne	LBB0_10
## %bb.7:
	xorl	%r15d, %r15d
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_raccept
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	%eax, %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_set_rsocket_options
	movq	_rs@GOTPCREL(%rip), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movq	_real@GOTPCREL(%rip), %rcx
	callq	_copysockopts
	movq	_SHUT_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	_real@GOTPCREL(%rip), %rax
	callq	*24(%rax)
	movl	%ebx, %edi
	movq	_real@GOTPCREL(%rip), %rax
	callq	*16(%rax)
	movq	_fd_rsocket@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fd_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_fd_store
	jmp	LBB0_10
LBB0_3:
	movq	%r12, %rdi
	callq	_sem_close
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %r15d
LBB0_10:
	movl	%r13d, %edi
	callq	_rclose
	movq	%r12, %rdi
	callq	_sem_post
	movq	%r12, %rdi
	callq	_sem_close
	testl	%r15d, %r15d
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_real,32,3                      ## @real
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/rsocket_fork"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_SEM_FAILED,8,3                 ## @SEM_FAILED
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_rs,4,2                         ## @rs
	.comm	_SHUT_RDWR,4,2                  ## @SHUT_RDWR
	.comm	_fd_rsocket,4,2                 ## @fd_rsocket
	.comm	_fd_ready,4,2                   ## @fd_ready
	.comm	_fd_normal,4,2                  ## @fd_normal
	.no_dead_strip	_fork_passive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fork_passive
_fork_passive:                          ; @fork_passive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	bl	_fd_getd
	mov	x20, x0
	mov	w8, #24
	str	w8, [sp, #16]
Lloh0:
	adrp	x21, _real@GOTPAGE
Lloh1:
	ldr	x21, [x21, _real@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x22, sp, #24
	add	x1, sp, #24
	add	x2, sp, #16
	blr	x8
	cbz	w0, LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _fd_normal@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fd_normal@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _fd_ready@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fd_ready@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_fd_store
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	orr	x0, x22, #0x4
	stp	xzr, xzr, [sp, #32]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh8:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _S_IRWXU@GOTPAGE
Lloh15:
	ldr	x10, [x10, _S_IRWXU@GOTPAGEOFF]
	orr	w1, w9, w8
Lloh16:
	ldr	w8, [x10]
Lloh17:
	adrp	x9, _S_IRWXG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _S_IRWXG@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	w3, #1
	bl	_sem_open
Lloh22:
	adrp	x8, _SEM_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SEM_FAILED@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.4:
	mov	x22, x0
	ldr	w0, [sp, #24]
Lloh25:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rsocket
	tbnz	w0, #31, LBB0_12
; %bb.5:
	mov	x23, x0
	mov	w8, #1
	str	w8, [sp, #20]
Lloh28:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	add	x3, sp, #20
	mov	w4, #4
	bl	_rsetsockopt
	mov	x0, x22
	bl	_sem_wait
	add	x1, sp, #24
	mov	x0, x23
	mov	w2, #24
	bl	_rbind
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.6:
	mov	x0, x23
	mov	w1, #1
	bl	_rlisten
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.7:
	str	xzr, [sp, #8]
	ldr	x8, [x21, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8
	blr	x8
	str	w0, [sp, #16]
	cmp	w0, #8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x23
	mov	x1, #0
	mov	x2, #0
	bl	_raccept
	mov	x24, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	x0, x24
	bl	_set_rsocket_options
Lloh34:
	adrp	x2, _rs@GOTPAGE
Lloh35:
	ldr	x2, [x2, _rs@GOTPAGEOFF]
	mov	x0, x24
	mov	x1, x20
	mov	x3, x21
	bl	_copysockopts
	ldr	x8, [x21, #24]
Lloh36:
	adrp	x9, _SHUT_RDWR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SHUT_RDWR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	ldr	x8, [x21, #16]
	mov	x0, x20
	blr	x8
Lloh39:
	adrp	x8, _fd_rsocket@GOTPAGE
Lloh40:
	ldr	x8, [x8, _fd_rsocket@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _fd_ready@GOTPAGE
Lloh43:
	ldr	x8, [x8, _fd_ready@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_fd_store
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	x0, x23
	bl	_rclose
	mov	x0, x22
	bl	_sem_post
	mov	x0, x22
	bl	_sem_close
	cbnz	w24, LBB0_1
	b	LBB0_2
LBB0_12:
	mov	x0, x22
	bl	_sem_close
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_real,32,3                      ; @real
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/rsocket_fork"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_SEM_FAILED,8,3                 ; @SEM_FAILED
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_rs,4,2                         ; @rs
	.comm	_SHUT_RDWR,4,2                  ; @SHUT_RDWR
	.comm	_fd_rsocket,4,2                 ; @fd_rsocket
	.comm	_fd_ready,4,2                   ; @fd_ready
	.comm	_fd_normal,4,2                  ; @fd_normal
	.no_dead_strip	_fork_passive
.subsections_via_symbols
