	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avs_read_header
_avs_read_header:                       ## @avs_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_AVFMTCTX_NOHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rdi)
	movl	(%rdi), %edi
	movl	$4, %esi
	callq	_avio_skip
	movl	(%r14), %edi
	callq	_avio_rl16
	movl	%eax, (%rbx)
	movl	(%r14), %edi
	callq	_avio_rl16
	movl	%eax, 4(%rbx)
	movl	(%r14), %edi
	callq	_avio_rl16
	movq	%rax, 56(%rbx)
	movl	(%r14), %edi
	callq	_avio_rl16
	movq	%rax, 48(%rbx)
	movl	(%r14), %edi
	callq	_avio_rl32
	movl	%eax, 40(%rbx)
	movq	$0, 8(%rbx)
	movl	$0, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	cmpl	$318, %ecx                      ## imm = 0x13E
	jne	LBB0_2
## %bb.1:
	cmpl	$198, %r8d
	je	LBB0_3
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVFMTCTX_NOHEADER,4,2          ## @AVFMTCTX_NOHEADER
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This avs pretend to be %dx%d when the avs format is supposed to be 318x198 only.\n"

	.no_dead_strip	_avs_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avs_read_header
_avs_read_header:                       ; @avs_read_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	x19, x0
Lloh0:
	adrp	x8, _AVFMTCTX_NOHEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVFMTCTX_NOHEADER@GOTPAGEOFF]
	ldr	x20, [x0, #8]
Lloh2:
	ldr	w8, [x8]
	ldp	w0, w9, [x0]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	w1, #4
	bl	_avio_skip
	ldr	w0, [x19]
	bl	_avio_rl16
	str	w0, [x20]
	ldr	w0, [x19]
	bl	_avio_rl16
	str	w0, [x20, #4]
	ldr	w0, [x19]
	bl	_avio_rl16
	str	x0, [x20, #56]
	ldr	w0, [x19]
	bl	_avio_rl16
	str	x0, [x20, #48]
	ldr	w0, [x19]
	bl	_avio_rl32
	str	w0, [x20, #40]
	str	xzr, [x20, #8]
	str	wzr, [x20, #16]
	stp	xzr, xzr, [x20, #24]
	ldp	w3, w4, [x20]
	cmp	w3, #318
	b.ne	LBB0_2
; %bb.1:
	cmp	w4, #198
	b.eq	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_3:
	mov	w0, #0
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMTCTX_NOHEADER,4,2          ; @AVFMTCTX_NOHEADER
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This avs pretend to be %dx%d when the avs format is supposed to be 318x198 only.\n"

	.no_dead_strip	_avs_read_header
.subsections_via_symbols
