	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cin_read_frame_header
_cin_read_frame_header:                 ## @cin_read_frame_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_avio_r8
	movq	%rax, 24(%r14)
	movq	%rbx, %rdi
	callq	_avio_r8
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_2
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_avio_rl32
	cmpl	$-1437226411, %eax              ## imm = 0xAA55AA55
	jne	LBB0_5
## %bb.3:
	cmpl	$0, (%r14)
	js	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	cmpl	$0, 4(%r14)
	jns	LBB0_6
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_cin_read_frame_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cin_read_frame_header
_cin_read_frame_header:                 ; @cin_read_frame_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_avio_r8
	str	x0, [x19, #24]
	mov	x0, x20
	bl	_avio_r8
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_avio_rl16
	str	w0, [x19, #8]
	mov	x0, x20
	bl	_avio_rl32
	str	w0, [x19]
	mov	x0, x20
	bl	_avio_rl32
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_avio_feof
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_3:
	mov	x0, x20
	bl	_avio_rl32
	mov	w8, #43605
	movk	w8, #43605, lsl #16
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_7
; %bb.5:
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_cin_read_frame_header
.subsections_via_symbols
