	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpegps_read_header
_mpegps_read_header:                    ## @mpegps_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	$0, -37(%rbp)
	movl	$0, -40(%rbp)
	movl	(%rdi), %edi
	callq	_avio_tell
	movl	%eax, %r14d
	movl	$255, (%r12)
	movq	_AVFMTCTX_NOHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	leaq	-40(%rbp), %r15
	movl	$6, %esi
	movq	%r15, %rdx
	movl	$7, %ecx
	callq	_avio_get_str
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	leaq	-40(%rbp), %rsi
	movl	$6, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_avio_seek
	jmp	LBB0_5
LBB0_1:
	movl	$1, 4(%r12)
	jmp	LBB0_5
LBB0_3:
	movl	$1, 8(%r12)
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVFMTCTX_NOHEADER,4,2          ## @AVFMTCTX_NOHEADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IMKH"

L_.str.1:                               ## @.str.1
	.asciz	"Sofdec"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_mpegps_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpegps_read_header
_mpegps_read_header:                    ; @mpegps_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	stur	wzr, [sp, #11]
	str	wzr, [sp, #8]
	ldr	w0, [x0]
	bl	_avio_tell
	mov	x20, x0
	mov	w8, #255
Lloh0:
	adrp	x9, _AVFMTCTX_NOHEADER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVFMTCTX_NOHEADER@GOTPAGEOFF]
	str	w8, [x21]
Lloh2:
	ldr	w8, [x9]
	ldp	w0, w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	add	x2, sp, #8
	mov	w1, #6
	mov	w3, #7
	bl	_avio_get_str
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	w2, #6
	bl	_memcmp
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_avio_seek
	b	LBB0_5
LBB0_3:
	mov	w8, #1
	str	w8, [x21, #4]
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x21, #8]
LBB0_5:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMTCTX_NOHEADER,4,2          ; @AVFMTCTX_NOHEADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IMKH"

l_.str.1:                               ; @.str.1
	.asciz	"Sofdec"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_mpegps_read_header
.subsections_via_symbols
