	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_cas2_32                ## -- Begin function m68k_op_cas2_32
	.p2align	4, 0x90
_m68k_op_cas2_32:                       ## @m68k_op_cas2_32
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CPU_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CPU_TYPE_IS_EC020_PLUS
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_OPER_I_32
	movl	%eax, %r15d
	movq	_REG_D@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%r15d, %r13d
	shrl	$16, %r13d
	andl	$7, %r13d
	movq	_REG_DA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	shrl	$28, %ecx
	movl	(%rax,%rcx,4), %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_m68ki_read_32
	movl	%eax, %ebx
	movl	%eax, %r12d
	subl	(%r14,%r13,4), %r12d
	movq	_REG_D@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	andl	$7, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_REG_DA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ecx
	shrl	$12, %ecx
	andl	$15, %ecx
	movl	(%rax,%rcx,4), %r15d
	movl	%r15d, %edi
	callq	_m68ki_read_32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_m68ki_trace_t0
	movl	%r12d, %edi
	callq	_NFLAG_32
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%r12d, %edi
	callq	_MASK_OUT_ABOVE_32
	movq	_FLAG_Z@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r14,%r13,4), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_VFLAG_SUB_32
	movq	_FLAG_V@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	(%r14,%r13,4), %edi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_CFLAG_SUB_32
	movq	_FLAG_C@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_COND_EQ
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ebx
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	subl	(%r15,%r12,4), %ebx
	movl	%ebx, %edi
	callq	_NFLAG_32
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %edi
	callq	_MASK_OUT_ABOVE_32
	movq	_FLAG_Z@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r15,%r12,4), %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_VFLAG_SUB_32
	movq	_FLAG_V@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r15,%r12,4), %edi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_CFLAG_SUB_32
	movq	_FLAG_C@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_COND_EQ
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	$3, %edi
	callq	_USE_CYCLES
	movq	_REG_D@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %ecx
	shrl	$22, %ecx
	andl	$7, %ecx
	movl	(%rax,%rcx,4), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_m68ki_write_32
	movq	(%r14), %rax
	shrl	$6, %ebx
	andl	$7, %ebx
	movl	(%rax,%rbx,4), %esi
	movl	%r15d, %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_m68ki_write_32                 ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_m68ki_exception_illegal        ## TAILCALL
LBB0_3:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%r13,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_TYPE,4,2                   ## @CPU_TYPE
	.comm	_REG_D,8,3                      ## @REG_D
	.comm	_REG_DA,8,3                     ## @REG_DA
	.comm	_FLAG_N,4,2                     ## @FLAG_N
	.comm	_FLAG_Z,4,2                     ## @FLAG_Z
	.comm	_FLAG_V,4,2                     ## @FLAG_V
	.comm	_FLAG_C,4,2                     ## @FLAG_C
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_cas2_32                ; -- Begin function m68k_op_cas2_32
	.p2align	2
_m68k_op_cas2_32:                       ; @m68k_op_cas2_32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _CPU_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPU_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CPU_TYPE_IS_EC020_PLUS
	cbz	x0, LBB0_4
; %bb.1:
	bl	_OPER_I_32
	mov	x19, x0
Lloh3:
	adrp	x23, _REG_D@GOTPAGE
Lloh4:
	ldr	x23, [x23, _REG_D@GOTPAGEOFF]
	ldr	x26, [x23]
	ubfx	w8, w0, #16, #3
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	lsl	x20, x8, #2
Lloh5:
	adrp	x21, _REG_DA@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_DA@GOTPAGEOFF]
	ldr	x8, [x21]
	lsr	w9, w0, #28
	ldr	w25, [x8, w9, uxtw #2]
	mov	x0, x25
	bl	_m68ki_read_32
	mov	x22, x0
	ldr	w8, [x26, x20]
	sub	w24, w0, w8
	ldr	x28, [x23]
	and	w8, w19, #0x7
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x21]
	ubfx	w9, w19, #12, #4
	ldr	w0, [x8, w9, uxtw #2]
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	bl	_m68ki_read_32
	mov	x23, x0
	bl	_m68ki_trace_t0
	mov	x0, x24
	bl	_NFLAG_32
Lloh7:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
	mov	x0, x24
	bl	_MASK_OUT_ABOVE_32
Lloh10:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
Lloh12:
	str	w0, [x8]
	ldr	w0, [x26, x20]
	mov	x1, x22
	mov	x2, x24
	bl	_VFLAG_SUB_32
Lloh13:
	adrp	x21, _FLAG_V@GOTPAGE
Lloh14:
	ldr	x21, [x21, _FLAG_V@GOTPAGEOFF]
	str	w0, [x21]
	ldr	w0, [x26, x20]
	mov	x1, x22
	mov	x2, x24
	bl	_CFLAG_SUB_32
Lloh15:
	adrp	x20, _FLAG_C@GOTPAGE
Lloh16:
	ldr	x20, [x20, _FLAG_C@GOTPAGEOFF]
	str	w0, [x20]
	bl	_COND_EQ
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	lsl	x27, x8, #2
	ldr	w8, [x28, x27]
	sub	w24, w23, w8
	mov	x0, x24
	bl	_NFLAG_32
Lloh17:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	mov	x0, x24
	bl	_MASK_OUT_ABOVE_32
Lloh20:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
	ldr	w0, [x28, x27]
	mov	x1, x23
	mov	x2, x24
	bl	_VFLAG_SUB_32
	str	w0, [x21]
	ldr	w0, [x28, x27]
Lloh23:
	adrp	x21, _REG_D@GOTPAGE
Lloh24:
	ldr	x21, [x21, _REG_D@GOTPAGEOFF]
	mov	x1, x23
	mov	x2, x24
	bl	_CFLAG_SUB_32
	str	w0, [x20]
	bl	_COND_EQ
	cbz	x0, LBB0_5
; %bb.3:
	mov	w0, #3
	bl	_USE_CYCLES
	ldr	x8, [x21]
	ubfx	w9, w19, #22, #3
	ldr	w1, [x8, w9, uxtw #2]
	mov	x0, x25
	bl	_m68ki_write_32
	ldr	x8, [x21]
	ubfx	w9, w19, #6, #3
	ldr	w1, [x8, w9, uxtw #2]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_m68ki_write_32
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_m68ki_exception_illegal
LBB0_5:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w22, [x26, x8, lsl #2]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w23, [x28, x8, lsl #2]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_TYPE,4,2                   ; @CPU_TYPE
	.comm	_REG_D,8,3                      ; @REG_D
	.comm	_REG_DA,8,3                     ; @REG_DA
	.comm	_FLAG_N,4,2                     ; @FLAG_N
	.comm	_FLAG_Z,4,2                     ; @FLAG_Z
	.comm	_FLAG_V,4,2                     ; @FLAG_V
	.comm	_FLAG_C,4,2                     ; @FLAG_C
.subsections_via_symbols
