	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_asl_16_s               ## -- Begin function m68k_op_asl_16_s
	.p2align	4, 0x90
_m68k_op_asl_16_s:                      ## @m68k_op_asl_16_s
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_REG_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shrl	$9, %ebx
	decl	%ebx
	andl	$7, %ebx
	movq	_DY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MASK_OUT_ABOVE_16
	movl	%eax, %r15d
	leal	1(%rbx), %ecx
	movl	%eax, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	callq	_MASK_OUT_ABOVE_16
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_MASK_OUT_BELOW_16
	orl	%r14d, %eax
	movl	%eax, (%r12)
	movl	%r14d, %edi
	callq	_NFLAG_16
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movl	%ebx, %ecx
	xorb	$7, %cl
	movl	%r15d, %eax
	sarl	%cl, %eax
	movq	_FLAG_C@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FLAG_X@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_m68ki_shift_16_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax,%rbx,4), %eax
	andl	%eax, %r15d
	xorl	%ecx, %ecx
	cmpl	%eax, %r15d
	setne	%cl
	shll	$7, %ecx
	testl	%r15d, %r15d
	cmovel	%r15d, %ecx
	movq	_FLAG_V@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DY,4,2                         ## @DY
	.comm	_REG_IR,4,2                     ## @REG_IR
	.comm	_FLAG_N,4,2                     ## @FLAG_N
	.comm	_FLAG_Z,4,2                     ## @FLAG_Z
	.comm	_FLAG_C,4,2                     ## @FLAG_C
	.comm	_FLAG_X,4,2                     ## @FLAG_X
	.comm	_m68ki_shift_16_table,8,3       ## @m68ki_shift_16_table
	.comm	_FLAG_V,4,2                     ## @FLAG_V
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_asl_16_s               ; -- Begin function m68k_op_asl_16_s
	.p2align	2
_m68k_op_asl_16_s:                      ; @m68k_op_asl_16_s
	.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
Lloh0:
	adrp	x8, _REG_IR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_IR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w8, w8, #9
	sub	w8, w8, #1
	and	x21, x8, #0x7
	add	w20, w21, #1
Lloh3:
	adrp	x22, _DY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DY@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_MASK_OUT_ABOVE_16
	mov	x19, x0
	lsl	w0, w0, w20
	bl	_MASK_OUT_ABOVE_16
	mov	x20, x0
	ldr	w0, [x22]
	bl	_MASK_OUT_BELOW_16
	orr	w8, w0, w20
	str	w8, [x22]
	mov	x0, x20
	bl	_NFLAG_16
Lloh5:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
Lloh10:
	str	w20, [x8]
	eor	w8, w21, #0x7
Lloh11:
	adrp	x9, _FLAG_C@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FLAG_C@GOTPAGEOFF]
	asr	w8, w19, w8
Lloh13:
	str	w8, [x9]
Lloh14:
	adrp	x9, _FLAG_X@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FLAG_X@GOTPAGEOFF]
Lloh16:
	adrp	x10, _m68ki_shift_16_table@GOTPAGE
Lloh17:
	ldr	x10, [x10, _m68ki_shift_16_table@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
Lloh19:
	ldr	x8, [x10]
	add	x8, x8, x21, lsl #2
	ldr	w8, [x8, #8]
	and	w9, w8, w19
	cmp	w9, w8
	ccmp	w9, #0, #4, ne
	mov	w8, #128
	csel	w8, wzr, w8, eq
Lloh20:
	adrp	x9, _FLAG_V@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FLAG_V@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	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 AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DY,4,2                         ; @DY
	.comm	_REG_IR,4,2                     ; @REG_IR
	.comm	_FLAG_N,4,2                     ; @FLAG_N
	.comm	_FLAG_Z,4,2                     ; @FLAG_Z
	.comm	_FLAG_C,4,2                     ; @FLAG_C
	.comm	_FLAG_X,4,2                     ; @FLAG_X
	.comm	_m68ki_shift_16_table,8,3       ; @m68ki_shift_16_table
	.comm	_FLAG_V,4,2                     ; @FLAG_V
.subsections_via_symbols
