	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_itoa                           ## -- Begin function itoa
	.p2align	4, 0x90
_itoa:                                  ## @itoa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r14
	leal	-17(%rdx), %eax
	cmpl	$-16, %eax
	ja	LBB0_2
## %bb.1:
	movb	$0, (%r14)
	jmp	LBB0_8
LBB0_2:
	cmpl	$10, %edx
	jne	LBB0_9
## %bb.3:
	movl	%edi, %eax
	negl	%eax
	cmovsl	%edi, %eax
	leaq	L_.str(%rip), %r8
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rax         ## imm = 0x66666667
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$34, %rax
	addl	%esi, %eax
	leal	(%rax,%rax), %esi
	leal	(%rsi,%rsi,4), %esi
	movl	%edx, %ecx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movzbl	(%rcx,%r8), %ecx
	movb	%cl, (%rbx)
	incq	%rbx
	addl	$9, %edx
	cmpl	$18, %edx
	ja	LBB0_4
## %bb.5:
	testl	%edi, %edi
	jns	LBB0_7
## %bb.6:
	movb	$45, (%rbx)
	incq	%rbx
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_reverse
	movb	$0, (%rbx)
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_utoa                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdef"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_itoa                           ; -- Begin function itoa
	.p2align	2
_itoa:                                  ; @itoa
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	sub	w8, w2, #17
	cmn	w8, #16
	b.hi	LBB0_2
; %bb.1:
	strb	wzr, [x19]
	b	LBB0_8
LBB0_2:
	cmp	w2, #10
	b.ne	LBB0_9
; %bb.3:
	cmp	w0, #0
	cneg	w10, w0, mi
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	mov	w9, #-10
Lloh0:
	adrp	x11, l_.str@PAGE
Lloh1:
	add	x11, x11, l_.str@PAGEOFF
	mov	x20, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	smull	x12, w10, w8
	lsr	x13, x12, #63
	asr	x12, x12, #34
	add	w12, w12, w13
	madd	w13, w12, w9, w10
	ldrb	w13, [x11, w13, sxtw]
	strb	w13, [x20], #1
	add	w13, w10, #9
	mov	x10, x12
	cmp	w13, #18
	b.hi	LBB0_4
; %bb.5:
	tbz	w0, #31, LBB0_7
; %bb.6:
	mov	w8, #45
	strb	w8, [x20], #1
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_reverse
	strb	wzr, [x20]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_utoa
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdef"

.subsections_via_symbols
