	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comm_point_tcp_handle_read
_comm_point_tcp_handle_read:            ## @comm_point_tcp_handle_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_comm_tcp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_comm_local@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	movl	%edx, %r15d
	movl	%edi, %r14d
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_log_assert
	cmpq	$0, 48(%rbx)
	je	LBB0_1
## %bb.29:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ssl_handle_it                  ## TAILCALL
LBB0_1:
	cmpl	$0, 40(%rbx)
	je	LBB0_25
## %bb.2:
	xorl	%edi, %edi
	cmpl	$-1, %r14d
	setne	%dil
	callq	_log_assert
	movl	8(%rbx), %esi
	cmpl	$3, %esi
	ja	LBB0_17
## %bb.3:
	movl	12(%rbx), %edi
	callq	_sldns_buffer_at
	movl	$4, %edx
	subl	8(%rbx), %edx
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_recv
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	addl	8(%rbx), %eax
	movl	%eax, 8(%rbx)
	movl	$1, %r12d
	cmpl	$4, %eax
	jne	LBB0_28
## %bb.10:
	movl	12(%rbx), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_sldns_buffer_read_u16_at
	movq	%rax, %r13
	movl	12(%rbx), %edi
	callq	_sldns_buffer_capacity
	cmpq	%rax, %r13
	jle	LBB0_13
## %bb.11:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	xorl	%eax, %eax
	callq	_verbose
	jmp	LBB0_28
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	cmpq	(%rax), %rdi
	je	LBB0_28
## %bb.7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_28
## %bb.8:
	callq	_strerror
	movl	16(%rbx), %ecx
	addq	$20, %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_24
LBB0_13:
	movl	12(%rbx), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_sldns_buffer_read_u16_at
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_sldns_buffer_set_limit
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.14:
	movl	12(%rbx), %edi
	callq	_sldns_buffer_limit
	movq	_LDNS_HEADER_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.15:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_16:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	12(%rbx), %edi
	callq	_sldns_buffer_limit
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_verbose
LBB0_17:
	movl	12(%rbx), %edi
	callq	_sldns_buffer_remaining
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_log_assert
	movl	12(%rbx), %edi
	callq	_sldns_buffer_current
	movq	%rax, %r15
	movl	12(%rbx), %edi
	callq	_sldns_buffer_remaining
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_recv
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.18:
	testl	%eax, %eax
	jne	LBB0_26
LBB0_19:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tcp_req_info_handle_read_close ## TAILCALL
LBB0_21:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	cmpq	(%rax), %rdi
	je	LBB0_28
## %bb.22:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_28
## %bb.23:
	callq	_strerror
	movl	16(%rbx), %ecx
	addq	$20, %rbx
	leaq	L_.str.4(%rip), %rdi
LBB0_24:
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_log_err_addr
LBB0_25:
	xorl	%r12d, %r12d
LBB0_28:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	12(%rbx), %edi
	movl	%eax, %esi
	callq	_sldns_buffer_skip
	movl	12(%rbx), %edi
	callq	_sldns_buffer_remaining
	movl	$1, %r12d
	testl	%eax, %eax
	jg	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	callq	_tcp_callback_reader
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_tcp,8,3                   ## @comm_tcp
	.comm	_comm_local,8,3                 ## @comm_local
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read (in tcp s)"

	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
L_.str.1:                               ## @.str.1
	.asciz	"tcp: dropped larger than buffer"

	.comm	_LDNS_HEADER_SIZE,8,3           ## @LDNS_HEADER_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"tcp: dropped bogus too short."

	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.3:                               ## @.str.3
	.asciz	"Reading tcp query of length %d"

L_.str.4:                               ## @.str.4
	.asciz	"read (in tcp r)"

	.comm	_ECONNRESET,8,3                 ## @ECONNRESET
	.comm	_UB_EV_READ,4,2                 ## @UB_EV_READ
	.comm	_WSAECONNRESET,8,3              ## @WSAECONNRESET
	.comm	_WSAEINPROGRESS,8,3             ## @WSAEINPROGRESS
	.comm	_WSAEWOULDBLOCK,8,3             ## @WSAEWOULDBLOCK
	.comm	_verbosity,4,2                  ## @verbosity
	.no_dead_strip	_comm_point_tcp_handle_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comm_point_tcp_handle_read
