	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int_to_roman
_int_to_roman:                          ## @int_to_roman
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$16, %edi
	callq	_palloc
	movq	%rax, %r14
	movb	$0, (%rax)
	leal	-4000(%rbx), %eax
	cmpl	$-4000, %eax                    ## imm = 0xF060
	ja	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$35, %esi
	movl	$15, %edx
	callq	_fill_str
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rdx
	leaq	-60(%rbp), %r15
	movq	%r15, %rdi
	movl	$12, %esi
	movl	%ebx, %ecx
	callq	_snprintf
	movl	%eax, %ebx
	movb	-60(%rbp), %al
	testb	%al, %al
	je	LBB0_12
## %bb.3:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	movb	1(%r15), %al
	incq	%r15
	testb	%al, %al
	je	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpb	$49, %al
	jl	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	%al, %r13d
	leal	-49(%r13), %eax
	cmpl	$4, %ebx
	jl	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	$-48, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcat
	decl	%r13d
	jne	LBB0_8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%rbx), %ecx
	cmpl	$2, %ecx
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ecx, %rcx
	leaq	l_switch.table.int_to_roman(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_strcat
	jmp	LBB0_11
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"M"

	.comm	_rm100,8,3                      ## @rm100
	.comm	_rm10,8,3                       ## @rm10
	.comm	_rm1,8,3                        ## @rm1
	.no_dead_strip	_int_to_roman
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.int_to_roman
l_switch.table.int_to_roman:
	.quad	_rm1
	.quad	_rm10
	.quad	_rm100

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int_to_roman
_int_to_roman:                          ; @int_to_roman
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w0, #16
	bl	_palloc
	mov	x19, x0
	strb	wzr, [x0]
	sub	w8, w20, #4000
	cmn	w8, #4000
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #35
	mov	w2, #15
	bl	_fill_str
	b	LBB0_12
LBB0_2:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	mov	w1, #12
	mov	x3, x20
	bl	_snprintf
	ldrb	w8, [sp, #12]
	cbz	w8, LBB0_12
; %bb.3:
	mov	x20, x0
	add	x22, sp, #12
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh7:
	adrp	x23, l_switch.table.int_to_roman@PAGE
Lloh8:
	add	x23, x23, l_switch.table.int_to_roman@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x22, #1]!
	sub	w20, w20, #1
	cbz	w8, LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	sxtb	w9, w8
	subs	w8, w9, #49
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #4
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w24, w9, #48
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_strcat
	subs	w24, w24, #1
	b.ne	LBB0_9
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w20, #1
	cmp	w9, #2
	b.hi	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23, w9, sxtw #3]
	ldr	x9, [x9]
	ldr	x1, [x9, w8, sxtw #3]
	mov	x0, x19
	bl	_strcat
	b	LBB0_4
LBB0_12:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"M"

	.comm	_rm100,8,3                      ; @rm100
	.comm	_rm10,8,3                       ; @rm10
	.comm	_rm1,8,3                        ; @rm1
	.no_dead_strip	_int_to_roman
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.int_to_roman
l_switch.table.int_to_roman:
	.quad	_rm1
	.quad	_rm10
	.quad	_rm100

.subsections_via_symbols
