	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m68k_op_asl_16_r
_m68k_op_asl_16_r:                      ## @m68k_op_asl_16_r
	.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	_DX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	$63, %r12d
	movq	_DY@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_MASK_OUT_ABOVE_16
	movl	%eax, %r14d
	movl	%eax, %ebx
	movl	%r12d, %ecx
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_MASK_OUT_ABOVE_16
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movq	_CYC_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%r12d, %edi
	callq	_USE_CYCLES
	movl	(%r13), %edi
	cmpl	$15, %r12d
	ja	LBB0_3
## %bb.2:
	callq	_MASK_OUT_BELOW_16
	orl	%r15d, %eax
	movl	%eax, (%r13)
	sarl	$8, %ebx
	movq	_FLAG_C@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_FLAG_X@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%r15d, %edi
	callq	_NFLAG_16
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_m68ki_shift_16_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%r12,4), %ecx
	andl	%ecx, %r14d
	xorl	%eax, %eax
	cmpl	%ecx, %r14d
	setne	%al
	shll	$7, %eax
	testl	%r14d, %r14d
	cmovel	%r14d, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_CFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_C@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%r14d, %edi
	callq	_NFLAG_16
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_VFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	andl	$-65536, %edi                   ## imm = 0xFFFF0000
	movl	%edi, (%r13)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	andl	$1, %r14d
	shll	$8, %r14d
	xorl	%ecx, %ecx
	cmpl	$16, %r12d
	cmovel	%r14d, %ecx
	movq	_FLAG_C@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_FLAG_X@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_NFLAG_CLEAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FLAG_N@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_ZFLAG_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FLAG_Z@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	shll	$7, %eax
LBB0_5:
	movq	_FLAG_V@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DY,4,2                         ## @DY
	.comm	_DX,4,2                         ## @DX
	.comm	_CYC_SHIFT,4,2                  ## @CYC_SHIFT
	.comm	_FLAG_C,4,2                     ## @FLAG_C
	.comm	_FLAG_X,4,2                     ## @FLAG_X
	.comm	_FLAG_N,4,2                     ## @FLAG_N
	.comm	_FLAG_Z,4,2                     ## @FLAG_Z
	.comm	_m68ki_shift_16_table,8,3       ## @m68ki_shift_16_table
	.comm	_FLAG_V,4,2                     ## @FLAG_V
	.comm	_NFLAG_CLEAR,4,2                ## @NFLAG_CLEAR
	.comm	_ZFLAG_SET,4,2                  ## @ZFLAG_SET
	.comm	_CFLAG_CLEAR,4,2                ## @CFLAG_CLEAR
	.comm	_VFLAG_CLEAR,4,2                ## @VFLAG_CLEAR
	.no_dead_strip	_m68k_op_asl_16_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m68k_op_asl_16_r
_m68k_op_asl_16_r:                      ; @m68k_op_asl_16_r
	.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
Lloh0:
	adrp	x8, _DX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DX@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	and	x22, x20, #0x3f
Lloh3:
	adrp	x23, _DY@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DY@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_MASK_OUT_ABOVE_16
	mov	x19, x0
	lsl	w21, w0, w20
	mov	x0, x21
	bl	_MASK_OUT_ABOVE_16
	cbz	w22, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _CYC_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CYC_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mul	w0, w8, w22
	bl	_USE_CYCLES
	ldr	w0, [x23]
	cmp	w22, #15
	b.hi	LBB0_4
; %bb.2:
	bl	_MASK_OUT_BELOW_16
	orr	w8, w0, w20
	str	w8, [x23]
	asr	w8, w21, #8
Lloh8:
	adrp	x9, _FLAG_C@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FLAG_C@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
Lloh11:
	adrp	x9, _FLAG_X@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FLAG_X@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	mov	x0, x20
	bl	_NFLAG_16
Lloh14:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh16:
	adrp	x9, _FLAG_Z@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FLAG_Z@GOTPAGEOFF]
Lloh18:
	str	w0, [x8]
Lloh19:
	str	w20, [x9]
