	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function op_BCD
_op_BCD:                                ## @op_BCD
	.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, %r15
	testb	$8, %sil
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_EA_DATA_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_EA_PREDECREMENT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	shll	$3, %r12d
	movq	_reg0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r12d, %esi
	movq	_reg@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_SIZE_B@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-48(%rbp), %r13
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movq	%r13, %r8
	callq	_ea_get
	movl	%eax, %r14d
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$1, %ecx
	movq	%r13, %r8
	callq	_ea_get
	movl	(%r15), %edi
	movq	_SR_X_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	btl	%ecx, %edi
	setb	%dl
	movq	_SR_X@GOTPCREL(%rip), %rsi
	movq	_SR_C@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	orl	(%rsi), %ecx
	notl	%ecx
	andl	%edi, %ecx
	movl	%ecx, (%r15)
	movl	%eax, %edi
	andl	$15, %edi
	movl	%r14d, %ebx
	andl	$15, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testl	$16384, %r13d                   ## imm = 0x4000
	jne	LBB0_4
## %bb.7:
	addl	%edx, %ebx
	subl	%ebx, %edi
	leal	10(%rdi), %esi
	testl	%edi, %edi
	cmovnsl	%edi, %esi
	sarl	$31, %edi
	andl	$-16, %edi
	andl	$240, %eax
	andl	$240, %r14d
	subl	%r14d, %eax
	movl	%eax, %r14d
	addl	%edi, %r14d
	jns	LBB0_9
## %bb.8:
	addl	$160, %r14d
	movq	_SR_X@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SR_C@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
LBB0_9:
	movl	%ecx, %eax
	movq	_SIZE_B@GOTPCREL(%rip), %rdx
	addl	%esi, %r14d
	js	LBB0_11
## %bb.10:
	movl	%eax, %ecx
	jmp	LBB0_13
LBB0_4:
	addl	%ebx, %edi
	leal	(%rdi,%rdx), %ebx
	cmpl	$10, %ebx
	leal	6(%rdx,%rdi), %edx
	cmovbl	%ebx, %edx
	andl	$240, %eax
	andl	$240, %r14d
	addl	%eax, %r14d
	addl	%edx, %r14d
	cmpl	$160, %r14d
	jb	LBB0_5
## %bb.6:
	addl	$-160, %r14d
	movl	(%r8), %eax
	movq	_SIZE_B@GOTPCREL(%rip), %rdx
	jmp	LBB0_12
LBB0_5:
	movq	_SIZE_B@GOTPCREL(%rip), %rdx
	jmp	LBB0_13
LBB0_11:
	movq	_SR_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r8, %rsi
LBB0_12:
	orl	(%rsi), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r15)
LBB0_13:
	andl	$255, %r14d
	je	LBB0_15
## %bb.14:
	movq	_SR_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, (%r15)
LBB0_15:
	movl	(%rdx), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %ecx
	callq	_ea_set
	testb	$8, %r13b
	movl	$6, %ecx
	movl	$18, %eax
	cmovel	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INSN_GET_REG,4,2               ## @INSN_GET_REG
	.comm	_INSN_GET_REG0,4,2              ## @INSN_GET_REG0
	.comm	_EA_PREDECREMENT,4,2            ## @EA_PREDECREMENT
	.comm	_EA_DATA_REG,4,2                ## @EA_DATA_REG
	.comm	_reg0,4,2                       ## @reg0
	.comm	_reg,4,2                        ## @reg
	.comm	_SIZE_B,4,2                     ## @SIZE_B
	.comm	_SR_X_SHIFT,4,2                 ## @SR_X_SHIFT
	.comm	_SR_X,4,2                       ## @SR_X
	.comm	_SR_C,4,2                       ## @SR_C
	.comm	_SR_Z,4,2                       ## @SR_Z
	.no_dead_strip	_op_BCD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function op_BCD
