	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_num
_write_num:                             ## @write_num
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
                                        ## kill: def $edi killed $edi def $rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$-20, %rdx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	19(%rdx), %r8d
	movslq	%edi, %rcx
	imulq	$1717986919, %rcx, %rdi         ## imm = 0x66666667
	movq	%rdi, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdi
	addl	%esi, %edi
	leal	(%rdi,%rdi), %esi
	leal	(%rsi,%rsi,4), %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	addb	$48, %al
	movb	%al, -32(%rbp,%r8)
	addl	$9, %ecx
	decq	%rdx
	cmpl	$18, %ecx
	ja	LBB0_1
## %bb.3:
	leaq	(%r8,%rbp), %rsi
	addq	$-32, %rsi
	negl	%edx
	movl	$2, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_7
## %bb.4:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	$8, %edx
	addq	$32, %rsp
	popq	%rbp
	jmp	_write                          ## TAILCALL
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overflow"

	.no_dead_strip	_write_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_num
_write_num:                             ; @write_num
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, #0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mov	w10, #10
	add	x11, sp, #4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x8, #20
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w12, w8, #19
	smull	x13, w0, w9
	lsr	x14, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w14
	msub	w14, w13, w10, w0
	add	w14, w14, #48
	strb	w14, [x11, x12]
	add	w14, w0, #9
	sub	x8, x8, #1
	mov	x0, x13
	cmp	w14, #18
	b.hi	LBB0_1
; %bb.3:
	add	x9, sp, #4
	add	x1, x9, x12
	neg	w2, w8
	mov	w0, #2
	bl	_write
	ldur	x8, [x29, #-8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldur	x8, [x29, #-8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	w2, #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_write
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overflow"

	.no_dead_strip	_write_num
.subsections_via_symbols
