	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mknum
_mknum:                                 ## @mknum
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_strlen
	movslq	%eax, %rbx
	addq	$2, %rbx
	cmpq	%rbx, _mknum.copy_size(%rip)
	jae	LBB0_1
## %bb.2:
	leaq	1023(%rbx), %r12
	andq	$-1024, %r12                    ## imm = 0xFC00
	movq	_mknum.copy(%rip), %rdi
	movq	%r12, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	movq	%rax, _mknum.copy(%rip)
	movq	%r12, _mknum.copy_size(%rip)
	jmp	LBB0_5
LBB0_1:
	movq	_mknum.copy(%rip), %rdi
LBB0_5:
	leaq	-3(%rbx), %rdx
	movq	%r15, %rsi
	callq	_memmove
	movq	_mknum.copy(%rip), %rax
	movb	$106, -3(%rax,%rbx)
	movb	%r14b, -2(%rbx,%rax)
	movb	$0, -1(%rbx,%rax)
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mknum.copy,8,3  ## @mknum.copy
.zerofill __DATA,__bss,_mknum.copy_size,8,3 ## @mknum.copy_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mknum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mknum
_mknum:                                 ; @mknum
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_strlen
	add	w8, w0, #2
	sxtw	x22, w8
	adrp	x24, _mknum.copy_size@PAGE
	ldr	x8, [x24, _mknum.copy_size@PAGEOFF]
	adrp	x23, _mknum.copy@PAGE
	cmp	x8, x22
	b.hs	LBB0_3
; %bb.1:
	add	x8, x22, #1023
	and	x21, x8, #0xfffffffffffffc00
	ldr	x0, [x23, _mknum.copy@PAGEOFF]
	mov	x1, x21
	bl	_realloc
	cbz	x0, LBB0_5
; %bb.2:
	str	x0, [x23, _mknum.copy@PAGEOFF]
	str	x21, [x24, _mknum.copy_size@PAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x23, _mknum.copy@PAGEOFF]
LBB0_4:
	sub	x21, x22, #3
	mov	x1, x20
	mov	x2, x21
	bl	_memmove
	ldr	x0, [x23, _mknum.copy@PAGEOFF]
	mov	w8, #106
	strb	w8, [x0, x21]
	add	x8, x22, x0
	sturb	w19, [x8, #-2]
	sturb	wzr, [x8, #-1]
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mknum.copy,8,3  ; @mknum.copy
.zerofill __DATA,__bss,_mknum.copy_size,8,3 ; @mknum.copy_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mknum
.subsections_via_symbols
