	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcd2int
_bcd2int:                               ## @bcd2int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	cmpl	$39321, %edi                    ## imm = 0x9999
	jg	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	testl	%edi, %edi
	je	LBB0_4
## %bb.2:
	movl	$1, %ecx
	movl	%edi, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %esi
	andl	$15, %esi
	imull	%ecx, %esi
	addl	%esi, %eax
	sarl	$4, %edx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	cmpl	$15, %edi
	movl	%edx, %edi
	ja	LBB0_3
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bcd2int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcd2int
_bcd2int:                               ; @bcd2int
	.cfi_startproc
; %bb.0:
	mov	w9, #39321
	cmp	w0, w9
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	ret
LBB0_2:
	mov	x8, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	w0, #0
	mov	w9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w10, w8, #0xf
	madd	w0, w9, w10, w0
	asr	w10, w8, #4
	add	w9, w9, w9, lsl #2
	lsl	w9, w9, #1
	cmp	w8, #15
	mov	x8, x10
	b.hi	LBB0_4
; %bb.5:
	ret
LBB0_6:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bcd2int
.subsections_via_symbols
