	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoWriteS68k16_bram
_PicoWriteS68k16_bram:                  ## @PicoWriteS68k16_bram
	.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_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPcS68k@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_elprintf
	shrl	%ebx
	andl	$8191, %ebx                     ## imm = 0x1FFF
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%r14d, (%rax,%rbx,4)
	sarl	$8, %r14d
	movl	%r14d, 4(%rax,%rbx,4)
	movq	_SRam@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s68k_bram w16: [%06x] %04x @%06x"

	.comm	_SekPcS68k,4,2                  ## @SekPcS68k
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_SRam,4,2                       ## @SRam
	.no_dead_strip	_PicoWriteS68k16_bram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoWriteS68k16_bram
_PicoWriteS68k16_bram:                  ; @PicoWriteS68k16_bram
	.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_ANOMALY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SekPcS68k@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SekPcS68k@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
	ubfx	w8, w20, #1, #13
Lloh8:
	adrp	x9, _Pico_mcd@GOTPAGE
Lloh9:
	ldr	x9, [x9, _Pico_mcd@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	w10, w8, #1
	str	w19, [x9, w8, uxtw #2]
	asr	w8, w19, #8
	str	w8, [x9, w10, uxtw #2]
Lloh11:
	adrp	x8, _SRam@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SRam@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s68k_bram w16: [%06x] %04x @%06x"

	.comm	_SekPcS68k,4,2                  ; @SekPcS68k
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_SRam,4,2                       ; @SRam
	.no_dead_strip	_PicoWriteS68k16_bram
.subsections_via_symbols
