	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z80_sg_port_w                  ## -- Begin function z80_sg_port_w
	.p2align	4, 0x90
_z80_sg_port_w:                         ## @z80_sg_port_w
	.cfi_startproc
## %bb.0:
	movl	%edi, %eax
	andb	$-63, %al
	leal	-64(%rax), %ecx
	cmpb	$2, %cl
	jb	LBB0_4
## %bb.1:
	cmpb	$-128, %al
	je	LBB0_5
## %bb.2:
	cmpb	$-127, %al
	jne	LBB0_6
## %bb.3:
	movzbl	%sil, %edi
	jmp	_vdp_tms_ctrl_w                 ## TAILCALL
LBB0_4:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Z80@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%sil, %esi
	popq	%rbp
	jmp	_SN76489_Write                  ## TAILCALL
LBB0_5:
	movzbl	%sil, %edi
	jmp	_vdp_z80_data_w                 ## TAILCALL
LBB0_6:
	movzbl	%dil, %edi
	movzbl	%sil, %esi
	jmp	_z80_unused_port_w              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Z80,4,2                        ## @Z80
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z80_sg_port_w                  ; -- Begin function z80_sg_port_w
	.p2align	2
_z80_sg_port_w:                         ; @z80_sg_port_w
	.cfi_startproc
; %bb.0:
	mov	w8, #193
	and	w8, w0, w8
	sub	w9, w8, #64
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x1
	b	_vdp_tms_ctrl_w
LBB0_4:
Lloh0:
	adrp	x8, _Z80@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z80@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	_SN76489_Write
LBB0_5:
	mov	x0, x1
	b	_vdp_z80_data_w
LBB0_6:
	and	w0, w0, #0xff
	b	_z80_unused_port_w
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Z80,4,2                        ; @Z80
.subsections_via_symbols
