	.file	"extr_lsapi_main.c_sapi_lsapi_send_headers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Content-type: %s"
	.text
	.p2align 4
	.type	sapi_lsapi_send_headers, @function
sapi_lsapi_send_headers:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR mod_lsapi_mode[rip], 0
	jne	.L26
	cmp	QWORD PTR lsapi_mode[rip], 0
	jne	.L27
.L5:
	xor	eax, eax
	call	LSAPI_FinalizeRespHeaders@PLT
	mov	eax, DWORD PTR SAPI_HEADER_SENT_SUCCESSFULLY[rip]
.L1:
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L28
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	call	SG@PLT
	lea	rbx, -44[rbp]
	mov	rdi, rdx
	call	LSAPI_SetRespStatus@PLT
	mov	rsi, rbx
	mov	rdi, r12
	call	zend_llist_get_first_ex@PLT
	test	rax, rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, QWORD PTR [rax]
	test	rsi, rsi
	jle	.L7
	mov	rdi, QWORD PTR 8[rax]
	call	LSAPI_AppendRespHeader@PLT
.L7:
	mov	rsi, rbx
	mov	rdi, r12
	call	zend_llist_get_next_ex@PLT
	test	rax, rax
	jne	.L8
.L6:
	mov	rdi, r12
	call	SG@PLT
	test	rax, rax
	je	.L5
	movsx	rax, DWORD PTR SAPI_LSAPI_MAX_HEADER_LENGTH[rip]
	mov	rcx, rsp
	mov	rbx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L11
.L29:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L29
.L11:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L12
	or	QWORD PTR -8[rsp+rdx], 0
.L12:
	xor	eax, eax
	call	sapi_get_default_content_type@PLT
	lea	rdx, .LC0[rip]
	mov	rdi, rsp
	mov	r12, rax
	mov	eax, DWORD PTR SAPI_LSAPI_MAX_HEADER_LENGTH[rip]
	mov	rcx, r12
	lea	esi, -1[rax]
	call	snprintf@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	efree@PLT
	mov	rdi, rsp
	mov	esi, r13d
	call	LSAPI_AppendRespHeader@PLT
	mov	rsp, rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	call	sapi_lsapi_send_headers_like_cgi@PLT
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sapi_lsapi_send_headers, .-sapi_lsapi_send_headers
	.comm	mod_lsapi_mode,8,8
	.comm	lsapi_mode,8,8
	.comm	SAPI_LSAPI_MAX_HEADER_LENGTH,4,4
	.comm	SAPI_HEADER_SENT_SUCCESSFULLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lsapi_main.c_sapi_lsapi_send_headers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Content-type: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sapi_lsapi_send_headers, %function
sapi_lsapi_send_headers:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	ldr	r3, .L23
	ldr	r2, .L23+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r2, [fp, #-24]
	mov	r2,#0
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
.L5:
	bl	LSAPI_FinalizeRespHeaders
	ldr	r3, .L23+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L21:
	mov	r4, r0
	mov	r1, r0
	sub	r0, fp, #40
	bl	SG
	ldr	r0, [fp, #-36]
	bl	LSAPI_SetRespStatus
	mov	r0, r4
	sub	r1, fp, #44
	bl	zend_llist_get_first_ex
	cmp	r0, #0
	beq	.L6
.L8:
	ldr	r1, [r0]
	cmp	r1, #0
	ble	.L7
	ldr	r0, [r0, #4]
	bl	LSAPI_AppendRespHeader
.L7:
	mov	r0, r4
	sub	r1, fp, #44
	bl	zend_llist_get_next_ex
	cmp	r0, #0
	bne	.L8
.L6:
	mov	r1, r4
	sub	r0, fp, #32
	bl	SG
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L5
	ldr	r6, .L23+16
	mov	r5, sp
	ldr	r3, [r6]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	sapi_get_default_content_type
	mov	r4, r0
	ldr	r1, [r6]
	mov	r3, r4
	ldr	r2, .L23+20
	mov	r0, sp
	sub	r1, r1, #1
	bl	snprintf
	mov	r1, r0
	mov	r0, r4
	mov	r4, r1
	bl	efree
	mov	r0, sp
	mov	r1, r4
	bl	LSAPI_AppendRespHeader
	mov	sp, r5
	b	.L5
.L20:
	bl	sapi_lsapi_send_headers_like_cgi
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	mod_lsapi_mode
	.word	.LC1
	.word	lsapi_mode
	.word	SAPI_HEADER_SENT_SUCCESSFULLY
	.word	SAPI_LSAPI_MAX_HEADER_LENGTH
	.word	.LC0
	.size	sapi_lsapi_send_headers, .-sapi_lsapi_send_headers
	.comm	mod_lsapi_mode,4,4
	.comm	lsapi_mode,4,4
	.comm	SAPI_LSAPI_MAX_HEADER_LENGTH,4,4
	.comm	SAPI_HEADER_SENT_SUCCESSFULLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
