	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_swf_end_tag
_put_swf_end_tag:                       ## @put_swf_end_tag
	.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	(%rdi), %r15
	movq	8(%rdi), %rbx
	movq	%r15, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movl	4(%rbx), %ebx
	movl	%eax, %r12d
	subl	%esi, %r12d
	movq	_SEEK_SET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_avio_seek
	movq	_TAG_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	notl	%eax
	andl	%eax, %ebx
	shll	$6, %ebx
	orl	$63, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_wl16
	addl	$-6, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_wl32
	jmp	LBB0_3
LBB0_2:
	leal	-2(%r12), %r13d
	xorl	%edi, %edi
	cmpl	$65, %r12d
	setl	%dil
	callq	_av_assert0
	shll	$6, %ebx
	orl	%r13d, %ebx
	movq	_SEEK_SET@GOTPCREL(%rip), %r13
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_wl16
LBB0_3:
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avio_seek                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_TAG_LONG,4,2                   ## @TAG_LONG
	.no_dead_strip	_put_swf_end_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_swf_end_tag
_put_swf_end_tag:                       ; @put_swf_end_tag
	.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
	ldp	x19, x21, [x0]
	mov	x0, x19
	bl	_avio_tell
	mov	x20, x0
	ldp	w1, w23, [x21]
	sub	w22, w0, w1
Lloh0:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_avio_seek
Lloh2:
	adrp	x8, _TAG_LONG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TAG_LONG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w23, w8
	mov	w1, #63
	bfi	w1, w8, #6, #26
	mov	x0, x19
	bl	_avio_wl16
	sub	w1, w22, #6
	mov	x0, x19
	bl	_avio_wl32
	b	LBB0_3
LBB0_2:
	sub	w24, w22, #2
	cmp	w22, #65
	cset	w0, lt
	bl	_av_assert0
	orr	w1, w24, w23, lsl #6
	mov	x0, x19
	bl	_avio_wl16
LBB0_3:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	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
	b	_avio_seek
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_TAG_LONG,4,2                   ; @TAG_LONG
	.no_dead_strip	_put_swf_end_tag
.subsections_via_symbols
