	.file	"extr_cd_cart.c_cart_prot_write_word.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cart_prot_write_word, @function
cart_prot_write_word:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR m68k[rip]
	mov	rdi, QWORD PTR zbank_memory_map[rip]
	test	sil, 1
	je	.L2
	mov	r8d, DWORD PTR cart_ram_write_word[rip]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rcx, QWORD PTR cart_ram_write_byte[rip]
	mov	DWORD PTR 1536[rdx+rax*2], r8d
	mov	QWORD PTR 1544[rdx+rax*2], rcx
	mov	QWORD PTR 768[rdi+rax], rcx
	add	rax, 8
	cmp	rax, 128
	jne	.L3
	and	esi, 255
	mov	DWORD PTR scd[rip], esi
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r8d, DWORD PTR m68k_unused_16_w[rip]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, QWORD PTR m68k_unused_8_w[rip]
	mov	DWORD PTR 1536[rdx+rax*2], r8d
	mov	QWORD PTR 1544[rdx+rax*2], rcx
	mov	rcx, QWORD PTR zbank_unused_w[rip]
	mov	QWORD PTR 768[rdi+rax], rcx
	add	rax, 8
	cmp	rax, 128
	jne	.L4
	and	esi, 255
	mov	DWORD PTR scd[rip], esi
	ret
	.cfi_endproc
.LFE0:
	.size	cart_prot_write_word, .-cart_prot_write_word
	.comm	zbank_unused_w,8,8
	.comm	zbank_memory_map,8,8
	.comm	scd,4,4
	.comm	m68k_unused_8_w,8,8
	.comm	m68k_unused_16_w,4,4
	.comm	m68k,8,8
	.comm	cart_ram_write_word,4,4
	.comm	cart_ram_write_byte,8,8
	.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_cd_cart.c_cart_prot_write_word.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cart_prot_write_word, %function
cart_prot_write_word:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	ldr	r2, .L11+4
	tst	r1, #1
	push	{r4, r5, lr}
	ldr	r3, [r3]
	ldr	r0, [r2]
	beq	.L2
	ldr	r2, .L11+8
	ldr	r4, .L11+12
	ldr	lr, [r2]
	add	ip, r0, #444
	add	r2, r0, #380
.L3:
	ldr	r0, [r4]
	str	lr, [r3, #768]
	str	r0, [r3, #772]
	str	r0, [r2, #4]!
	cmp	ip, r2
	add	r3, r3, #8
	bne	.L3
.L5:
	ldr	r3, .L11+16
	and	r1, r1, #255
	str	r1, [r3]
	pop	{r4, r5, pc}
.L2:
	ldr	r2, .L11+20
	ldr	r5, .L11+24
	ldr	lr, .L11+28
	ldr	r4, [r2]
	add	r2, r0, #380
	add	r0, r0, #444
.L4:
	ldr	ip, [r5]
	str	r4, [r3, #768]
	str	ip, [r3, #772]
	ldr	ip, [lr]
	add	r3, r3, #8
	str	ip, [r2, #4]!
	cmp	r2, r0
	bne	.L4
	b	.L5
.L12:
	.align	2
.L11:
	.word	m68k
	.word	zbank_memory_map
	.word	cart_ram_write_word
	.word	cart_ram_write_byte
	.word	scd
	.word	m68k_unused_16_w
	.word	m68k_unused_8_w
	.word	zbank_unused_w
	.size	cart_prot_write_word, .-cart_prot_write_word
	.comm	zbank_unused_w,4,4
	.comm	zbank_memory_map,4,4
	.comm	scd,4,4
	.comm	m68k_unused_8_w,4,4
	.comm	m68k_unused_16_w,4,4
	.comm	m68k,4,4
	.comm	cart_ram_write_word,4,4
	.comm	cart_ram_write_byte,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
