	.file	"extr_zlib.c_php_zlib_output_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Vary: Accept-Encoding"
.LC1:
	.string	"Content-Encoding: gzip"
.LC2:
	.string	"Content-Encoding: deflate"
	.text
	.p2align 4
	.type	php_zlib_output_handler, @function
php_zlib_output_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	php_zlib_output_encoding@PLT
	test	eax, eax
	jne	.L2
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR PHP_OUTPUT_HANDLER_START[rip]
	test	edx, eax
	jne	.L28
.L26:
	mov	eax, DWORD PTR FAILURE[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L29
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	or	eax, DWORD PTR PHP_OUTPUT_HANDLER_CLEAN[rip]
	or	eax, DWORD PTR PHP_OUTPUT_HANDLER_FINAL[rip]
	cmp	edx, eax
	je	.L26
	lea	rdi, .LC0[rip]
	call	ZEND_STRL@PLT
	xor	edx, edx
	mov	esi, 1
	mov	edi, eax
	call	sapi_add_header_ex@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rbx
	mov	rdi, rbp
	call	php_zlib_output_handler_ex@PLT
	mov	r8, rax
	mov	rax, QWORD PTR SUCCESS[rip]
	cmp	r8, rax
	jne	.L26
	mov	edx, DWORD PTR [rbx]
	test	DWORD PTR PHP_OUTPUT_HANDLER_CLEAN[rip], edx
	jne	.L1
	mov	edi, DWORD PTR PHP_OUTPUT_HANDLER_HOOK_GET_FLAGS[rip]
	lea	rsi, 4[rsp]
	call	php_output_handler_hook@PLT
	mov	r8, rax
	mov	rax, QWORD PTR SUCCESS[rip]
	cmp	r8, rax
	jne	.L1
	mov	edx, DWORD PTR 4[rsp]
	test	DWORD PTR PHP_OUTPUT_HANDLER_STARTED[rip], edx
	jne	.L1
	mov	edi, DWORD PTR headers_sent[rip]
	call	SG@PLT
	test	rax, rax
	jne	.L22
	mov	edi, DWORD PTR output_compression[rip]
	call	ZLIBG@PLT
	test	eax, eax
	je	.L22
	mov	edi, DWORD PTR compression_coding[rip]
	call	ZLIBG@PLT
	cmp	eax, 128
	je	.L11
	cmp	eax, 129
	jne	.L22
	lea	rdi, .LC2[rip]
.L24:
	call	ZEND_STRL@PLT
	mov	edx, 1
	mov	esi, 1
	mov	edi, eax
	call	sapi_add_header_ex@PLT
	lea	rdi, .LC0[rip]
	call	ZEND_STRL@PLT
	xor	edx, edx
	mov	esi, 1
	mov	edi, eax
	call	sapi_add_header_ex@PLT
	mov	edi, DWORD PTR PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE[rip]
	xor	esi, esi
	call	php_output_handler_hook@PLT
	mov	rax, QWORD PTR SUCCESS[rip]
	jmp	.L1
.L22:
	mov	rdi, rbp
	call	deflateEnd@PLT
	jmp	.L26
.L11:
	lea	rdi, .LC1[rip]
	jmp	.L24
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	php_zlib_output_handler, .-php_zlib_output_handler
	.comm	output_compression,4,4
	.comm	headers_sent,4,4
	.comm	compression_coding,4,4
	.comm	SUCCESS,8,8
	.comm	PHP_OUTPUT_HANDLER_STARTED,4,4
	.comm	PHP_OUTPUT_HANDLER_START,4,4
	.comm	PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE,4,4
	.comm	PHP_OUTPUT_HANDLER_HOOK_GET_FLAGS,4,4
	.comm	PHP_OUTPUT_HANDLER_FINAL,4,4
	.comm	PHP_OUTPUT_HANDLER_CLEAN,4,4
	.comm	FAILURE,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_zlib.c_php_zlib_output_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Vary: Accept-Encoding\000"
	.align	2
.LC1:
	.ascii	"Content-Encoding: gzip\000"
	.align	2
.LC2:
	.ascii	"Content-Encoding: deflate\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	php_zlib_output_handler, %function
php_zlib_output_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L28
	sub	sp, sp, #8
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r6, [r0]
	bl	php_zlib_output_encoding
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, .L28+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L26
.L24:
	ldr	r3, .L28+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L26:
	ldr	r0, .L28+12
	ldr	r1, .L28+16
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r3, r3, r0
	orr	r3, r3, r1
	cmp	r2, r3
	beq	.L24
	ldr	r0, .L28+20
	bl	ZEND_STRL
	mov	r2, r5
	mov	r1, #1
	bl	sapi_add_header_ex
	b	.L24
.L2:
	mov	r1, r4
	mov	r0, r6
	bl	php_zlib_output_handler_ex
	mov	r3, r0
	ldr	r5, .L28+24
	ldr	r0, [r5]
	cmp	r3, r0
	bne	.L24
	ldr	r3, .L28+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L1
	ldr	r3, .L28+28
	mov	r1, sp
	ldr	r0, [r3]
	bl	php_output_handler_hook
	mov	r3, r0
	ldr	r0, [r5]
	cmp	r3, r0
	bne	.L1
	ldr	r3, .L28+32
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L1
	ldr	r3, .L28+36
	ldr	r0, [r3]
	bl	SG
	cmp	r0, #0
	bne	.L22
	ldr	r3, .L28+40
	ldr	r0, [r3]
	bl	ZLIBG
	cmp	r0, #0
	beq	.L22
	ldr	r3, .L28+44
	ldr	r0, [r3]
	bl	ZLIBG
	cmp	r0, #128
	beq	.L11
	cmp	r0, #129
	bne	.L22
	ldr	r0, .L28+48
	bl	ZEND_STRL
	mov	r2, #1
	mov	r1, r2
	bl	sapi_add_header_ex
.L14:
	ldr	r0, .L28+20
	bl	ZEND_STRL
	mov	r2, #0
	mov	r1, #1
	bl	sapi_add_header_ex
	ldr	r3, .L28+52
	mov	r1, #0
	ldr	r0, [r3]
	bl	php_output_handler_hook
	ldr	r0, [r5]
	b	.L1
.L22:
	mov	r0, r6
	bl	deflateEnd
	b	.L24
.L11:
	ldr	r0, .L28+56
	bl	ZEND_STRL
	mov	r2, #1
	mov	r1, r2
	bl	sapi_add_header_ex
	b	.L14
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC3
	.word	PHP_OUTPUT_HANDLER_START
	.word	FAILURE
	.word	PHP_OUTPUT_HANDLER_CLEAN
	.word	PHP_OUTPUT_HANDLER_FINAL
	.word	.LC0
	.word	SUCCESS
	.word	PHP_OUTPUT_HANDLER_HOOK_GET_FLAGS
	.word	PHP_OUTPUT_HANDLER_STARTED
	.word	headers_sent
	.word	output_compression
	.word	compression_coding
	.word	.LC2
	.word	PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE
	.word	.LC1
	.size	php_zlib_output_handler, .-php_zlib_output_handler
	.comm	output_compression,4,4
	.comm	headers_sent,4,4
	.comm	compression_coding,4,4
	.comm	SUCCESS,4,4
	.comm	PHP_OUTPUT_HANDLER_STARTED,4,4
	.comm	PHP_OUTPUT_HANDLER_START,4,4
	.comm	PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE,4,4
	.comm	PHP_OUTPUT_HANDLER_HOOK_GET_FLAGS,4,4
	.comm	PHP_OUTPUT_HANDLER_FINAL,4,4
	.comm	PHP_OUTPUT_HANDLER_CLEAN,4,4
	.comm	FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
