	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_local_handle_callback ## -- Begin function comm_point_local_handle_callback
	.p2align	4, 0x90
_comm_point_local_handle_callback:      ## @comm_point_local_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, %rbx
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	(%rdx), %rax
	movq	_comm_local@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_ub_comm_base_now
	movq	_UB_EV_READ@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_3
## %bb.1:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_comm_point_tcp_handle_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movswl	%r15w, %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_err                        ## TAILCALL
LBB0_2:
	movq	16(%rbx), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movq	16(%rbx), %rax
	movl	8(%rbx), %esi
	movq	_NETEVENT_CLOSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_local,8,3                 ## @comm_local
	.comm	_UB_EV_READ,2,1                 ## @UB_EV_READ
	.comm	_NETEVENT_CLOSED,4,2            ## @NETEVENT_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignored event %d for localhdl."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_local_handle_callback ; -- Begin function comm_point_local_handle_callback
	.p2align	2
_comm_point_local_handle_callback:      ; @comm_point_local_handle_callback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _comm_local@GOTPAGE
Lloh1:
	ldr	x9, [x9, _comm_local@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_log_assert
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_ub_comm_base_now
Lloh3:
	adrp	x8, _UB_EV_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UB_EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w20
	tst	w8, #0xffff
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_comm_point_tcp_handle_read
	cbz	w0, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_log_err
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x4, [x19, #16]
Lloh7:
	adrp	x8, _NETEVENT_CLOSED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETEVENT_CLOSED@GOTPAGEOFF]
	ldr	w1, [x19, #8]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_local,8,3                 ; @comm_local
	.comm	_UB_EV_READ,2,1                 ; @UB_EV_READ
	.comm	_NETEVENT_CLOSED,4,2            ; @NETEVENT_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignored event %d for localhdl."

.subsections_via_symbols