Lloh20:
	adrp	x8, _m68ki_shift_16_table@GOTPAGE
Lloh21:
	ldr	x8, [x8, _m68ki_shift_16_table@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x8, x8, x22, lsl #2
	ldr	w8, [x8, #4]
	and	w9, w8, w19
	cmp	w9, w8
	ccmp	w9, #0, #4, ne
	mov	w8, #128
	csel	w8, wzr, w8, eq
	b	LBB0_5
LBB0_3:
Lloh23:
	adrp	x8, _CFLAG_CLEAR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CFLAG_CLEAR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _FLAG_C@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FLAG_C@GOTPAGEOFF]
Lloh28:
	str	w8, [x9]
	mov	x0, x19
	bl	_NFLAG_16
Lloh29:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh31:
	str	w0, [x8]
Lloh32:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
Lloh34:
	str	w19, [x8]
Lloh35:
	adrp	x8, _VFLAG_CLEAR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VFLAG_CLEAR@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_4:
	and	w8, w0, #0xffff0000
	str	w8, [x23]
	cmp	w19, #0
	cset	w8, ne
	ubfiz	w9, w19, #8, #1
Lloh38:
	adrp	x10, _FLAG_C@GOTPAGE
Lloh39:
	ldr	x10, [x10, _FLAG_C@GOTPAGEOFF]
	cmp	w22, #16
	csel	w9, w9, wzr, eq
Lloh40:
	str	w9, [x10]
Lloh41:
	adrp	x10, _FLAG_X@GOTPAGE
Lloh42:
	ldr	x10, [x10, _FLAG_X@GOTPAGEOFF]
Lloh43:
	adrp	x11, _NFLAG_CLEAR@GOTPAGE
Lloh44:
	ldr	x11, [x11, _NFLAG_CLEAR@GOTPAGEOFF]
Lloh45:
	str	w9, [x10]
Lloh46:
	ldr	w9, [x11]
Lloh47:
	adrp	x10, _FLAG_N@GOTPAGE
Lloh48:
	ldr	x10, [x10, _FLAG_N@GOTPAGEOFF]
Lloh49:
	adrp	x11, _ZFLAG_SET@GOTPAGE
Lloh50:
	ldr	x11, [x11, _ZFLAG_SET@GOTPAGEOFF]
Lloh51:
	str	w9, [x10]
Lloh52:
	ldr	w9, [x11]
Lloh53:
	adrp	x10, _FLAG_Z@GOTPAGE
Lloh54:
	ldr	x10, [x10, _FLAG_Z@GOTPAGEOFF]
Lloh55:
	str	w9, [x10]
	lsl	w8, w8, #7
LBB0_5:
Lloh56:
	adrp	x9, _FLAG_V@GOTPAGE
Lloh57:
	ldr	x9, [x9, _FLAG_V@GOTPAGEOFF]
Lloh58:
	str	w8, [x9]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh52
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh51
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh45
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_DY,4,2                         ; @DY
	.comm	_DX,4,2                         ; @DX
	.comm	_CYC_SHIFT,4,2                  ; @CYC_SHIFT
	.comm	_FLAG_C,4,2                     ; @FLAG_C
	.comm	_FLAG_X,4,2                     ; @FLAG_X
	.comm	_FLAG_N,4,2                     ; @FLAG_N
	.comm	_FLAG_Z,4,2                     ; @FLAG_Z
	.comm	_m68ki_shift_16_table,8,3       ; @m68ki_shift_16_table
	.comm	_FLAG_V,4,2                     ; @FLAG_V
	.comm	_NFLAG_CLEAR,4,2                ; @NFLAG_CLEAR
	.comm	_ZFLAG_SET,4,2                  ; @ZFLAG_SET
	.comm	_CFLAG_CLEAR,4,2                ; @CFLAG_CLEAR
	.comm	_VFLAG_CLEAR,4,2                ; @VFLAG_CLEAR
	.no_dead_strip	_m68k_op_asl_16_r
.subsections_via_symbols
