	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoWrite16_svpr
_PicoWrite16_svpr:                      ## @PicoWrite16_svpr
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_EL_SVP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_elprintf
	movl	%ebx, %eax
	andl	$-16, %eax
	cmpl	$10571776, %eax                 ## imm = 0xA15000
	jne	LBB0_4
## %bb.1:
	andl	$-3, %ebx
	cmpl	$10571776, %ebx                 ## imm = 0xA15000
	jne	LBB0_3
## %bb.2:
	movq	_svp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	_SSP_XST@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%r14d, (%rcx,%rdx,4)
	movq	_SSP_PM0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orl	$2, (%rcx,%rdx,4)
	movq	_SSP_WAIT_PM0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PicoWrite16_io                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SVP w16: [%06x] %04x @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_svp,8,3                        ## @svp
	.comm	_SSP_XST,8,3                    ## @SSP_XST
	.comm	_SSP_PM0,8,3                    ## @SSP_PM0
	.comm	_SSP_WAIT_PM0,4,2               ## @SSP_WAIT_PM0
	.no_dead_strip	_PicoWrite16_svpr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoWrite16_svpr
_PicoWrite16_svpr:                      ; @PicoWrite16_svpr
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EL_SVP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_SVP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SekPc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_elprintf
	and	w8, w20, #0xfffffff0
	cmp	w8, #2581, lsl #12              ; =10571776
	b.ne	LBB0_4
; %bb.1:
	and	w9, w20, #0xfffffffd
	cmp	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _svp@GOTPAGE
Lloh9:
	ldr	x8, [x8, _svp@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
Lloh11:
	adrp	x10, _SSP_XST@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SSP_XST@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	str	w19, [x9, x10, lsl #2]
Lloh14:
	adrp	x10, _SSP_PM0@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SSP_PM0@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w11, w11, #0x2
	str	w11, [x9, x10]
Lloh17:
	adrp	x9, _SSP_WAIT_PM0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SSP_WAIT_PM0@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PicoWrite16_io
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SVP w16: [%06x] %04x @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_svp,8,3                        ; @svp
	.comm	_SSP_XST,8,3                    ; @SSP_XST
	.comm	_SSP_PM0,8,3                    ; @SSP_PM0
	.comm	_SSP_WAIT_PM0,4,2               ; @SSP_WAIT_PM0
	.no_dead_strip	_PicoWrite16_svpr
.subsections_via_symbols