_op_BCD:                                ; @op_BCD
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EA_PREDECREMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EA_PREDECREMENT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EA_DATA_REG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EA_DATA_REG@GOTPAGEOFF]
	tst	w1, #0x8
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	lsl	w8, w8, #3
Lloh4:
	adrp	x9, _reg0@GOTPAGE
Lloh5:
	ldr	x9, [x9, _reg0@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _reg@GOTPAGE
Lloh8:
	ldr	x10, [x10, _reg@GOTPAGEOFF]
	orr	w1, w8, w9
Lloh9:
	ldr	w9, [x10]
	orr	w21, w8, w9
Lloh10:
	adrp	x23, _SIZE_B@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SIZE_B@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x4, sp, #12
	mov	w3, #0
	bl	_ea_get
	mov	x22, x0
	ldr	w2, [x23]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_ea_get
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _SR_X_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SR_X_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	and	w11, w9, #0x1
Lloh15:
	adrp	x10, _SR_X@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SR_X@GOTPAGEOFF]
	ldr	w12, [x10]
Lloh17:
	adrp	x9, _SR_C@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SR_C@GOTPAGEOFF]
	ldr	w13, [x9]
	orr	w12, w13, w12
	bic	w8, w8, w12
	str	w8, [x20]
	and	w12, w0, #0xf
	and	w13, w22, #0xf
	tbnz	w19, #14, LBB0_3
; %bb.1:
	add	w11, w13, w11
	sub	w12, w12, w11
	add	w11, w12, #10
	cmp	w12, #0
	csel	w11, w11, w12, lt
	asr	w12, w12, #31
	and	w12, w12, #0xfffffff0
	and	w13, w0, #0xf0
	and	w14, w22, #0xf0
	sub	w13, w13, w14
	adds	w12, w12, w13
	b.mi	LBB0_5
; %bb.2:
	adds	w11, w12, w11
	b.pl	LBB0_8
	b	LBB0_6
LBB0_3:
	add	w10, w12, w13
	add	w10, w10, w11
	add	w11, w10, #6
	cmp	w10, #9
	csel	w10, w11, w10, hi
	and	w11, w0, #0xf0
	and	w12, w22, #0xf0
	add	w11, w11, w12
	add	w11, w11, w10
	subs	w12, w11, #160
	b.lo	LBB0_8
; %bb.4:
	mov	x10, x8
	ldr	w8, [x9]
Lloh19:
	adrp	x9, _SR_X@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SR_X@GOTPAGEOFF]
	mov	x11, x12
	b	LBB0_7
LBB0_5:
	add	w12, w12, #160
	ldr	w13, [x10]
	ldr	w9, [x9]
	orr	w8, w13, w8
	orr	w8, w8, w9
	str	w8, [x20]
	adds	w11, w12, w11
	b.pl	LBB0_8
LBB0_6:
	ldr	w10, [x10]
Lloh21:
	adrp	x9, _SR_C@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SR_C@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_8:
	ands	w3, w11, #0xff
	b.eq	LBB0_10
; %bb.9:
Lloh23:
	adrp	x9, _SR_Z@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SR_Z@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
LBB0_10:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_ea_set
	tst	w19, #0x8
	mov	w8, #18
	mov	w9, #6
	csel	w0, w9, w8, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_INSN_GET_REG,4,2               ; @INSN_GET_REG
	.comm	_INSN_GET_REG0,4,2              ; @INSN_GET_REG0
	.comm	_EA_PREDECREMENT,4,2            ; @EA_PREDECREMENT
	.comm	_EA_DATA_REG,4,2                ; @EA_DATA_REG
	.comm	_reg0,4,2                       ; @reg0
	.comm	_reg,4,2                        ; @reg
	.comm	_SIZE_B,4,2                     ; @SIZE_B
	.comm	_SR_X_SHIFT,4,2                 ; @SR_X_SHIFT
	.comm	_SR_X,4,2                       ; @SR_X
	.comm	_SR_C,4,2                       ; @SR_C
	.comm	_SR_Z,4,2                       ; @SR_Z
	.no_dead_strip	_op_BCD
.subsections_via_symbols
