	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ggenie_reset                   ## -- Begin function ggenie_reset
	.p2align	4, 0x90
_ggenie_reset:                          ## @ggenie_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ggenie@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.1:
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_ggenie_switch
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_3:
	movl	(%rbx), %eax
	movq	_m68k@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 16(%rcx)
	movq	_ggenie_write_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_ggenie_write_word@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	$0, (%rcx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ggenie,32,3                    ## @ggenie
	.comm	_m68k,8,3                       ## @m68k
	.comm	_ggenie_write_byte,4,2          ## @ggenie_write_byte
	.comm	_ggenie_write_word,4,2          ## @ggenie_write_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ggenie_reset                   ; -- Begin function ggenie_reset
	.p2align	2
_ggenie_reset:                          ; @ggenie_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _ggenie@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ggenie@GOTPAGEOFF]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.1:
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_ggenie_switch
	ldr	w0, [x19, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x19, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_3:
Lloh2:
	adrp	x8, _m68k@GOTPAGE
Lloh3:
	ldr	x8, [x8, _m68k@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh4:
	ldr	x8, [x8]
	str	w9, [x8, #16]
Lloh5:
	adrp	x9, _ggenie_write_byte@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ggenie_write_byte@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _ggenie_write_word@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ggenie_write_word@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
	str	xzr, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ggenie,32,3                    ; @ggenie
	.comm	_m68k,8,3                       ; @m68k
	.comm	_ggenie_write_byte,4,2          ; @ggenie_write_byte
	.comm	_ggenie_write_word,4,2          ; @ggenie_write_word
.subsections_via_symbols
