	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_next_header
_http_next_header:                      ## @http_next_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	%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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_http_conn_trimright
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	16(%r15), %rdi
	cmpq	%rsi, (%r15)
	jg	LBB0_6
## %bb.3:
	incl	%esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_realloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	(%r12), %rax
	incq	%rax
	movq	%rax, (%r15)
LBB0_6:
	movq	8(%r12), %rsi
	callq	_strcpy
	movl	(%r12), %eax
	movl	%eax, 8(%r15)
	movq	_HTTP_MAX_CONT_LINES@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_16
## %bb.7:
	xorl	%r14d, %r14d
	movq	_hdr_syserror@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r15), %rax
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, %ecx
	leaq	(%rax,%rcx,4), %rdi
	callq	_strcpy
	movl	(%r12), %eax
	addl	%eax, 8(%r15)
	incl	%r14d
	cmpl	(%rbx), %r14d
	jae	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_fetch_getln
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_http_conn_trimright
	movq	8(%r12), %rsi
	movzbl	(%rsi), %eax
	cmpb	$32, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$9, %al
	jne	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%r15), %ecx
	movl	(%r12), %eax
	leal	(%rcx,%rax), %edx
	incl	%edx
	cmpq	%rdx, (%r15)
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%eax, %ecx
	movq	16(%r15), %rdi
	leal	(%rcx,%rcx), %ebx
	incl	%ebx
	movl	%ebx, %esi
	callq	_realloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %ecx
	movq	%rcx, (%r15)
	movl	8(%r15), %ecx
	movq	8(%r12), %rsi
	movq	_HTTP_MAX_CONT_LINES@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_1:
	movq	_hdr_end@GOTPCREL(%rip), %r13
	jmp	LBB0_20
LBB0_16:
	movq	_hdr_names@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rcx), %rax
	movq	_hdr_unknown@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	shlq	$4, %r13
	movl	8(%rcx,%r13), %edi
	movq	16(%r15), %rsi
	callq	_http_match
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	movq	(%r14), %rcx
	movq	%rbx, %rax
	shlq	$4, %rax
	movq	(%rcx,%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_18
	jmp	LBB0_21
LBB0_4:
	movq	_hdr_syserror@GOTPCREL(%rip), %r13
	jmp	LBB0_20
LBB0_19:
	addq	(%r14), %r13
LBB0_20:
	movq	(%r13), %rax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hdr_end,8,3                    ## @hdr_end
	.comm	_hdr_syserror,8,3               ## @hdr_syserror
	.comm	_HTTP_MAX_CONT_LINES,4,2        ## @HTTP_MAX_CONT_LINES
	.comm	_hdr_names,8,3                  ## @hdr_names
	.comm	_hdr_unknown,8,3                ## @hdr_unknown
	.no_dead_strip	_http_next_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_next_header
_http_next_header:                      ; @http_next_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_http_conn_trimright
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	x9, [x20]
	ldr	x0, [x20, #16]
	cmp	x9, x8
	b.gt	LBB0_4
; %bb.2:
	add	w1, w8, #1
	bl	_realloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_18
; %bb.3:
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x20]
LBB0_4:
	ldr	x1, [x21, #8]
	bl	_strcpy
	ldr	x8, [x21]
	str	w8, [x20, #8]
Lloh0:
	adrp	x24, _HTTP_MAX_CONT_LINES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HTTP_MAX_CONT_LINES@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_14
; %bb.5:
	mov	w25, #0
Lloh2:
	adrp	x23, _hdr_syserror@GOTPAGE
Lloh3:
	ldr	x23, [x23, _hdr_syserror@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x0, w8, uxtw #2
	bl	_strcpy
	ldr	w8, [x21]
	ldr	w9, [x20, #8]
	add	w8, w9, w8
	str	w8, [x20, #8]
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.hs	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_fetch_getln
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_http_conn_trimright
	ldr	x1, [x21, #8]
	ldrb	w8, [x1]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20, #8]
	ldr	w9, [x21]
	add	w9, w8, w9
	ldr	x10, [x20]
	add	w11, w9, #1
	cmp	x10, x11
	b.ge	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	mov	w22, #1
	bfi	w22, w9, #1, #31
	mov	x1, x22
	bl	_realloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x22, [x20]
	ldr	w8, [x20, #8]
	ldr	x1, [x21, #8]
	b	LBB0_7
LBB0_13:
Lloh4:
	adrp	x23, _hdr_end@GOTPAGE
Lloh5:
	ldr	x23, [x23, _hdr_end@GOTPAGEOFF]
	b	LBB0_20
LBB0_14:
Lloh6:
	adrp	x21, _hdr_names@GOTPAGE
Lloh7:
	ldr	x21, [x21, _hdr_names@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
Lloh8:
	adrp	x22, _hdr_unknown@GOTPAGE
Lloh9:
	ldr	x22, [x22, _hdr_unknown@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x0, x9
	b.eq	LBB0_21
; %bb.15:
	mov	x23, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23, lsl #4
	ldr	w0, [x8, #8]
	ldr	x1, [x20, #16]
	bl	_http_match
	str	x0, [x19]
	cbnz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w23, w23, #1
	ldr	x8, [x21]
	lsl	x9, x23, #4
	ldr	x0, [x8, x9]
	ldr	x9, [x22]
	cmp	x0, x9
	b.ne	LBB0_16
	b	LBB0_21
LBB0_18:
Lloh10:
	adrp	x23, _hdr_syserror@GOTPAGE
Lloh11:
	ldr	x23, [x23, _hdr_syserror@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	ldr	x8, [x21]
	add	x23, x8, x23, lsl #4
LBB0_20:
	ldr	x0, [x23]
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_hdr_end,8,3                    ; @hdr_end
	.comm	_hdr_syserror,8,3               ; @hdr_syserror
	.comm	_HTTP_MAX_CONT_LINES,4,2        ; @HTTP_MAX_CONT_LINES
	.comm	_hdr_names,8,3                  ; @hdr_names
	.comm	_hdr_unknown,8,3                ; @hdr_unknown
	.no_dead_strip	_http_next_header
.subsections_via_symbols
