	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_bz2_compress_filter
_php_bz2_compress_filter:               ## @php_bz2_compress_filter
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PSFS_FEED_ME@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rsi), %edi
	callq	_Z_PTR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_Z_PTR
	movq	%rax, %rbx
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.4:
	leaq	24(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_php_stream_bucket_delref
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	callq	_php_stream_bucket_make_writeable
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	%r13, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	cmpq	%r12, %r13
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jbe	LBB0_18
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subq	%r12, %r13
	movq	(%rbx), %rcx
	cmpq	%rcx, %r13
	cmovaeq	%rcx, %r13
	movl	44(%rbx), %edi
	movq	8(%rax), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movq	%r13, 24(%rbx)
	movq	_PSFS_FLAG_FLUSH_CLOSE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	_BZ_FINISH@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	_BZ_FLUSH@GOTPCREL(%rip), %rax
	movq	_PSFS_FLAG_FLUSH_INC@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_BZ_RUN@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	(%rax), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_BZ2_bzCompress
	movq	_BZ_RUN_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_BZ_FLUSH_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_BZ_FINISH_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	subq	24(%rbx), %r13
	movl	48(%rbx), %eax
	movl	%eax, 44(%rbx)
	movq	$0, 24(%rbx)
	addq	%r13, %r12
	movq	8(%rbx), %r15
	subq	32(%rbx), %r15
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	callq	_estrndup
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_php_stream_bucket_new
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_php_stream_bucket_append
	movq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, 40(%rbx)
	movq	_PSFS_PASS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_php_stream_bucket_delref
LBB0_1:
	movq	_PSFS_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_3:
	xorl	%r14d, %r14d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_19:
	movq	_PSFS_FLAG_FLUSH_CLOSE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.20:
	movq	%rbx, %r13
	addq	$24, %r13
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_BZ_FINISH_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_24
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	_BZ_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_BZ2_bzCompress
	movl	%eax, %r15d
	movq	8(%rbx), %r12
	subq	32(%rbx), %r12
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	16(%rbx), %edi
	movq	%r12, %rsi
	callq	_estrndup
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_php_stream_bucket_new
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_php_stream_bucket_append
	movq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, 40(%rbx)
	movq	_PSFS_PASS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_23
LBB0_24:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%r14, (%rax)
LBB0_26:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSFS_FEED_ME,4,2               ## @PSFS_FEED_ME
	.comm	_PSFS_ERR_FATAL,4,2             ## @PSFS_ERR_FATAL
	.comm	_PSFS_FLAG_FLUSH_CLOSE,4,2      ## @PSFS_FLAG_FLUSH_CLOSE
	.comm	_BZ_FINISH,4,2                  ## @BZ_FINISH
	.comm	_PSFS_FLAG_FLUSH_INC,4,2        ## @PSFS_FLAG_FLUSH_INC
	.comm	_BZ_FLUSH,4,2                   ## @BZ_FLUSH
	.comm	_BZ_RUN,4,2                     ## @BZ_RUN
	.comm	_BZ_RUN_OK,4,2                  ## @BZ_RUN_OK
	.comm	_BZ_FLUSH_OK,4,2                ## @BZ_FLUSH_OK
	.comm	_BZ_FINISH_OK,4,2               ## @BZ_FINISH_OK
	.comm	_PSFS_PASS_ON,4,2               ## @PSFS_PASS_ON
	.no_dead_strip	_php_bz2_compress_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_bz2_compress_filter
_php_bz2_compress_filter:               ; @php_bz2_compress_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x19, x4
	stp	x0, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _PSFS_FEED_ME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSFS_FEED_ME@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w0, [x1]
	bl	_Z_PTR
	cbz	x0, LBB0_14
; %bb.1:
	str	x19, [sp]                       ; 8-byte Folded Spill
	ldr	w0, [x22]
	bl	_Z_PTR
	mov	x22, x0
	ldr	x0, [x20]
	cbz	x0, LBB0_16
; %bb.2:
	mov	x19, #0
	add	x26, x22, #24
Lloh3:
	adrp	x21, _BZ_FINISH_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BZ_FINISH_OK@GOTPAGEOFF]
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_php_stream_bucket_delref
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x0, [x20]
	cbz	x0, LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	bl	_php_stream_bucket_make_writeable
	mov	x27, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x19, x20, x19
	ldr	x8, [x27]
	add	x25, x20, x25
	cmp	x8, x25
	b.ls	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x22]
	sub	x8, x8, x25
	cmp	x8, x9
	csel	x28, x8, x9, lo
	ldr	w0, [x22, #44]
	ldr	x8, [x27, #8]
	add	x1, x8, x25
	mov	x2, x28
	bl	_memcpy
	str	x28, [x22, #24]
Lloh5:
	adrp	x8, _PSFS_FLAG_FLUSH_CLOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSFS_FLAG_FLUSH_CLOSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
Lloh8:
	adrp	x8, _BZ_FINISH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BZ_FINISH@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
Lloh10:
	adrp	x8, _PSFS_FLAG_FLUSH_INC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSFS_FLAG_FLUSH_INC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w24
Lloh13:
	adrp	x8, _BZ_FLUSH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BZ_FLUSH@GOTPAGEOFF]
Lloh15:
	adrp	x9, _BZ_RUN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BZ_RUN@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [x8]
	mov	x0, x26
	bl	_BZ2_bzCompress
Lloh17:
	adrp	x8, _BZ_RUN_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BZ_RUN_OK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _BZ_FLUSH_OK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BZ_FLUSH_OK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w10, [x21]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldp	x8, x9, [x22, #24]
	sub	x20, x28, x8
	ldr	w8, [x22, #48]
	str	w8, [x22, #44]
	str	xzr, [x22, #24]
	ldr	x8, [x22, #8]
	subs	x28, x8, x9
	b.le	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x22, #16]
	mov	x1, x28
	bl	_estrndup
	mov	x1, x0
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x28
	mov	w3, #1
	mov	w4, #0
	bl	_php_stream_bucket_new
	mov	x1, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_php_stream_bucket_append
	ldr	x8, [x22, #8]
	str	x8, [x22, #32]
	ldr	w8, [x22, #16]
	str	w8, [x22, #40]
Lloh23:
	adrp	x8, _PSFS_PASS_ON@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PSFS_PASS_ON@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
	b	LBB0_6
LBB0_13:
	mov	x0, x27
	bl	_php_stream_bucket_delref
LBB0_14:
Lloh26:
	adrp	x8, _PSFS_ERR_FATAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PSFS_ERR_FATAL@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x8]
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	mov	x19, #0
LBB0_17:
Lloh29:
	adrp	x8, _PSFS_FLAG_FLUSH_CLOSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PSFS_FLAG_FLUSH_CLOSE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_22
; %bb.18:
	add	x24, x22, #24
Lloh32:
	adrp	x20, _BZ_FINISH@GOTPAGE
Lloh33:
	ldr	x20, [x20, _BZ_FINISH@GOTPAGEOFF]
Lloh34:
	adrp	x21, _PSFS_PASS_ON@GOTPAGE
Lloh35:
	ldr	x21, [x21, _PSFS_PASS_ON@GOTPAGEOFF]
Lloh36:
	adrp	x27, _BZ_FINISH_OK@GOTPAGE
Lloh37:
	ldr	x27, [x27, _BZ_FINISH_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x27]
	cmp	w25, w8
	b.ne	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x24
	bl	_BZ2_bzCompress
	mov	x25, x0
	ldr	x8, [x22, #32]
	ldr	x9, [x22, #8]
	subs	x26, x9, x8
	b.le	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x22, #16]
	mov	x1, x26
	bl	_estrndup
	mov	x1, x0
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x26
	mov	w3, #1
	mov	w4, #0
	bl	_php_stream_bucket_new
	mov	x1, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_php_stream_bucket_append
	ldr	x8, [x22, #8]
	str	x8, [x22, #32]
	ldr	w8, [x22, #16]
	str	w8, [x22, #40]
	ldr	w23, [x21]
	b	LBB0_19
LBB0_22:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbz	x8, LBB0_15
; %bb.23:
	str	x19, [x8]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PSFS_FEED_ME,4,2               ; @PSFS_FEED_ME
	.comm	_PSFS_ERR_FATAL,4,2             ; @PSFS_ERR_FATAL
	.comm	_PSFS_FLAG_FLUSH_CLOSE,4,2      ; @PSFS_FLAG_FLUSH_CLOSE
	.comm	_BZ_FINISH,4,2                  ; @BZ_FINISH
	.comm	_PSFS_FLAG_FLUSH_INC,4,2        ; @PSFS_FLAG_FLUSH_INC
	.comm	_BZ_FLUSH,4,2                   ; @BZ_FLUSH
	.comm	_BZ_RUN,4,2                     ; @BZ_RUN
	.comm	_BZ_RUN_OK,4,2                  ; @BZ_RUN_OK
	.comm	_BZ_FLUSH_OK,4,2                ; @BZ_FLUSH_OK
	.comm	_BZ_FINISH_OK,4,2               ; @BZ_FINISH_OK
	.comm	_PSFS_PASS_ON,4,2               ; @PSFS_PASS_ON
	.no_dead_strip	_php_bz2_compress_filter
.subsections_via_symbols
