	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_zlib_output_handler_ex
_php_zlib_output_handler_ex:            ## @php_zlib_output_handler_ex
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rsi), %eax
	movq	_PHP_OUTPUT_HANDLER_START@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_output_compression_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ZLIBG
	movl	%eax, %r13d
	movq	_Z_DEFLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_compression_coding@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ZLIBG
	movq	_MAX_MEM_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_Z_DEFAULT_STRATEGY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_deflateInit2
	cmpq	$129, %rax
	jne	LBB0_7
## %bb.2:
	movl	(%r12), %eax
LBB0_3:
	movq	_PHP_OUTPUT_HANDLER_CLEAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	callq	_deflateEnd
	movq	_PHP_OUTPUT_HANDLER_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SUCCESS@GOTPCREL(%rip), %rbx
	testl	%eax, (%r12)
	jne	LBB0_29
## %bb.5:
	movq	_output_compression_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ZLIBG
	movl	%eax, %r15d
	movq	_Z_DEFLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_compression_coding@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ZLIBG
	movq	_MAX_MEM_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_Z_DEFAULT_STRATEGY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_deflateInit2
	cmpq	$129, %rax
	jne	LBB0_7
## %bb.6:
	movq	$0, 32(%r14)
	jmp	LBB0_29
LBB0_7:
	movq	_FAILURE@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_8:
	movq	40(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.9:
	movq	40(%r14), %rsi
	movq	56(%r14), %rdi
	cmpq	%rdx, %rsi
	jge	LBB0_12
## %bb.10:
	addq	%rdx, %rsi
	addq	32(%r14), %rsi
	callq	_erealloc_recoverable
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_23
## %bb.11:
	movq	%rax, %rdi
	movq	%rax, 56(%r14)
	movq	40(%r12), %rdx
	addq	%rdx, 40(%r14)
LBB0_12:
	addq	32(%r14), %rdi
	movl	48(%r12), %esi
	callq	_memcpy
	movq	40(%r12), %rdi
	subq	%rdi, 40(%r14)
	addq	%rdi, 32(%r14)
	jmp	LBB0_14
LBB0_13:
	xorl	%edi, %edi
LBB0_14:
	callq	_PHP_ZLIB_BUFFER_SIZE_GUESS
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_emalloc
	movq	%rax, 32(%r12)
	movl	$1, 8(%r12)
	movq	$0, 24(%r12)
	movq	32(%r14), %rcx
	movq	56(%r14), %rdx
	movq	%rcx, (%r14)
	movq	%rdx, 24(%r14)
	movq	16(%r12), %rcx
	movq	%rcx, 8(%r14)
	movq	%rax, 16(%r14)
	movl	(%r12), %eax
	movq	_PHP_OUTPUT_HANDLER_FINAL@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_17
## %bb.15:
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_PHP_OUTPUT_HANDLER_FLUSH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.18:
	movq	_Z_FULL_FLUSH@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r15d
LBB0_20:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_deflate
	cmpl	$128, %eax
	je	LBB0_24
## %bb.21:
	cmpl	$129, %eax
	jne	LBB0_23
## %bb.22:
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_24
LBB0_23:
	movq	%r14, %rdi
	callq	_deflateEnd
	movq	_FAILURE@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_24:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.25:
	movq	56(%r14), %rdi
	movq	%rdi, %rsi
	subq	%rdx, %rsi
	addq	32(%r14), %rsi
	callq	_memmove
	movq	(%r14), %rax
	jmp	LBB0_27
LBB0_26:
	xorl	%eax, %eax
LBB0_27:
	movq	32(%r14), %rcx
	subq	%rax, %rcx
	addq	%rcx, 40(%r14)
	movq	%rax, 32(%r14)
	movq	16(%r12), %rax
	subq	8(%r14), %rax
	movq	%rax, 24(%r12)
	movl	(%rbx), %eax
	movq	_SUCCESS@GOTPCREL(%rip), %rbx
	testl	%eax, (%r12)
	je	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	callq	_deflateEnd
LBB0_29:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_PHP_OUTPUT_HANDLER_START,4,2   ## @PHP_OUTPUT_HANDLER_START
	.comm	_output_compression_level,4,2   ## @output_compression_level
	.comm	_Z_DEFLATED,4,2                 ## @Z_DEFLATED
	.comm	_compression_coding,4,2         ## @compression_coding
	.comm	_MAX_MEM_LEVEL,4,2              ## @MAX_MEM_LEVEL
	.comm	_Z_DEFAULT_STRATEGY,4,2         ## @Z_DEFAULT_STRATEGY
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_PHP_OUTPUT_HANDLER_CLEAN,4,2   ## @PHP_OUTPUT_HANDLER_CLEAN
	.comm	_PHP_OUTPUT_HANDLER_FINAL,4,2   ## @PHP_OUTPUT_HANDLER_FINAL
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_PHP_OUTPUT_HANDLER_FLUSH,4,2   ## @PHP_OUTPUT_HANDLER_FLUSH
	.comm	_Z_FULL_FLUSH,4,2               ## @Z_FULL_FLUSH
	.no_dead_strip	_php_zlib_output_handler_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_zlib_output_handler_ex
_php_zlib_output_handler_ex:            ; @php_zlib_output_handler_ex
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _Z_SYNC_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z_SYNC_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _PHP_OUTPUT_HANDLER_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHP_OUTPUT_HANDLER_START@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _output_compression_level@GOTPAGE
Lloh7:
	ldr	x8, [x8, _output_compression_level@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ZLIBG
	mov	x21, x0
Lloh9:
	adrp	x8, _Z_DEFLATED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Z_DEFLATED@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _compression_coding@GOTPAGE
Lloh13:
	ldr	x8, [x8, _compression_coding@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_ZLIBG
	mov	x3, x0
Lloh15:
	adrp	x8, _MAX_MEM_LEVEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX_MEM_LEVEL@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _Z_DEFAULT_STRATEGY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Z_DEFAULT_STRATEGY@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_deflateInit2
	cmp	x0, #129
	b.ne	LBB0_20
; %bb.2:
	ldr	w8, [x20]
LBB0_3:
Lloh21:
	adrp	x9, _PHP_OUTPUT_HANDLER_CLEAN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PHP_OUTPUT_HANDLER_CLEAN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_deflateEnd
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _PHP_OUTPUT_HANDLER_FINAL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PHP_OUTPUT_HANDLER_FINAL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_26
; %bb.5:
Lloh27:
	adrp	x8, _output_compression_level@GOTPAGE
Lloh28:
	ldr	x8, [x8, _output_compression_level@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_ZLIBG
	mov	x20, x0
Lloh30:
	adrp	x8, _Z_DEFLATED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Z_DEFLATED@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
Lloh33:
	adrp	x8, _compression_coding@GOTPAGE
Lloh34:
	ldr	x8, [x8, _compression_coding@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_ZLIBG
	mov	x3, x0
Lloh36:
	adrp	x8, _MAX_MEM_LEVEL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAX_MEM_LEVEL@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x8]
Lloh39:
	adrp	x8, _Z_DEFAULT_STRATEGY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _Z_DEFAULT_STRATEGY@GOTPAGEOFF]
Lloh41:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_deflateInit2
	cmp	x0, #129
	b.ne	LBB0_20
; %bb.6:
	str	xzr, [x19, #32]
	b	LBB0_26
LBB0_7:
	ldr	x2, [x20, #40]
	cbz	x2, LBB0_12
; %bb.8:
	ldr	x8, [x19, #40]
	ldr	x0, [x19, #56]
	cmp	x8, x2
	b.ge	LBB0_11
; %bb.9:
	ldr	x9, [x19, #32]
	add	x8, x8, x2
	add	x1, x8, x9
	bl	_erealloc_recoverable
	str	x0, [x19, #48]
	cbz	x0, LBB0_19
; %bb.10:
	str	x0, [x19, #56]
	ldr	x2, [x20, #40]
	ldr	x8, [x19, #40]
	add	x8, x8, x2
	str	x8, [x19, #40]
LBB0_11:
	ldr	x8, [x19, #32]
	add	x0, x8, x0
	ldr	w1, [x20, #48]
	bl	_memcpy
	ldr	x0, [x20, #40]
	ldp	x9, x8, [x19, #32]
	sub	x8, x8, x0
	add	x9, x9, x0
	stp	x9, x8, [x19, #32]
	b	LBB0_13
LBB0_12:
	mov	x0, #0
LBB0_13:
	bl	_PHP_ZLIB_BUFFER_SIZE_GUESS
	str	x0, [x20, #16]
	bl	_emalloc
	mov	w8, #1
	str	w8, [x20, #8]
	stp	xzr, x0, [x20, #24]
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #56]
	ldr	x10, [x20, #16]
	stp	x8, x10, [x19]
	stp	x0, x9, [x19, #16]
	ldr	w8, [x20]
Lloh42:
	adrp	x22, _PHP_OUTPUT_HANDLER_FINAL@GOTPAGE
Lloh43:
	ldr	x22, [x22, _PHP_OUTPUT_HANDLER_FINAL@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh44:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh45:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh46:
	ldr	w21, [x8]
	b	LBB0_16
LBB0_15:
Lloh47:
	adrp	x9, _PHP_OUTPUT_HANDLER_FLUSH@GOTPAGE
Lloh48:
	ldr	x9, [x9, _PHP_OUTPUT_HANDLER_FLUSH@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
Lloh50:
	adrp	x10, _Z_FULL_FLUSH@GOTPAGE
Lloh51:
	ldr	x10, [x10, _Z_FULL_FLUSH@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w21, w23, w10, eq
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	bl	_deflate
	cmp	w0, #128
	b.eq	LBB0_21
; %bb.17:
	cmp	w0, #129
	b.ne	LBB0_19
; %bb.18:
Lloh53:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_21
LBB0_19:
	mov	x0, x19
	bl	_deflateEnd
LBB0_20:
Lloh56:
	adrp	x8, _FAILURE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_27
LBB0_21:
	ldr	x2, [x19]
	cbz	x2, LBB0_23
; %bb.22:
	ldr	x0, [x19, #56]
	ldr	x8, [x19, #32]
	sub	x9, x0, x2
	add	x1, x9, x8
	bl	_memmove
	ldr	x8, [x19]
	b	LBB0_24
LBB0_23:
	mov	x8, #0
LBB0_24:
	ldp	x9, x10, [x19, #32]
	sub	x9, x9, x8
	add	x9, x9, x10
	stp	x8, x9, [x19, #32]
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #8]
	sub	x8, x8, x9
	str	x8, [x20, #24]
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_deflateEnd
LBB0_26:
Lloh58:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_PHP_OUTPUT_HANDLER_START,4,2   ; @PHP_OUTPUT_HANDLER_START
	.comm	_output_compression_level,4,2   ; @output_compression_level
	.comm	_Z_DEFLATED,4,2                 ; @Z_DEFLATED
	.comm	_compression_coding,4,2         ; @compression_coding
	.comm	_MAX_MEM_LEVEL,4,2              ; @MAX_MEM_LEVEL
	.comm	_Z_DEFAULT_STRATEGY,4,2         ; @Z_DEFAULT_STRATEGY
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_PHP_OUTPUT_HANDLER_CLEAN,4,2   ; @PHP_OUTPUT_HANDLER_CLEAN
	.comm	_PHP_OUTPUT_HANDLER_FINAL,4,2   ; @PHP_OUTPUT_HANDLER_FINAL
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_PHP_OUTPUT_HANDLER_FLUSH,4,2   ; @PHP_OUTPUT_HANDLER_FLUSH
	.comm	_Z_FULL_FLUSH,4,2               ; @Z_FULL_FLUSH
	.no_dead_strip	_php_zlib_output_handler_ex
.subsections_via_symbols
