	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_tcp_handle_callback ## -- Begin function comm_point_tcp_handle_callback
	.p2align	4, 0x90
_comm_point_tcp_handle_callback:        ## @comm_point_tcp_handle_callback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	(%rdx), %rax
	movq	_comm_tcp@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	movq	72(%r15), %rax
	movl	(%rax), %edi
	callq	_ub_comm_base_now
	movq	_UB_EV_TIMEOUT@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movq	%r15, %rdi
	callq	_reclaim_tcp_handler
	cmpl	$0, 48(%r15)
	jne	LBB0_14
## %bb.2:
	movq	40(%r15), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movq	40(%r15), %rax
	movl	32(%r15), %esi
	movq	_NETEVENT_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	movq	_UB_EV_READ@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_12
## %bb.4:
	movq	24(%r15), %rbx
	movl	%r14d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_comm_point_tcp_handle_read
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_6
LBB0_12:
	movq	_UB_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_15
## %bb.13:
	movq	24(%r15), %rbx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_comm_point_tcp_handle_write
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_reclaim_tcp_handler
	cmpl	$0, 48(%r15)
	je	LBB0_7
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_9:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.11:
	movl	%r14d, %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tcp_req_info_read_again        ## TAILCALL
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_err                        ## TAILCALL
LBB0_7:
	movq	40(%r15), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movl	32(%r15), %esi
	movq	_NETEVENT_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	*40(%r15)
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_tcp,8,3                   ## @comm_tcp
	.comm	_UB_EV_TIMEOUT,2,1              ## @UB_EV_TIMEOUT
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp took too long, dropped"

	.comm	_NETEVENT_TIMEOUT,4,2           ## @NETEVENT_TIMEOUT
	.comm	_UB_EV_READ,2,1                 ## @UB_EV_READ
	.comm	_NETEVENT_CLOSED,4,2            ## @NETEVENT_CLOSED
	.comm	_UB_EV_WRITE,2,1                ## @UB_EV_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"Ignored event %d for tcphdl."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_tcp_handle_callback ; -- Begin function comm_point_tcp_handle_callback
	.p2align	2
_comm_point_tcp_handle_callback:        ; @comm_point_tcp_handle_callback
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _comm_tcp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _comm_tcp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_log_assert
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	bl	_ub_comm_base_now
Lloh3:
	adrp	x8, _UB_EV_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UB_EV_TIMEOUT@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w21
	tst	w8, #0xffff
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	mov	x0, x19
	bl	_reclaim_tcp_handler
	ldr	w8, [x19, #48]
	cbnz	w8, LBB0_14
; %bb.2:
	ldr	x0, [x19, #40]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x4, [x19, #40]
Lloh10:
	adrp	x8, _NETEVENT_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETEVENT_TIMEOUT@GOTPAGEOFF]
	ldr	w1, [x19, #32]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	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
	br	x4
LBB0_3:
Lloh13:
	adrp	x8, _UB_EV_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UB_EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x21, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_comm_point_tcp_handle_read
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _UB_EV_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UB_EV_WRITE@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_12
; %bb.6:
	ldr	x21, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_comm_point_tcp_handle_write
	cbnz	w0, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_reclaim_tcp_handler
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_13
LBB0_8:
	cbz	x21, LBB0_14
LBB0_9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	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
	b	_tcp_req_info_read_again
LBB0_12:
	str	x21, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	b	LBB0_14
LBB0_13:
	ldr	x0, [x19, #40]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x8, [x19, #40]
	ldr	w1, [x19, #32]
Lloh19:
	adrp	x9, _NETEVENT_CLOSED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NETEVENT_CLOSED@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, #0
	blr	x8
	cbnz	x21, LBB0_9
LBB0_14:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_tcp,8,3                   ; @comm_tcp
	.comm	_UB_EV_TIMEOUT,2,1              ; @UB_EV_TIMEOUT
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp took too long, dropped"

	.comm	_NETEVENT_TIMEOUT,4,2           ; @NETEVENT_TIMEOUT
	.comm	_UB_EV_READ,2,1                 ; @UB_EV_READ
	.comm	_NETEVENT_CLOSED,4,2            ; @NETEVENT_CLOSED
	.comm	_UB_EV_WRITE,2,1                ; @UB_EV_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"Ignored event %d for tcphdl."

.subsections_via_symbols
