	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_header_overflow_error     ## -- Begin function test_header_overflow_error
	.p2align	4, 0x90
_test_header_overflow_error:            ## @test_header_overflow_error
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testl	%edi, %edi
	sete	%r15b
	movq	_HTTP_REQUEST@GOTPCREL(%rip), %rax
	cmoveq	_HTTP_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rbx
	cmoveq	%rax, %rbx
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	callq	_http_parser_init
	orq	$16, %r15
	movq	_settings_null@GOTPCREL(%rip), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_http_parser_execute
	xorl	%edi, %edi
	cmpq	%r15, %rax
	sete	%dil
	callq	_assert
	movl	$10000, %ebx                    ## imm = 0x2710
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$26, %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_http_parser_execute
	cmpq	$26, %rax
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	jne	LBB0_2
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_abort
LBB0_3:
	leaq	-36(%rbp), %rdi
	callq	_HTTP_PARSER_ERRNO
	movq	_HPE_HEADER_OVERFLOW@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_REQUEST,4,2               ## @HTTP_REQUEST
	.comm	_HTTP_RESPONSE,4,2              ## @HTTP_RESPONSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET / HTTP/1.1\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"HTTP/1.0 200 OK\r\n"

	.comm	_settings_null,4,2              ## @settings_null
L_.str.2:                               ## @.str.2
	.asciz	"header-key: header-value\r\n"

	.comm	_HPE_HEADER_OVERFLOW,8,3        ## @HPE_HEADER_OVERFLOW
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"\n*** Error expected but none in header overflow test ***\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_header_overflow_error     ; -- Begin function test_header_overflow_error
	.p2align	2
_test_header_overflow_error:            ; @test_header_overflow_error
	.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
Lloh0:
	adrp	x8, _HTTP_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTTP_REQUEST@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HTTP_RESPONSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HTTP_RESPONSE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, l_.str@PAGE
Lloh5:
	add	x8, x8, l_.str@PAGEOFF
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x20, x9, x8, eq
	mov	w8, #16
	cinc	x21, x8, eq
	add	x0, sp, #12
	bl	_http_parser_init
Lloh8:
	adrp	x19, _settings_null@GOTPAGE
Lloh9:
	ldr	x19, [x19, _settings_null@GOTPAGEOFF]
	add	x0, sp, #12
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_http_parser_execute
	cmp	x0, x21
	cset	w0, eq
	bl	_assert
	mov	w21, #10000
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x19
	mov	x2, x20
	mov	w3, #26
	bl	_http_parser_execute
	cmp	x0, #26
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_1
; %bb.3:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	bl	_abort
LBB0_4:
	add	x0, sp, #12
	bl	_HTTP_PARSER_ERRNO
Lloh17:
	adrp	x8, _HPE_HEADER_OVERFLOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HPE_HEADER_OVERFLOW@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_REQUEST,4,2               ; @HTTP_REQUEST
	.comm	_HTTP_RESPONSE,4,2              ; @HTTP_RESPONSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET / HTTP/1.1\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"HTTP/1.0 200 OK\r\n"

	.comm	_settings_null,4,2              ; @settings_null
l_.str.2:                               ; @.str.2
	.asciz	"header-key: header-value\r\n"

	.comm	_HPE_HEADER_OVERFLOW,8,3        ; @HPE_HEADER_OVERFLOW
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"\n*** Error expected but none in header overflow test ***\n"

.subsections_via_symbols
