	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function swf_read_header
LCPI0_0:
	.long	0x42860000                      ## float 67
LCPI0_1:
	.long	0x428c0000                      ## float 70
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_swf_read_header:                       ## @swf_read_header
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	16(%rdi), %r12
	movq	%r15, %rdi
	callq	_avio_rb32
	movl	%eax, %ebx
	andl	$-256, %ebx
	movq	%r15, %rdi
	callq	_avio_rl32
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$87, %edi
	movl	$83, %esi
	xorl	%edx, %edx
	callq	_MKBETAG
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.1:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	jmp	LBB0_2
LBB0_3:
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$87, %edi
	movl	$83, %esi
	xorl	%edx, %edx
	callq	_MKBETAG
	cmpl	%eax, %ebx
	jne	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	callq	_avio_r8
                                        ## kill: def $eax killed $eax def $rax
	sarl	%eax
	addl	$4, %eax
	andl	$-4, %eax
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	movq	%r15, %rdi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rl16
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_avio_rl16
	movq	$0, (%r12)
	movq	_AVFMTCTX_NOHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SWF compressed file detected\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"zlib support is required to read SWF compressed files\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVFMTCTX_NOHEADER,4,2          ## @AVFMTCTX_NOHEADER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ZBUF_SIZE,4,2                  ## @ZBUF_SIZE
	.comm	_Z_OK,8,3                       ## @Z_OK
	.comm	_zlib_refill,4,2                ## @zlib_refill
	.no_dead_strip	_swf_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swf_read_header
_swf_read_header:                       ; @swf_read_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	x20, x21, [x0, #8]
	mov	x0, x20
	bl	_avio_rb32
	and	w22, w0, #0xffffff00
	mov	x0, x20
	bl	_avio_rl32
	mov	w8, #1116078080
	fmov	s0, w8
	mov	w0, #87
	mov	w1, #83
	mov	w2, #0
	bl	_MKBETAG
	cmp	w22, w0
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_4
LBB0_2:
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w0, #87
	mov	w1, #83
	mov	w2, #0
	bl	_MKBETAG
	cmp	w22, w0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_avio_r8
	asr	w8, w0, #1
	add	w8, w8, #4
	ands	w8, w8, #0xfffffffc
	add	w9, w8, #7
	csel	w8, w9, w8, lt
	asr	w1, w8, #3
	mov	x0, x20
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rl16
	str	w0, [x21, #8]
	mov	x0, x20
	bl	_avio_rl16
Lloh10:
	adrp	x8, _AVFMTCTX_NOHEADER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVFMTCTX_NOHEADER@GOTPAGEOFF]
	str	xzr, [x21]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SWF compressed file detected\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"zlib support is required to read SWF compressed files\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVFMTCTX_NOHEADER,4,2          ; @AVFMTCTX_NOHEADER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ZBUF_SIZE,4,2                  ; @ZBUF_SIZE
	.comm	_Z_OK,8,3                       ; @Z_OK
	.comm	_zlib_refill,4,2                ; @zlib_refill
	.no_dead_strip	_swf_read_header
.subsections_via_symbols
