	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sapi_lsapi_send_headers
_sapi_lsapi_send_headers:               ## @sapi_lsapi_send_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_mod_lsapi_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.2:
	movq	%rbx, %rdi
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sapi_lsapi_send_headers_like_cgi ## TAILCALL
LBB0_3:
	movq	_lsapi_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	callq	_SG
	movl	%edx, %edi
	callq	_LSAPI_SetRespStatus
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_zend_llist_get_first_ex
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	-44(%rbp), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_zend_llist_get_next_ex
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LSAPI_AppendRespHeader
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_SG
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rsp, %r12
	movq	_SAPI_LSAPI_MAX_HEADER_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%eax, %eax
	callq	_sapi_get_default_content_type
	movq	%rax, %rbx
	movl	(%r15), %esi
	decl	%esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_snprintf
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_efree
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_LSAPI_AppendRespHeader
	movq	%r12, %rsp
LBB0_11:
	xorl	%eax, %eax
	callq	_LSAPI_FinalizeRespHeaders
	movq	_SAPI_HEADER_SENT_SUCCESSFULLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mod_lsapi_mode,8,3             ## @mod_lsapi_mode
	.comm	_lsapi_mode,8,3                 ## @lsapi_mode
	.comm	_SAPI_LSAPI_MAX_HEADER_LENGTH,4,2 ## @SAPI_LSAPI_MAX_HEADER_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Content-type: %s"

	.comm	_SAPI_HEADER_SENT_SUCCESSFULLY,4,2 ## @SAPI_HEADER_SENT_SUCCESSFULLY
	.no_dead_strip	_sapi_lsapi_send_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sapi_lsapi_send_headers
_sapi_lsapi_send_headers:               ; @sapi_lsapi_send_headers
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _mod_lsapi_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mod_lsapi_mode@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.2:
	mov	x0, x19
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sapi_lsapi_send_headers_like_cgi
LBB0_3:
Lloh9:
	adrp	x8, _lsapi_mode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lsapi_mode@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_SG
	mov	x0, x1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_LSAPI_SetRespStatus
	sub	x1, x29, #44
	mov	x0, x19
	bl	_zend_llist_get_first_ex
	cbnz	x0, LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_SG
	cbz	x0, LBB0_7
; %bb.6:
	mov	x22, sp
Lloh12:
	adrp	x21, _SAPI_LSAPI_MAX_HEADER_LENGTH@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SAPI_LSAPI_MAX_HEADER_LENGTH@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	bl	_sapi_get_default_content_type
	mov	x20, x0
	ldr	w8, [x21]
	sub	w1, w8, #1
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_snprintf
	mov	x21, x0
	mov	x0, x20
	bl	_efree
	mov	x0, x19
	mov	x1, x21
	bl	_LSAPI_AppendRespHeader
	mov	sp, x22
LBB0_7:
	bl	_LSAPI_FinalizeRespHeaders
Lloh18:
	adrp	x8, _SAPI_HEADER_SENT_SUCCESSFULLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SAPI_HEADER_SENT_SUCCESSFULLY@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.8:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	x1, x29, #44
	mov	x0, x19
	bl	_zend_llist_get_next_ex
	cbz	x0, LBB0_5
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x0]
	cmp	x1, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x0, #8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_LSAPI_AppendRespHeader
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_mod_lsapi_mode,8,3             ; @mod_lsapi_mode
	.comm	_lsapi_mode,8,3                 ; @lsapi_mode
	.comm	_SAPI_LSAPI_MAX_HEADER_LENGTH,4,2 ; @SAPI_LSAPI_MAX_HEADER_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Content-type: %s"

	.comm	_SAPI_HEADER_SENT_SUCCESSFULLY,4,2 ; @SAPI_HEADER_SENT_SUCCESSFULLY
	.no_dead_strip	_sapi_lsapi_send_headers
.subsections_via_symbols
