	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function VideoRead
_VideoRead:                             ## @VideoRead
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_Pico@GOTPCREL(%rip), %rcx
	movl	24(%rcx), %eax
	movl	28(%rcx), %edx
	shrq	%rax
	cmpl	$8, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$4, %edx
	je	LBB0_6
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_7
## %bb.3:
	movq	(%rcx), %rcx
	andl	$32767, %eax                    ## imm = 0x7FFF
	movl	(%rcx,%rax,4), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	8(%rcx), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	16(%rcx), %rcx
LBB0_5:
	andl	$63, %eax
	movl	(%rcx,%rax,4), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elprintf
	xorl	%ebx, %ebx
LBB0_8:
	xorl	%eax, %eax
	callq	_AutoIncrement
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,32,3                      ## @Pico
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VDP read with bad type %i"

	.no_dead_strip	_VideoRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function VideoRead
_VideoRead:                             ; @VideoRead
	.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
Lloh0:
	adrp	x9, _Pico@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Pico@GOTPAGEOFF]
	ldp	w8, w2, [x9, #24]
	cmp	w2, #8
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #4
	b.eq	LBB0_5
; %bb.2:
	cbnz	w2, LBB0_6
; %bb.3:
	ldr	x9, [x9]
	ubfx	x8, x8, #1, #15
	ldr	w19, [x9, x8, lsl #2]
	b	LBB0_7
LBB0_4:
	ldr	x9, [x9, #8]
	ubfx	x8, x8, #1, #6
	ldr	w19, [x9, x8, lsl #2]
	b	LBB0_7
LBB0_5:
	ldr	x9, [x9, #16]
	ubfx	w8, w8, #1, #6
	ldr	w19, [x9, w8, uxtw #2]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EL_ANOMALY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	mov	w19, #0
LBB0_7:
	bl	_AutoIncrement
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,32,3                      ; @Pico
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VDP read with bad type %i"

	.no_dead_strip	_VideoRead
.subsections_via_symbols
