	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_recv
_socket_recv:                           ## @socket_recv
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, -64(%rbp)
	movq	_ISC_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	$0, -56(%rbp)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rdx, 8(%rsi)
	movq	(%rdi), %rax
	movq	_isc_sockettype_udp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	8(%r15), %rdi
	callq	_LOCK
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	12(%r15), %edi
	callq	_ISC_LIST_EMPTY
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_doio_recv
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_isc_task_attach
	movq	_ISC_SOCKEVENTATTR_ATTACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	testq	%r14, %r14
	jne	LBB0_6
## %bb.5:
	leaq	8(%r15), %rdi
	callq	_LOCK
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_6:
	movl	12(%r15), %edi
	callq	_ISC_LIST_EMPTY
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	cmpl	$0, 24(%r15)
	jne	LBB0_9
## %bb.8:
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	movq	_SELECT_POKE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_select_poke
LBB0_9:
	movl	12(%r15), %edi
	movq	_ev_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_ISC_LIST_ENQUEUE
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rax
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	-56(%rbp)
	pushq	%r12
	pushq	%rax
	callq	_socket_log
	addq	$32, %rsp
	movq	_ISC_SOCKFLAG_IMMEDIATE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.10:
	movq	_ISC_R_INPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_11:
	movq	_ISC_R_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_12:
	movq	_ISC_SOCKFLAG_IMMEDIATE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_14
## %bb.13:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_send_recvdone_event
LBB0_14:
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_UNLOCK
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_ISC_FALSE,8,3                  ## @ISC_FALSE
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.comm	_isc_sockettype_udp,8,3         ## @isc_sockettype_udp
	.comm	_ISC_TRUE,8,3                   ## @ISC_TRUE
	.comm	_ISC_SOCKEVENTATTR_ATTACHED,4,2 ## @ISC_SOCKEVENTATTR_ATTACHED
	.comm	_SELECT_POKE_READ,4,2           ## @SELECT_POKE_READ
	.comm	_ev_link,4,2                    ## @ev_link
	.comm	_EVENT,4,2                      ## @EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket_recv: event %p -> task %p"

	.comm	_ISC_SOCKFLAG_IMMEDIATE,4,2     ## @ISC_SOCKFLAG_IMMEDIATE
	.comm	_ISC_R_INPROGRESS,4,2           ## @ISC_R_INPROGRESS
	.comm	_ISC_R_EOF,4,2                  ## @ISC_R_EOF
	.no_dead_strip	_socket_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_recv
_socket_recv:                           ; @socket_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ISC_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_FALSE@GOTPAGEOFF]
	stp	xzr, x1, [sp, #16]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	str	x2, [x1, #8]
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _isc_sockettype_udp@GOTPAGE
Lloh7:
	ldr	x9, [x9, _isc_sockettype_udp@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_LOCK
Lloh9:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
	ldr	w0, [x19, #12]
	bl	_ISC_LIST_EMPTY
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	bl	_doio_recv
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.3:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	add	x1, sp, #16
	mov	x0, x23
	bl	_isc_task_attach
Lloh14:
	adrp	x8, _ISC_SOCKEVENTATTR_ATTACHED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISC_SOCKEVENTATTR_ATTACHED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
	cbnz	x24, LBB0_6
; %bb.5:
	add	x0, x19, #8
	bl	_LOCK
Lloh17:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh19:
	ldr	x24, [x8]
LBB0_6:
	ldr	w0, [x19, #12]
	bl	_ISC_LIST_EMPTY
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_9
; %bb.8:
	ldp	w1, w0, [x19, #16]
Lloh20:
	adrp	x8, _SELECT_POKE_READ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SELECT_POKE_READ@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_select_poke
LBB0_9:
	ldr	w0, [x19, #12]
Lloh23:
	adrp	x8, _ev_link@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ev_link@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_ISC_LIST_ENQUEUE
Lloh26:
	adrp	x8, _EVENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EVENT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh29:
	adrp	x6, l_.str@PAGE
Lloh30:
	add	x6, x6, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	mov	x7, x22
	bl	_socket_log
Lloh31:
	adrp	x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _ISC_R_INPROGRESS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ISC_R_INPROGRESS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w20, w20, w9, eq
	b	LBB0_13
LBB0_10:
Lloh37:
	adrp	x8, _ISC_R_EOF@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ISC_R_EOF@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_11:
Lloh40:
	adrp	x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_13
; %bb.12:
	add	x1, sp, #24
	mov	x0, x19
	bl	_send_recvdone_event
LBB0_13:
	cbz	x24, LBB0_15
; %bb.14:
	add	x0, x19, #8
	bl	_UNLOCK
LBB0_15:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_ISC_FALSE,8,3                  ; @ISC_FALSE
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.comm	_isc_sockettype_udp,8,3         ; @isc_sockettype_udp
	.comm	_ISC_TRUE,8,3                   ; @ISC_TRUE
	.comm	_ISC_SOCKEVENTATTR_ATTACHED,4,2 ; @ISC_SOCKEVENTATTR_ATTACHED
	.comm	_SELECT_POKE_READ,4,2           ; @SELECT_POKE_READ
	.comm	_ev_link,4,2                    ; @ev_link
	.comm	_EVENT,4,2                      ; @EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket_recv: event %p -> task %p"

	.comm	_ISC_SOCKFLAG_IMMEDIATE,4,2     ; @ISC_SOCKFLAG_IMMEDIATE
	.comm	_ISC_R_INPROGRESS,4,2           ; @ISC_R_INPROGRESS
	.comm	_ISC_R_EOF,4,2                  ; @ISC_R_EOF
	.no_dead_strip	_socket_recv
.subsections_via_symbols
