	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_fd
_process_fd:                            ## @process_fd
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_ISC_FALSE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_FDLOCK_ID
	movslq	%eax, %rbx
	shlq	$2, %rbx
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	callq	_LOCK
	movq	(%r15), %rcx
	movslq	%r14d, %rax
	movq	(%rcx,%rax,8), %rcx
	movq	_CLOSE_PENDING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	addq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_UNLOCK
	movq	_SELECT_POKE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_unwatch_fd
	jmp	LBB0_2
LBB0_3:
	movq	16(%r15), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	(%r12), %rax
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movq	_ISC_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.6:
	movq	%rdi, %r12
	callq	_LOCK
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_SOCK_DEAD
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, 16(%rdi)
	je	LBB0_9
## %bb.8:
	callq	_dispatch_accept
	jmp	LBB0_10
LBB0_4:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r13
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_14
LBB0_12:
	movq	%r13, %rax
	jmp	LBB0_23
LBB0_13:
	movq	%r13, %rcx
	movq	%r13, %r12
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_26
	jmp	LBB0_23
LBB0_9:
	callq	_dispatch_recv
LBB0_10:
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
LBB0_14:
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.16:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	jne	LBB0_18
## %bb.17:
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_LOCK
	movq	%r12, %rdi
LBB0_18:
	movq	%rdi, %r12
	callq	_SOCK_DEAD
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	%r12, %rdi
	cmpq	$0, 8(%r12)
	je	LBB0_21
## %bb.20:
	callq	_dispatch_connect
	jmp	LBB0_22
LBB0_15:
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rcx, %r13
	jmp	LBB0_26
LBB0_21:
	callq	_dispatch_send
LBB0_22:
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_23:
	movq	%rcx, %r13
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	callq	_UNLOCK
LBB0_25:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_26:
	addq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_UNLOCK
	testq	%r13, %r13
	je	LBB0_28
## %bb.27:
	movq	_SELECT_POKE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_unwatch_fd
LBB0_28:
	testq	%r12, %r12
	je	LBB0_29
LBB0_2:
	movq	_SELECT_POKE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unwatch_fd                     ## TAILCALL
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_FALSE,8,3                  ## @ISC_FALSE
	.comm	_CLOSE_PENDING,8,3              ## @CLOSE_PENDING
	.comm	_SELECT_POKE_READ,4,2           ## @SELECT_POKE_READ
	.comm	_SELECT_POKE_WRITE,4,2          ## @SELECT_POKE_WRITE
	.comm	_ISC_TRUE,8,3                   ## @ISC_TRUE
	.no_dead_strip	_process_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_fd
_process_fd:                            ; @process_fd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _ISC_FALSE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ISC_FALSE@GOTPAGEOFF]
	ldr	x25, [x26]
	mov	x0, x1
	bl	_FDLOCK_ID
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20, #8]
	sxtw	x24, w0
	add	x0, x8, w0, sxtw #2
	bl	_LOCK
	ldr	x8, [x20]
	ldr	x8, [x8, w19, sxtw #3]
Lloh2:
	adrp	x9, _CLOSE_PENDING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CLOSE_PENDING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	add	x0, x8, x24, lsl #2
	bl	_UNLOCK
Lloh5:
	adrp	x8, _SELECT_POKE_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SELECT_POKE_READ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_unwatch_fd
	b	LBB0_27
LBB0_2:
	sxtw	x8, w19
	ldr	x9, [x20, #16]
	ldr	x21, [x9, x8, lsl #3]
	ldr	x27, [x26]
	cbz	x23, LBB0_7
; %bb.3:
Lloh8:
	adrp	x23, _ISC_TRUE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ISC_TRUE@GOTPAGEOFF]
	ldr	x26, [x23]
	cbz	x21, LBB0_9
; %bb.4:
	mov	x0, x21
	bl	_LOCK
	mov	x0, x21
	bl	_SOCK_DEAD
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_dispatch_accept
	b	LBB0_11
LBB0_7:
	mov	x23, x25
	mov	x26, x27
	cbnz	x22, LBB0_12
LBB0_8:
	mov	x27, x26
	b	LBB0_21
LBB0_9:
	mov	x23, x26
	mov	x28, x26
	cbnz	x22, LBB0_24
	b	LBB0_21
LBB0_10:
	mov	x0, x21
	bl	_dispatch_recv
LBB0_11:
	ldr	x23, [x23]
	cbz	x22, LBB0_8
LBB0_12:
	cbz	x21, LBB0_18
; %bb.13:
	mov	x27, x26
	cbnz	x26, LBB0_15
; %bb.14:
Lloh10:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh12:
	ldr	x27, [x8]
	mov	x0, x21
	bl	_LOCK
LBB0_15:
	mov	x0, x21
	bl	_SOCK_DEAD
	cbnz	w0, LBB0_20
; %bb.16:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_dispatch_connect
	b	LBB0_20
LBB0_18:
Lloh13:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh15:
	ldr	x28, [x8]
	mov	x26, x23
	b	LBB0_24
LBB0_19:
	mov	x0, x21
	bl	_dispatch_send
LBB0_20:
Lloh16:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh18:
	ldr	x25, [x8]
LBB0_21:
	cbz	x27, LBB0_23
; %bb.22:
	mov	x0, x21
	bl	_UNLOCK
LBB0_23:
	mov	x26, x23
	mov	x28, x25
LBB0_24:
	ldr	x8, [x20, #8]
	add	x0, x8, x24, lsl #2
	bl	_UNLOCK
	cbz	x26, LBB0_26
; %bb.25:
Lloh19:
	adrp	x8, _SELECT_POKE_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SELECT_POKE_READ@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_unwatch_fd
LBB0_26:
	cbz	x28, LBB0_28
LBB0_27:
Lloh22:
	adrp	x8, _SELECT_POKE_WRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SELECT_POKE_WRITE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_unwatch_fd
LBB0_28:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_FALSE,8,3                  ; @ISC_FALSE
	.comm	_CLOSE_PENDING,8,3              ; @CLOSE_PENDING
	.comm	_SELECT_POKE_READ,4,2           ; @SELECT_POKE_READ
	.comm	_SELECT_POKE_WRITE,4,2          ; @SELECT_POKE_WRITE
	.comm	_ISC_TRUE,8,3                   ; @ISC_TRUE
	.no_dead_strip	_process_fd
.subsections_via_symbols
