	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int2bcd
_int2bcd:                               ## @int2bcd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movl	$-1, %eax
	cmpl	$9999, %edi                     ## imm = 0x270F
	jg	LBB0_5
## %bb.1:
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edi, %rdx
	imulq	$1717986919, %rdx, %rdi         ## imm = 0x66666667
	movq	%rdi, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdi
	addl	%esi, %edi
	leal	(%rdi,%rdi), %esi
	leal	(%rsi,%rsi,4), %r8d
	movl	%edx, %esi
	subl	%r8d, %esi
	shll	%cl, %esi
	orl	%esi, %eax
	addl	$4, %ecx
	addl	$9, %edx
	cmpl	$18, %edx
	ja	LBB0_4
LBB0_5:
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_int2bcd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int2bcd
_int2bcd:                               ; @int2bcd
	.cfi_startproc
; %bb.0:
	mov	w9, #9999
	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	w9, #0
	mov	w0, #0
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mov	w11, #10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	smull	x12, w8, w10
	lsr	x13, x12, #63
	asr	x12, x12, #34
	add	w12, w12, w13
	msub	w13, w12, w11, w8
	lsl	w13, w13, w9
	orr	w0, w13, w0
	add	w9, w9, #4
	add	w13, w8, #9
	mov	x8, x12
	cmp	w13, #18
	b.hi	LBB0_4
; %bb.5:
	ret
LBB0_6:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_int2bcd
.subsections_via_symbols