_comm_point_tcp_handle_read:            ; @comm_point_tcp_handle_read
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _comm_tcp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _comm_tcp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _comm_local@GOTPAGE
Lloh4:
	ldr	x9, [x9, _comm_local@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_log_assert
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, 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	_ssl_handle_it
LBB0_2:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_22
; %bb.3:
	cmn	w20, #1
	cset	w0, ne
	bl	_log_assert
	ldr	w1, [x19, #8]
	cmp	w1, #3
	b.hi	LBB0_15
; %bb.4:
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_at
	mov	x1, x0
	ldr	w8, [x19, #8]
	mov	w9, #4
	sub	w2, w9, w8
	mov	x0, x20
	mov	w3, #0
	bl	_recv
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.5:
	cbz	w0, LBB0_17
; %bb.6:
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	cmp	w8, #4
	b.ne	LBB0_25
; %bb.7:
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_sldns_buffer_read_u16_at
	mov	x22, x0
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_capacity
	cmp	x22, x0
	b.le	LBB0_11
; %bb.8:
Lloh6:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
	b	LBB0_22
LBB0_9:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
Lloh14:
	adrp	x8, _EINTR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_25
; %bb.10:
	bl	_strerror
	mov	x1, x0
	add	x2, x19, #20
	ldr	w3, [x19, #16]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_21
LBB0_11:
	ldr	w22, [x19, #12]
	mov	x0, x22
	mov	w1, #0
	bl	_sldns_buffer_read_u16_at
	mov	x1, x0
	mov	x0, x22
	bl	_sldns_buffer_set_limit
	cbnz	w21, LBB0_14
; %bb.12:
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_limit
Lloh22:
	adrp	x8, _LDNS_HEADER_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LDNS_HEADER_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.13:
Lloh25:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_verbose
	b	LBB0_22
LBB0_14:
Lloh30:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_limit
	str	x0, [sp]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_verbose
LBB0_15:
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_remaining
	cmp	w0, #0
	cset	w0, gt
	bl	_log_assert
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_current
	mov	x21, x0
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_remaining
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_recv
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.16:
	mov	x1, x0
	cbnz	w0, LBB0_23
LBB0_17:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_26
; %bb.18:
	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_handle_read_close
LBB0_19:
Lloh35:
	adrp	x8, _errno@GOTPAGE
Lloh36:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh37:
	ldr	x0, [x8]
Lloh38:
	adrp	x8, _EINTR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh42:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_25
; %bb.20:
	bl	_strerror
	mov	x1, x0
	add	x2, x19, #20
	ldr	w3, [x19, #16]
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_21:
	bl	_log_err_addr
LBB0_22:
	mov	w0, #0
	b	LBB0_26
LBB0_23:
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_skip
	ldr	w0, [x19, #12]
	bl	_sldns_buffer_remaining
	cmp	w0, #0
	b.gt	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_tcp_callback_reader
LBB0_25:
	mov	w0, #1
LBB0_26:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_tcp,8,3                   ; @comm_tcp
	.comm	_comm_local,8,3                 ; @comm_local
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read (in tcp s)"

	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
l_.str.1:                               ; @.str.1
	.asciz	"tcp: dropped larger than buffer"

	.comm	_LDNS_HEADER_SIZE,8,3           ; @LDNS_HEADER_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"tcp: dropped bogus too short."

	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.3:                               ; @.str.3
	.asciz	"Reading tcp query of length %d"

l_.str.4:                               ; @.str.4
	.asciz	"read (in tcp r)"

	.comm	_ECONNRESET,8,3                 ; @ECONNRESET
	.comm	_UB_EV_READ,4,2                 ; @UB_EV_READ
	.comm	_WSAECONNRESET,8,3              ; @WSAECONNRESET
	.comm	_WSAEINPROGRESS,8,3             ; @WSAEINPROGRESS
	.comm	_WSAEWOULDBLOCK,8,3             ; @WSAEWOULDBLOCK
	.comm	_verbosity,4,2                  ; @verbosity
	.no_dead_strip	_comm_point_tcp_handle_read
.subsections_via_symbols
