	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoSVPDma
_PicoSVPDma:                            ## @PicoSVPDma
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%edi, %ebx
	movq	_Pico@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	cmpl	%edi, %eax
	jbe	LBB0_3
## %bb.1:
	addl	$-2, %ebx
	movq	8(%rdx), %rcx
	andl	$-2, %ebx
	addq	%rcx, %rbx
	movq	%rbx, (%r15)
	addq	%rcx, %rax
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %ecx
	movl	%ebx, %eax
	andl	$16646144, %eax                 ## imm = 0xFE0000
	movq	_EL_VDPDMA@GOTPCREL(%rip), %rdx
	movq	_EL_SVP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	orl	(%rdx), %edi
	cmpl	$3145728, %eax                  ## imm = 0x300000
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_elprintf
	andl	$131070, %ebx                   ## imm = 0x1FFFE
	addl	$-2, %ebx
	movq	_svp@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	(%rcx), %rbx
	movq	%rbx, (%r15)
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$8, %rax
LBB0_2:
	movq	%rax, (%r14)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_elprintf
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,16,3                      ## @Pico
	.comm	_EL_VDPDMA,4,2                  ## @EL_VDPDMA
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SVP DmaSlow from %06x, len=%i"

	.comm	_svp,8,3                        ## @svp
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
L_.str.1:                               ## @.str.1
	.asciz	"SVP FIXME unhandled DmaSlow from %06x, len=%i"

	.no_dead_strip	_PicoSVPDma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoSVPDma
_PicoSVPDma:                            ; @PicoSVPDma
	.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, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x9, _Pico@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Pico@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, w0
	b.ls	LBB0_2
; %bb.1:
	sub	w10, w21, #2
	ldr	x9, [x9, #8]
	and	w10, w10, #0xfffffffe
	add	x10, x9, x10
	str	x10, [x20]
	add	x8, x9, x8
	b	LBB0_4
LBB0_2:
	mov	x3, x1
	and	w8, w21, #0xfe0000
Lloh2:
	adrp	x9, _EL_VDPDMA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EL_VDPDMA@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _EL_SVP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EL_SVP@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w0, w10, w9
	cmp	w8, #768, lsl #12               ; =3145728
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elprintf
	and	w8, w21, #0x1fffe
	sub	w8, w8, #2
Lloh10:
	adrp	x9, _svp@GOTPAGE
Lloh11:
	ldr	x9, [x9, _svp@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x10, [x10]
	add	x8, x10, x8
	str	x8, [x20]
	ldr	x8, [x9]
	ldr	x8, [x8]
	add	x8, x8, #8
LBB0_4:
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EL_ANOMALY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w0, w0, w8
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_elprintf
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,16,3                      ; @Pico
	.comm	_EL_VDPDMA,4,2                  ; @EL_VDPDMA
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SVP DmaSlow from %06x, len=%i"

	.comm	_svp,8,3                        ; @svp
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
l_.str.1:                               ; @.str.1
	.asciz	"SVP FIXME unhandled DmaSlow from %06x, len=%i"

	.no_dead_strip	_PicoSVPDma
.subsections_via_symbols
