	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PutByte
_PutByte:                               ## @PutByte
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	%r14d, -20(%rbp)
	movl	4(%rdi), %eax
	addl	$-128, %eax
	cmpl	$29, %eax
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	testb	$-32, %sil
	jne	LBB0_32
	jmp	LBB0_28
LBB0_4:
	cmpl	$54690, %esi                    ## imm = 0xD5A2
	je	LBB0_25
## %bb.5:
	cmpl	$54689, %esi                    ## imm = 0xD5A1
	je	LBB0_26
## %bb.6:
	cmpl	$54688, %esi                    ## imm = 0xD5A0
	jne	LBB0_32
## %bb.7:
	movl	%r14d, %eax
	andl	$16128, %eax                    ## imm = 0x3F00
	jmp	LBB0_27
LBB0_8:
	andl	$143, %edx
	jmp	LBB0_28
LBB0_9:
	andl	$15, %edx
	jmp	LBB0_28
LBB0_10:
	andl	$135, %edx
	jmp	LBB0_28
LBB0_11:
	andl	$191, %edx
	jmp	LBB0_28
LBB0_13:
	andl	$131, %edx
	jmp	LBB0_28
LBB0_14:
	andl	$159, %edx
	jmp	LBB0_28
LBB0_15:
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_access_D5
	testl	%eax, %eax
	je	LBB0_32
## %bb.16:
	movl	-20(%rbp), %edx
	jmp	LBB0_29
LBB0_17:
	andl	$63, %edx
	jmp	LBB0_28
LBB0_18:
	andl	$3, %edx
	jmp	LBB0_28
LBB0_19:
	andl	$31, %edx
	jmp	LBB0_28
LBB0_20:
	andl	$127, %edx
	jmp	LBB0_28
LBB0_21:
	andl	$7, %edx
	jmp	LBB0_28
LBB0_22:
	andl	$129, %edx
	jmp	LBB0_28
LBB0_23:
	andl	$128, %edx
	jmp	LBB0_28
LBB0_24:
	leal	256(%r14), %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	jmp	LBB0_28
LBB0_25:
	movl	%r14d, %eax
	andl	$16383, %eax                    ## imm = 0x3FFF
	andl	$1, %edx
	shll	$14, %edx
	orl	%eax, %edx
	xorl	$16384, %edx                    ## imm = 0x4000
	jmp	LBB0_28
LBB0_26:
	movzbl	%r14b, %eax
	andl	$63, %edx
	shll	$8, %edx
LBB0_27:
	orl	%eax, %edx
LBB0_28:
	movl	%edx, -20(%rbp)
LBB0_29:
	cmpl	%r14d, %edx
	je	LBB0_32
## %bb.30:
	movl	%edx, (%rbx)
	movq	_active_cart@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_32
## %bb.31:
	movl	%r14d, %edi
	callq	_SwitchBank
LBB0_32:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_9
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_28
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_2
	.long	L0_0_set_22
	.long	L0_0_set_8
	.long	L0_0_set_28
	.long	L0_0_set_23
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_active_cart,8,3                ## @active_cart
	.comm	_CARTRIDGE_NONE,4,2             ## @CARTRIDGE_NONE
	.comm	_CARTRIDGE_piggyback,8,2        ## @CARTRIDGE_piggyback
	.no_dead_strip	_PutByte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PutByte
_PutByte:                               ; @PutByte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldp	w19, w8, [x0]
	str	w19, [sp, #12]
	sub	w8, w8, #128
	cmp	w8, #29
	b.hi	LBB0_13
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	tst	w1, #0xe0
	b.ne	LBB0_25
	b	LBB0_22
LBB0_3:
	mov	w8, #54690
	cmp	w1, w8
	b.eq	LBB0_28
; %bb.4:
	mov	w8, #54689
	cmp	w1, w8
	b.eq	LBB0_29
; %bb.5:
	mov	w8, #54688
	cmp	w1, w8
	b.ne	LBB0_25
; %bb.6:
	and	w8, w19, #0x3f00
	orr	w2, w8, w2
	b	LBB0_22
LBB0_7:
	mov	w8, #143
	b	LBB0_21
LBB0_8:
	and	w2, w2, #0xf
	b	LBB0_22
LBB0_9:
	mov	w8, #135
	b	LBB0_21
LBB0_10:
	mov	w8, #191
	b	LBB0_21
LBB0_11:
	mov	w8, #131
	b	LBB0_21
LBB0_12:
	mov	w8, #159
	b	LBB0_21
LBB0_13:
	add	x2, sp, #12
	mov	x0, x20
	bl	_access_D5
	cbz	w0, LBB0_25
; %bb.14:
	ldr	w2, [sp, #12]
	cmp	w2, w19
	b.eq	LBB0_25
	b	LBB0_23
LBB0_15:
	and	w2, w2, #0x3f
	b	LBB0_22
LBB0_16:
	and	w2, w2, #0x3
	b	LBB0_22
LBB0_17:
	and	w2, w2, #0x1f
	b	LBB0_22
LBB0_18:
	and	w2, w2, #0x7f
	b	LBB0_22
LBB0_19:
	and	w2, w2, #0x7
	b	LBB0_22
LBB0_20:
	mov	w8, #129
LBB0_21:
	and	w2, w2, w8
LBB0_22:
	str	w2, [sp, #12]
	cmp	w2, w19
	b.eq	LBB0_25
LBB0_23:
	str	w2, [x20]
Lloh2:
	adrp	x8, _active_cart@GOTPAGE
Lloh3:
	ldr	x8, [x8, _active_cart@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_SwitchBank
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_26:
	and	w2, w2, #0x80
	b	LBB0_22
LBB0_27:
	add	w8, w19, #256
	and	w2, w8, #0x7fff
	b	LBB0_22
LBB0_28:
	and	w8, w19, #0x3fff
	bfi	w8, w2, #14, #1
	eor	w2, w8, #0x4000
	b	LBB0_22
LBB0_29:
	and	w8, w19, #0xff
	bfi	w8, w2, #8, #6
	str	w8, [sp, #12]
	mov	x2, x8
	cmp	w2, w19
	b.eq	LBB0_25
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
                                        ; -- End function
	.comm	_active_cart,8,3                ; @active_cart
	.comm	_CARTRIDGE_NONE,4,2             ; @CARTRIDGE_NONE
	.comm	_CARTRIDGE_piggyback,8,2        ; @CARTRIDGE_piggyback
	.no_dead_strip	_PutByte
.subsections_via_symbols
