	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_zlib_encode
_php_zlib_encode:                       ## @php_zlib_encode
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_php_zlib_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_php_zlib_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_Z_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_Z_DEFLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_MEM_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_Z_DEFAULT_STRATEGY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	callq	_deflateInit2
	movl	%eax, %ebx
	cmpl	%eax, %r14d
	jne	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_PHP_ZLIB_BUFFER_SIZE_GUESS
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_zend_string_alloc
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movq	%r12, %rdi
	callq	_ZSTR_VAL
	movq	%rax, -72(%rbp)
	movq	%r15, -96(%rbp)
	movq	%r12, %rdi
	callq	_ZSTR_LEN
	movq	%rax, -88(%rbp)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	callq	_deflate
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_deflateEnd
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	-80(%rbp), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_zend_string_truncate
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ZSTR_VAL
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ZSTR_LEN
	movb	$0, (%r14,%rax)
	jmp	LBB0_5
LBB0_3:
	movq	%r12, %rdi
	callq	_zend_string_efree
LBB0_4:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_zError
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_php_error_docref
LBB0_5:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_php_zlib_alloc,4,2             ## @php_zlib_alloc
	.comm	_php_zlib_free,4,2              ## @php_zlib_free
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_DEFLATED,4,2                 ## @Z_DEFLATED
	.comm	_MAX_MEM_LEVEL,4,2              ## @MAX_MEM_LEVEL
	.comm	_Z_DEFAULT_STRATEGY,4,2         ## @Z_DEFAULT_STRATEGY
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_php_zlib_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_zlib_encode
_php_zlib_encode:                       ; @php_zlib_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _php_zlib_alloc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _php_zlib_alloc@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _php_zlib_free@GOTPAGE
Lloh4:
	ldr	x9, [x9, _php_zlib_free@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh6:
	adrp	x8, _Z_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _Z_DEFLATED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Z_DEFLATED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _MAX_MEM_LEVEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_MEM_LEVEL@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
Lloh15:
	adrp	x8, _Z_DEFAULT_STRATEGY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Z_DEFAULT_STRATEGY@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	x0, sp
	mov	x1, x21
	mov	x3, x22
	bl	_deflateInit2
	mov	x22, x0
	cmp	w23, w0
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_PHP_ZLIB_BUFFER_SIZE_GUESS
	mov	w1, #0
	bl	_zend_string_alloc
	mov	x21, x0
	str	x20, [sp, #32]
	bl	_ZSTR_VAL
	str	x0, [sp, #24]
	str	x19, [sp]
	mov	x0, x21
	bl	_ZSTR_LEN
	str	x0, [sp, #8]
Lloh18:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_deflate
	mov	x22, x0
	mov	x0, sp
	bl	_deflateEnd
Lloh21:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [sp, #16]
	mov	x0, x21
	mov	w2, #0
	bl	_zend_string_truncate
	mov	x19, x0
	bl	_ZSTR_VAL
	mov	x20, x0
	mov	x0, x19
	bl	_ZSTR_LEN
	strb	wzr, [x20, x0]
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_zend_string_efree
LBB0_4:
Lloh24:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
	mov	x0, x22
	bl	_zError
	mov	x3, x0
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, x19
	bl	_php_error_docref
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_php_zlib_alloc,4,2             ; @php_zlib_alloc
	.comm	_php_zlib_free,4,2              ; @php_zlib_free
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_DEFLATED,4,2                 ; @Z_DEFLATED
	.comm	_MAX_MEM_LEVEL,4,2              ; @MAX_MEM_LEVEL
	.comm	_Z_DEFAULT_STRATEGY,4,2         ; @Z_DEFAULT_STRATEGY
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_php_zlib_encode
.subsections_via_symbols
