	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_launch_m68k
_ast_launch_m68k:                       ## @ast_launch_m68k
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	movl	$510533888, %esi                ## imm = 0x1E6E2100
	callq	_ast_mindwm
	movl	$1, %r14d
	testb	$1, %al
	jne	LBB0_11
## %bb.1:
	movq	(%r15), %r14
	movl	$32768, %r12d                   ## imm = 0x8000
	testq	%r14, %r14
	jne	LBB0_7
## %bb.2:
	movq	8(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_ast_load_dp501_microcode
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	8(%r15), %rax
LBB0_6:
	movq	8(%rax), %r14
	movl	(%rax), %r12d
LBB0_7:
	movq	%r15, %rdi
	movl	$510533632, %esi                ## imm = 0x1E6E2000
	movl	$378054824, %edx                ## imm = 0x1688A8A8
	callq	_ast_moutdwm
	movq	%r15, %rdi
	movl	$510525444, %esi                ## imm = 0x1E6E0004
	callq	_ast_mindwm
                                        ## kill: def $eax killed $eax def $rax
	andl	$3, %eax
	leaq	L_switch.table.ast_launch_m68k(%rip), %rcx
	movl	(%rcx,%rax,4), %r13d
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edx
	leal	(%rbx,%r13), %esi
	movq	%r15, %rdi
	callq	_ast_moutdwm
	addq	$4, %rbx
	cmpl	%ebx, %r12d
	jg	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	movl	$510533632, %esi                ## imm = 0x1E6E2000
	movl	$378054824, %edx                ## imm = 0x1688A8A8
	callq	_ast_moutdwm
	orl	$-2147483648, %r13d             ## imm = 0x80000000
	movq	%r15, %rdi
	movl	$510533892, %esi                ## imm = 0x1E6E2104
	movl	%r13d, %edx
	callq	_ast_moutdwm
	movl	$1, %r14d
	movq	%r15, %rdi
	movl	$510533888, %esi                ## imm = 0x1E6E2100
	movl	$1, %edx
	callq	_ast_moutdwm
	movq	%r15, %rdi
	movl	$510533696, %esi                ## imm = 0x1E6E2040
	callq	_ast_mindwm
                                        ## kill: def $eax killed $eax def $rax
	andl	$-3585, %eax                    ## imm = 0xF1FF
	leal	2048(%rax), %edx
	movq	%r15, %rdi
	movl	$510533696, %esi                ## imm = 0x1E6E2040
	callq	_ast_moutdwm
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$153, %edx
	movl	$252, %ecx
	callq	_ast_get_index_reg_mask
	orl	$2, %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$153, %edx
	movl	%eax, %ecx
	callq	_ast_set_index_reg
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.no_dead_strip	_ast_launch_m68k
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ast_launch_m68k
L_switch.table.ast_launch_m68k:
	.long	1138753536                      ## 0x43e00000
	.long	1205862400                      ## 0x47e00000
	.long	1340080128                      ## 0x4fe00000
	.long	1608515584                      ## 0x5fe00000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_launch_m68k
_ast_launch_m68k:                       ; @ast_launch_m68k
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	mov	w21, #8192
	movk	w21, #7790, lsl #16
	ldr	x19, [x0]
	orr	w1, w21, #0x100
	mov	x0, x19
	bl	_ast_mindwm
	tbnz	w0, #0, LBB0_3
; %bb.1:
	ldr	x22, [x19]
	cbz	x22, LBB0_4
; %bb.2:
	mov	w20, #32768
	b	LBB0_8
LBB0_3:
	mov	w20, #1
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_ast_load_dp501_microcode
	tbnz	x0, #63, LBB0_13
; %bb.6:
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	x22, [x8, #8]
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #7790, lsl #16
	mov	w2, #43176
	movk	w2, #5768, lsl #16
	bl	_ast_moutdwm
	mov	x0, x19
	mov	w1, #4
	movk	w1, #7790, lsl #16
	bl	_ast_mindwm
	and	w8, w0, #0x3
Lloh0:
	adrp	x9, l_switch.table.ast_launch_m68k@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ast_launch_m68k@PAGEOFF
	ldr	w23, [x9, w8, uxtw #2]
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22, x24, lsl #2]
	add	w1, w23, w24
	mov	x0, x19
	bl	_ast_moutdwm
	add	x24, x24, #4
	cmp	w20, w24
	b.gt	LBB0_10
LBB0_11:
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #7790, lsl #16
	mov	w2, #43176
	movk	w2, #5768, lsl #16
	bl	_ast_moutdwm
	orr	w2, w23, #0x80000000
	add	w1, w21, #260
	mov	x0, x19
	bl	_ast_moutdwm
	add	w1, w21, #256
	mov	w20, #1
	mov	x0, x19
	mov	w2, #1
	bl	_ast_moutdwm
	add	w21, w21, #64
	mov	x0, x19
	mov	x1, x21
	bl	_ast_mindwm
	and	w8, w0, #0xfffff1ff
	orr	w2, w8, #0x800
	mov	x0, x19
	mov	x1, x21
	bl	_ast_moutdwm
Lloh2:
	adrp	x21, _AST_IO_CRTC_PORT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AST_IO_CRTC_PORT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #153
	mov	w3, #252
	bl	_ast_get_index_reg_mask
	orr	w3, w0, #0x2
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #153
	bl	_ast_set_index_reg
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w20, #0
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.no_dead_strip	_ast_launch_m68k
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ast_launch_m68k
l_switch.table.ast_launch_m68k:
	.long	1138753536                      ; 0x43e00000
	.long	1205862400                      ; 0x47e00000
	.long	1340080128                      ; 0x4fe00000
	.long	1608515584                      ; 0x5fe00000

.subsections_via_symbols
