	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AxlonPutByte
_AxlonPutByte:                          ## @AxlonPutByte
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	cmpl	$3840, %eax                     ## imm = 0xF00
	jne	LBB0_2
## %bb.1:
	movq	_MEMORY_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movl	%ebx, (%rax,%rcx,4)
LBB0_2:
	notl	%edi
	testb	$-64, %dil
	jne	LBB0_5
## %bb.3:
	movq	_axlon_current_bankmask@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_axlon_curbank@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdi
	cmpl	%edi, %ebx
	je	LBB0_5
## %bb.4:
	movslq	%ebx, %r14
	movq	_axlon_ram@GOTPCREL(%rip), %rax
	shlq	$16, %rdi
	addq	(%rax), %rdi
	movq	_MEMORY_mem@GOTPCREL(%rip), %r13
	movl	$65536, %r15d                   ## imm = 0x10000
	movq	(%r13), %rsi
	addq	%r15, %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_memcpy
	addq	(%r13), %r15
	shlq	$16, %r14
	movq	_axlon_ram@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_memcpy
	movl	%ebx, (%r12)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMORY_mem,8,3                 ## @MEMORY_mem
	.comm	_axlon_current_bankmask,4,2     ## @axlon_current_bankmask
	.comm	_axlon_curbank,4,2              ## @axlon_curbank
	.comm	_axlon_ram,8,3                  ## @axlon_ram
	.no_dead_strip	_AxlonPutByte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AxlonPutByte
_AxlonPutByte:                          ; @AxlonPutByte
	.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
	and	w8, w0, #0xff00
	cmp	w8, #3840
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MEMORY_mem@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMORY_mem@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	w1, [x8, w0, sxtw #2]
LBB0_2:
	mvn	w8, w0
	tst	w8, #0xc0
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _axlon_current_bankmask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _axlon_current_bankmask@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w19, w8, w1
Lloh6:
	adrp	x20, _axlon_curbank@GOTPAGE
Lloh7:
	ldr	x20, [x20, _axlon_curbank@GOTPAGEOFF]
	ldrsw	x8, [x20]
	cmp	w19, w8
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x21, _axlon_ram@GOTPAGE
Lloh9:
	ldr	x21, [x21, _axlon_ram@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8, lsl #16
Lloh10:
	adrp	x22, _MEMORY_mem@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MEMORY_mem@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, #16, lsl #12            ; =65536
	mov	w2, #16384
	bl	_memcpy
	ldr	x8, [x22]
	add	x0, x8, #16, lsl #12            ; =65536
	ldr	x8, [x21]
	lsl	w9, w19, #14
	add	x1, x8, w9, sxtw #2
	mov	w2, #16384
	bl	_memcpy
	str	w19, [x20]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMORY_mem,8,3                 ; @MEMORY_mem
	.comm	_axlon_current_bankmask,4,2     ; @axlon_current_bankmask
	.comm	_axlon_curbank,4,2              ; @axlon_curbank
	.comm	_axlon_ram,8,3                  ; @axlon_ram
	.no_dead_strip	_AxlonPutByte
.subsections_via_symbols
