	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_callback_reader
_tcp_callback_reader:                   ## @tcp_callback_reader
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_comm_tcp@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	sete	%cl
	movq	_comm_local@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_log_assert
	movl	64(%rbx), %edi
	callq	_sldns_buffer_flip
	cmpq	$0, 56(%rbx)
	je	LBB0_2
## %bb.1:
	movq	$0, 48(%rbx)
LBB0_2:
	movq	$0, 40(%rbx)
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tcp_req_info_handle_readdone   ## TAILCALL
LBB0_3:
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_comm_point_stop_listening
LBB0_5:
	movq	24(%rbx), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movl	16(%rbx), %esi
	movq	_NETEVENT_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	12(%rbx), %rcx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_comm_point_start_listening     ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_tcp,8,3                   ## @comm_tcp
	.comm	_comm_local,8,3                 ## @comm_local
	.comm	_NETEVENT_NOERROR,4,2           ## @NETEVENT_NOERROR
	.no_dead_strip	_tcp_callback_reader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_callback_reader
_tcp_callback_reader:                   ; @tcp_callback_reader
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _comm_tcp@GOTPAGE
Lloh1:
	ldr	x20, [x20, _comm_tcp@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
Lloh2:
	adrp	x9, _comm_local@GOTPAGE
Lloh3:
	ldr	x9, [x9, _comm_local@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_log_assert
	ldr	w0, [x19, #64]
	bl	_sldns_buffer_flip
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #48]
LBB0_2:
	str	xzr, [x19, #40]
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tcp_req_info_handle_readdone
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_comm_point_stop_listening
LBB0_6:
	ldr	x0, [x19, #24]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
Lloh5:
	adrp	x9, _NETEVENT_NOERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NETEVENT_NOERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	add	x3, x19, #12
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_comm_point_start_listening
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_tcp,8,3                   ; @comm_tcp
	.comm	_comm_local,8,3                 ; @comm_local
	.comm	_NETEVENT_NOERROR,4,2           ; @NETEVENT_NOERROR
	.no_dead_strip	_tcp_callback_reader
.subsections_via_symbols
