	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C68k_Init                      ## -- Begin function C68k_Init
	.p2align	4, 0x90
_C68k_Init:                             ## @C68k_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_C68k_Read_Dummy@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_C68k_Set_ReadB
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_C68k_Set_ReadW
	movq	_C68k_Write_Dummy@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_C68k_Set_WriteB
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_C68k_Set_WriteW
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movq	_C68k_Interrupt_Ack_Dummy@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_2:
	movq	%r14, 8(%rbx)
	movq	_C68k_Reset_Dummy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_C68K_DISABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_C68k_Exec
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C68k_Read_Dummy,4,2            ## @C68k_Read_Dummy
	.comm	_C68k_Write_Dummy,4,2           ## @C68k_Write_Dummy
	.comm	_C68k_Interrupt_Ack_Dummy,8,3   ## @C68k_Interrupt_Ack_Dummy
	.comm	_C68k_Reset_Dummy,4,2           ## @C68k_Reset_Dummy
	.comm	_C68K_DISABLE,4,2               ## @C68K_DISABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_C68k_Init                      ; -- Begin function C68k_Init
	.p2align	2
_C68k_Init:                             ; @C68k_Init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x21, _C68k_Read_Dummy@GOTPAGE
Lloh1:
	ldr	x21, [x21, _C68k_Read_Dummy@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_C68k_Set_ReadB
	ldr	w1, [x21]
	mov	x0, x20
	bl	_C68k_Set_ReadW
Lloh2:
	adrp	x21, _C68k_Write_Dummy@GOTPAGE
Lloh3:
	ldr	x21, [x21, _C68k_Write_Dummy@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_C68k_Set_WriteB
	ldr	w1, [x21]
	mov	x0, x20
	bl	_C68k_Set_WriteW
Lloh4:
	adrp	x8, _C68k_Interrupt_Ack_Dummy@GOTPAGE
Lloh5:
	ldr	x8, [x8, _C68k_Interrupt_Ack_Dummy@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x8, x8, x19, eq
	str	x8, [x20, #8]
Lloh7:
	adrp	x8, _C68k_Reset_Dummy@GOTPAGE
Lloh8:
	ldr	x8, [x8, _C68k_Reset_Dummy@GOTPAGEOFF]
Lloh9:
	adrp	x19, _C68K_DISABLE@GOTPAGE
Lloh10:
	ldr	x19, [x19, _C68K_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	ldr	w10, [x20]
	orr	w9, w10, w9
	stp	w9, w8, [x20]
	mov	x0, x20
	mov	w1, #0
	bl	_C68k_Exec
	ldr	w8, [x19]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_C68k_Read_Dummy,4,2            ; @C68k_Read_Dummy
	.comm	_C68k_Write_Dummy,4,2           ; @C68k_Write_Dummy
	.comm	_C68k_Interrupt_Ack_Dummy,8,3   ; @C68k_Interrupt_Ack_Dummy
	.comm	_C68k_Reset_Dummy,4,2           ; @C68k_Reset_Dummy
	.comm	_C68K_DISABLE,4,2               ; @C68K_DISABLE
.subsections_via_symbols
