	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_gg_write                    ## -- Begin function io_gg_write
	.p2align	4, 0x90
_io_gg_write:                           ## @io_gg_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	decl	%edi
	cmpl	$5, %edi
	ja	LBB0_7
## %bb.1:
	movl	%esi, %ecx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_6:
	movq	_io_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, 4(%rax)
LBB0_7:
	popq	%rbp
	retq
LBB0_2:
	movq	_io_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, 8(%rax)
	popq	%rbp
	retq
LBB0_3:
	movq	_io_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, 12(%rax)
	popq	%rbp
	retq
LBB0_4:
	andl	$248, %ecx
	movq	_io_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, 20(%rax)
	popq	%rbp
	retq
LBB0_5:
	movq	_io_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, 24(%rax)
	movq	_Z80@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	popq	%rbp
	jmp	_SN76489_Config                 ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_io_reg,8,3                     ## @io_reg
	.comm	_Z80,4,2                        ## @Z80
	.comm	_config,8,2                     ## @config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_gg_write                    ; -- Begin function io_gg_write
	.p2align	2
_io_gg_write:                           ; @io_gg_write
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #1
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x3, x1
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:
Lloh2:
	adrp	x8, _io_reg@GOTPAGE
Lloh3:
	ldr	x8, [x8, _io_reg@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	w3, [x8, #4]
LBB0_3:
	ret
LBB0_4:
Lloh5:
	adrp	x8, _io_reg@GOTPAGE
Lloh6:
	ldr	x8, [x8, _io_reg@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w3, [x8, #8]
	ret
LBB0_5:
Lloh8:
	adrp	x8, _io_reg@GOTPAGE
Lloh9:
	ldr	x8, [x8, _io_reg@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	w3, [x8, #12]
	ret
LBB0_6:
	and	w8, w3, #0xf8
Lloh11:
	adrp	x9, _io_reg@GOTPAGE
Lloh12:
	ldr	x9, [x9, _io_reg@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	str	w8, [x9, #20]
	ret
LBB0_7:
Lloh14:
	adrp	x8, _io_reg@GOTPAGE
Lloh15:
	ldr	x8, [x8, _io_reg@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	w3, [x8, #24]
Lloh17:
	adrp	x8, _Z80@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Z80@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _config@GOTPAGE
Lloh21:
	ldr	x8, [x8, _config@GOTPAGEOFF]
	ldp	w2, w1, [x8]
	b	_SN76489_Config
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_io_reg,8,3                     ; @io_reg
	.comm	_Z80,4,2                        ; @Z80
	.comm	_config,8,2                     ; @config
.subsections_via_symbols
