	.file	"extr_memz80.c_z80_sg_port_w.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	z80_sg_port_w
	.type	z80_sg_port_w, @function
z80_sg_port_w:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, edi
	movzx	esi, sil
	and	eax, 193
	cmp	eax, 128
	je	.L2
	ja	.L3
	sub	eax, 64
	cmp	eax, 1
	ja	.L4
	mov	edi, DWORD PTR Z80[rip]
	jmp	SN76489_Write@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	eax, 129
	jne	.L4
	mov	edi, esi
	jmp	vdp_tms_ctrl_w@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, esi
	jmp	vdp_z80_data_w@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	edi, dil
	jmp	z80_unused_port_w@PLT
	.cfi_endproc
.LFE0:
	.size	z80_sg_port_w, .-z80_sg_port_w
	.comm	Z80,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_memz80.c_z80_sg_port_w.c"
	.text
	.align	2
	.global	z80_sg_port_w
	.syntax unified
	.arm
	.fpu softvfp
	.type	z80_sg_port_w, %function
z80_sg_port_w:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	and	r3, r0, #193
	cmp	r3, #128
	mov	r2, r0
	mov	r0, r1
	beq	.L2
	bhi	.L3
	sub	r3, r3, #64
	cmp	r3, #1
	bhi	.L4
	ldr	r3, .L9
	ldr	r0, [r3]
	b	SN76489_Write
.L3:
	cmp	r3, #129
	bne	.L4
	b	vdp_tms_ctrl_w
.L2:
	b	vdp_z80_data_w
.L4:
	mov	r1, r0
	and	r0, r2, #255
	b	z80_unused_port_w
.L10:
	.align	2
.L9:
	.word	Z80
	.size	z80_sg_port_w, .-z80_sg_port_w
	.comm	Z80,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
