	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_handle_swf
_php_handle_swf:                        ## @php_handle_swf
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$5, %esi
	callq	_php_stream_seek
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_php_stream_read
	cmpl	$32, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	movl	$24, %esi
	callq	_ecalloc
	movq	%rax, %rbx
	leaq	-80(%rbp), %r14
	movl	$5, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_php_swf_get_bits
	movslq	%eax, %r15
	leal	5(%r15), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_php_swf_get_bits
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	$5, %esi
	movq	%r15, %rdx
	callq	_php_swf_get_bits
	subl	%eax, %r12d
	movslq	%r12d, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, (%rbx)
	leal	(%r15,%r15,2), %esi
	addl	$5, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_php_swf_get_bits
	movl	%eax, %r12d
	leal	(%r15,%r15), %esi
	addl	$5, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_php_swf_get_bits
	subl	%eax, %r12d
	movslq	%r12d, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, 4(%rbx)
	movl	$0, 16(%rbx)
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_php_handle_swf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_handle_swf
_php_handle_swf:                        ; @php_handle_swf
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #5
	bl	_php_stream_seek
	cbnz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #32
	bl	_php_stream_read
	cmp	w0, #32
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	mov	w1, #24
	bl	_ecalloc
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #5
	bl	_php_swf_get_bits
	mov	x20, x0
	sxtw	x21, w20
	add	w1, w0, #5
	add	x0, sp, #8
	mov	x2, x21
	bl	_php_swf_get_bits
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #5
	mov	x2, x21
	bl	_php_swf_get_bits
	sub	w8, w22, w0
	mov	w22, #26215
	movk	w22, #26214, lsl #16
	smull	x8, w8, w22
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	str	w8, [x19]
	lsl	w23, w20, #1
	add	w8, w23, w20
	add	w1, w8, #5
	add	x0, sp, #8
	mov	x2, x21
	bl	_php_swf_get_bits
	mov	x20, x0
	add	w1, w23, #5
	add	x0, sp, #8
	mov	x2, x21
	bl	_php_swf_get_bits
	sub	w8, w20, w0
	smull	x8, w8, w22
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	str	w8, [x19, #4]
	str	wzr, [x19, #16]
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	ldr	x8, [sp, #40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_php_handle_swf
.subsections_via_symbols
