	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_nbcd_8_al              ## -- Begin function m68k_op_nbcd_8_al
	.p2align	4, 0x90
_m68k_op_nbcd_8_al:                     ## @m68k_op_nbcd_8_al
	.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
	xorl	%eax, %eax
	callq	_EA_AL_8
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_m68ki_read_8
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_XFLAG_AS_1
	addl	%ebx, %eax
	movl	$154, %ebx
	movl	$154, %edi
	subl	%eax, %edi
	callq	_MASK_OUT_ABOVE_8
	cmpl	$154, %eax
	jne	LBB0_1
## %bb.2:
	movq	_VFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_V@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_XFLAG_CLEAR@GOTPCREL(%rip), %rax
	movq	_CFLAG_CLEAR@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ecx
	notl	%ecx
	movq	_FLAG_V@GOTPCREL(%rip), %r15
	movl	%ecx, (%r15)
	movl	%eax, %ecx
	andl	$15, %ecx
	movl	%eax, %edi
	andl	$240, %edi
	addl	$16, %edi
	cmpl	$10, %ecx
	cmovnel	%eax, %edi
	callq	_MASK_OUT_ABOVE_8
	movl	%eax, %ebx
	andl	%eax, (%r15)
	movl	%eax, %edi
	callq	_MASK_OUT_ABOVE_8
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_m68ki_write_8
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	orl	%ebx, (%rax)
	movq	_XFLAG_SET@GOTPCREL(%rip), %rax
	movq	_CFLAG_SET@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movq	_FLAG_C@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movq	_FLAG_X@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %edi
	callq	_NFLAG_8
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_V,4,2                     ## @FLAG_V
	.comm	_FLAG_Z,4,2                     ## @FLAG_Z
	.comm	_CFLAG_SET,4,2                  ## @CFLAG_SET
	.comm	_FLAG_C,4,2                     ## @FLAG_C
	.comm	_XFLAG_SET,4,2                  ## @XFLAG_SET
	.comm	_FLAG_X,4,2                     ## @FLAG_X
	.comm	_VFLAG_CLEAR,4,2                ## @VFLAG_CLEAR
	.comm	_CFLAG_CLEAR,4,2                ## @CFLAG_CLEAR
	.comm	_XFLAG_CLEAR,4,2                ## @XFLAG_CLEAR
	.comm	_FLAG_N,4,2                     ## @FLAG_N
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_nbcd_8_al              ; -- Begin function m68k_op_nbcd_8_al
	.p2align	2
_m68k_op_nbcd_8_al:                     ; @m68k_op_nbcd_8_al
	.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
	bl	_EA_AL_8
	mov	x20, x0
	bl	_m68ki_read_8
	mov	x19, x0
	bl	_XFLAG_AS_1
	mov	w8, #154
	add	w9, w19, w0
	sub	w0, w8, w9
	bl	_MASK_OUT_ABOVE_8
	cmp	w0, #154
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VFLAG_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VFLAG_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FLAG_V@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLAG_V@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w19, #154
Lloh6:
	adrp	x8, _XFLAG_CLEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFLAG_CLEAR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CFLAG_CLEAR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CFLAG_CLEAR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mvn	w8, w0
Lloh10:
	adrp	x21, _FLAG_V@GOTPAGE
Lloh11:
	ldr	x21, [x21, _FLAG_V@GOTPAGEOFF]
	str	w8, [x21]
	and	w8, w0, #0xf
	and	w9, w0, #0xf0
	add	w9, w9, #16
	cmp	w8, #10
	csel	w0, w9, w0, eq
	bl	_MASK_OUT_ABOVE_8
	mov	x19, x0
	ldr	w8, [x21]
	and	w8, w8, w0
	str	w8, [x21]
	bl	_MASK_OUT_ABOVE_8
	mov	x1, x0
	mov	x0, x20
	bl	_m68ki_write_8
Lloh12:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, w19
	str	w9, [x8]
Lloh14:
	adrp	x8, _XFLAG_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XFLAG_SET@GOTPAGEOFF]
Lloh16:
	adrp	x9, _CFLAG_SET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CFLAG_SET@GOTPAGEOFF]
LBB0_3:
Lloh18:
	adrp	x10, _FLAG_C@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FLAG_C@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh20:
	str	w9, [x10]
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _FLAG_X@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FLAG_X@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
	mov	x0, x19
	bl	_NFLAG_8
Lloh24:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh26:
	str	w0, [x8]
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_V,4,2                     ; @FLAG_V
	.comm	_FLAG_Z,4,2                     ; @FLAG_Z
	.comm	_CFLAG_SET,4,2                  ; @CFLAG_SET
	.comm	_FLAG_C,4,2                     ; @FLAG_C
	.comm	_XFLAG_SET,4,2                  ; @XFLAG_SET
	.comm	_FLAG_X,4,2                     ; @FLAG_X
	.comm	_VFLAG_CLEAR,4,2                ; @VFLAG_CLEAR
	.comm	_CFLAG_CLEAR,4,2                ; @CFLAG_CLEAR
	.comm	_XFLAG_CLEAR,4,2                ; @XFLAG_CLEAR
	.comm	_FLAG_N,4,2                     ; @FLAG_N
.subsections_via_symbols
