	.file	"extr_cartridge.c_CARTRIDGE_SetType.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CARTRIDGE_SetType
	.type	CARTRIDGE_SetType, @function
CARTRIDGE_SetType:
.LFB0:
	.cfi_startproc
	endbr64
	mov	DWORD PTR [rdi], esi
	cmp	DWORD PTR CARTRIDGE_NONE[rip], esi
	je	.L8
	jmp	InitCartridge@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 8[rsp], rdi
	call	RemoveCart@PLT
	mov	rdi, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 8
	jmp	InitCartridge@PLT
	.cfi_endproc
.LFE0:
	.size	CARTRIDGE_SetType, .-CARTRIDGE_SetType
	.comm	CARTRIDGE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cartridge.c_CARTRIDGE_SetType.c"
	.text
	.align	2
	.global	CARTRIDGE_SetType
	.syntax unified
	.arm
	.fpu softvfp
	.type	CARTRIDGE_SetType, %function
CARTRIDGE_SetType:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, lr}
	str	r1, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, r1
	beq	.L5
	mov	r0, r4
	pop	{r4, lr}
	b	InitCartridge
.L5:
	bl	RemoveCart
	mov	r0, r4
	pop	{r4, lr}
	b	InitCartridge
.L7:
	.align	2
.L6:
	.word	CARTRIDGE_NONE
	.size	CARTRIDGE_SetType, .-CARTRIDGE_SetType
	.comm	CARTRIDGE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
