	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_http_headers
_get_http_headers:                      ## @get_http_headers
	.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
	movl	$8216, %eax                     ## imm = 0x2018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -8240(%rbp)
	leaq	-8224(%rbp), %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_php_stream_gets
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	-8240(%rbp), %r14
	leaq	-8224(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-8224(%rbp), %ecx
	movzbl	-8223(%rbp), %eax
	movl	%ecx, %edx
	xorb	$13, %dl
	xorb	$10, %al
	orb	%dl, %al
	sete	%al
	cmpb	$10, %cl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_smart_str_appends
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_php_stream_gets
	testq	%rax, %rax
	jne	LBB0_2
LBB0_6:
	leaq	-8240(%rbp), %rdi
	callq	_smart_str_free
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	leaq	-8240(%rbp), %rdi
	callq	_smart_str_0
	movq	-8240(%rbp), %rax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$8216, %rsp                     ## imm = 0x2018
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_http_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_http_headers
_get_http_headers:                      ; @get_http_headers
	.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	w9, #8224
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #32
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	stp	xzr, xzr, [sp, #8]
	add	x1, sp, #24
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w2, #8192
	bl	_php_stream_gets
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [sp, #24]
	cmp	w8, #13
	ldrb	w9, [sp, #25]
	ccmp	w9, #10, #0, eq
	cset	w9, eq
	cmp	w8, #10
	add	x0, sp, #8
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #24
	bl	_smart_str_appends
	add	x1, sp, #24
	mov	x0, x19
	b	LBB0_1
LBB0_4:
	add	x0, sp, #8
	bl	_smart_str_free
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	bl	_smart_str_0
	ldr	x0, [sp, #8]
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_http_headers
.subsections_via_symbols
