	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_process_chunk_header
_http_process_chunk_header:             ## @http_process_chunk_header
	.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	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_http_header_line
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	cmpl	$3, (%r15)
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jne	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_verbose
	cmpb	$0, (%rbx)
	jne	LBB0_11
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.5:
	movl	$1, (%r15)
	movl	16(%r15), %edi
	callq	_http_moveover_buffer
	movl	16(%r15), %edi
	callq	_sldns_buffer_flip
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_verbose
	cmpl	$1, (%r15)
	jne	LBB0_11
## %bb.7:
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_strtol
	movq	%rax, 8(%r15)
	cmpq	%rbx, -32(%rbp)
	je	LBB0_8
## %bb.9:
	movl	$0, (%r15)
	movl	16(%r15), %edi
	callq	_http_moveover_buffer
	movl	16(%r15), %edi
	callq	_sldns_buffer_flip
	movl	$1, %r14d
	cmpq	$0, 8(%r15)
	jne	LBB0_11
## %bb.10:
	movl	$3, (%r15)
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	movl	16(%r15), %edi
	xorl	%esi, %esi
	callq	_sldns_buffer_set_position
	movl	16(%r15), %edi
	xorl	%esi, %esi
	callq	_sldns_buffer_set_limit
	movq	24(%r15), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movl	20(%r15), %esi
	movq	_NETEVENT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	*24(%r15)
	movl	$2, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http chunk trailer: %s"

	.comm	_NETEVENT_DONE,4,2              ## @NETEVENT_DONE
L_.str.1:                               ## @.str.1
	.asciz	"http chunk header: %s"

	.no_dead_strip	_http_process_chunk_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_process_chunk_header
_http_process_chunk_header:             ; @http_process_chunk_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_http_header_line
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VERB_ALGO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cmp	w8, #3
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_verbose
	ldrb	w8, [x20]
	cbnz	w8, LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.4:
	mov	w20, #1
	str	w20, [x19]
	ldr	w0, [x19, #16]
	bl	_http_moveover_buffer
	ldr	w0, [x19, #16]
	bl	_sldns_buffer_flip
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_verbose
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.6:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #16
	bl	_strtol
	str	x0, [x19, #8]
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.eq	LBB0_11
; %bb.7:
	str	wzr, [x19]
	ldr	w0, [x19, #16]
	bl	_http_moveover_buffer
	ldr	w0, [x19, #16]
	bl	_sldns_buffer_flip
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_9
; %bb.8:
	mov	w8, #3
	str	w8, [x19]
LBB0_9:
	mov	w20, #1
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	mov	w20, #0
	b	LBB0_10
LBB0_12:
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_sldns_buffer_set_position
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_sldns_buffer_set_limit
	ldr	x0, [x19, #24]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #20]
Lloh7:
	adrp	x9, _NETEVENT_DONE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETEVENT_DONE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, #0
	blr	x8
	mov	w20, #2
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http chunk trailer: %s"

	.comm	_NETEVENT_DONE,4,2              ; @NETEVENT_DONE
l_.str.1:                               ; @.str.1
	.asciz	"http chunk header: %s"

	.no_dead_strip	_http_process_chunk_header
.subsections_via_symbols
