	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_nonchunk_segment
_http_nonchunk_segment:                 ## @http_nonchunk_segment
	.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
	movl	32(%rdi), %edi
	callq	_sldns_buffer_limit
	subq	(%rbx), %rax
	movq	8(%rbx), %rcx
	subq	%rax, %rcx
	jbe	LBB0_1
## %bb.2:
	movq	%rcx, 8(%rbx)
	movl	32(%rbx), %edi
	callq	_sldns_buffer_capacity
	movq	%rax, %r14
	movl	32(%rbx), %edi
	callq	_sldns_buffer_limit
	subq	%rax, %r14
	cmpq	8(%rbx), %r14
	jae	LBB0_4
## %bb.3:
	cmpq	$2048, %r14                     ## imm = 0x800
	jae	LBB0_4
## %bb.5:
	movq	$0, (%rbx)
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	callq	_sldns_buffer_set_position
	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
	jmp	LBB0_6
LBB0_1:
	movq	$0, (%rbx)
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	callq	_sldns_buffer_set_position
	movq	24(%rbx), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movl	16(%rbx), %esi
	movq	_NETEVENT_DONE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	*24(%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	32(%rbx), %edi
	callq	_sldns_buffer_limit
	movq	%rax, %r14
	movl	32(%rbx), %edi
	callq	_sldns_buffer_clear
	movl	32(%rbx), %edi
	movq	%r14, %rsi
	callq	_sldns_buffer_set_position
	movq	%r14, (%rbx)
LBB0_7:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETEVENT_DONE,4,2              ## @NETEVENT_DONE
	.comm	_NETEVENT_NOERROR,4,2           ## @NETEVENT_NOERROR
	.no_dead_strip	_http_nonchunk_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_nonchunk_segment
_http_nonchunk_segment:                 ; @http_nonchunk_segment
	.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	w0, [x0, #32]
	bl	_sldns_buffer_limit
	ldp	x8, x9, [x19]
	sub	x8, x0, x8
	subs	x8, x9, x8
	b.ls	LBB0_4
; %bb.1:
	str	x8, [x19, #8]
	ldr	w0, [x19, #32]
	bl	_sldns_buffer_capacity
	mov	x20, x0
	ldr	w0, [x19, #32]
	bl	_sldns_buffer_limit
	ldr	x9, [x19, #8]
	sub	x8, x20, x0
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.2:
	cmp	x8, #2048
	b.hs	LBB0_6
; %bb.3:
	str	xzr, [x19]
	ldr	w0, [x19, #32]
	mov	x1, #0
	bl	_sldns_buffer_set_position
	ldr	x0, [x19, #24]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x9, _NETEVENT_NOERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETEVENT_NOERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	str	xzr, [x19]
	ldr	w0, [x19, #32]
	mov	x1, #0
	bl	_sldns_buffer_set_position
	ldr	x0, [x19, #24]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
Lloh2:
	adrp	x9, _NETEVENT_DONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETEVENT_DONE@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, #0
	blr	x8
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #32]
	bl	_sldns_buffer_limit
	mov	x20, x0
	ldr	w0, [x19, #32]
	bl	_sldns_buffer_clear
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_sldns_buffer_set_position
	str	x20, [x19]
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NETEVENT_DONE,4,2              ; @NETEVENT_DONE
	.comm	_NETEVENT_NOERROR,4,2           ; @NETEVENT_NOERROR
	.no_dead_strip	_http_nonchunk_segment
.subsections_via_symbols
