	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_kbytes
_to_kbytes:                             ## @to_kbytes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-32(%rbp), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, %r14
	movq	-32(%rbp), %rbx
	movsbl	(%rbx), %edi
	callq	_tolower
	movl	$-1, %ecx
	movb	$1, %dl
	cmpl	$106, %eax
	jg	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$103, %eax
	jne	LBB0_13
## %bb.3:
	movl	$19, %ecx
	jmp	LBB0_7
LBB0_4:
	cmpl	$107, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$109, %eax
	jne	LBB0_13
## %bb.6:
	movl	$9, %ecx
LBB0_7:
	xorl	%edx, %edx
LBB0_8:
	cmpb	$0, (%rbx)
	je	LBB0_11
## %bb.9:
	cmpb	$0, 1(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %r15
	testb	%dl, %dl
	jne	LBB0_13
## %bb.12:
	movl	$2, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	imulq	%rax, %r14
	movq	%r14, %r15
LBB0_13:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"garbage after end of number\n"

	.no_dead_strip	_to_kbytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_kbytes
_to_kbytes:                             ; @to_kbytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	mov	x19, x0
	ldr	x20, [sp, #8]
	ldrsb	w0, [x20]
	bl	_tolower
	mov	x8, x0
	mov	x0, #0
	mov	w10, #-1
	mov	w9, #1
	cmp	w8, #106
	b.gt	LBB0_4
; %bb.1:
	cbz	w8, LBB0_7
; %bb.2:
	cmp	w8, #103
	b.ne	LBB0_11
; %bb.3:
	mov	w9, #0
	mov	w10, #19
	b	LBB0_7
LBB0_4:
	cmp	w8, #107
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #109
	b.ne	LBB0_11
; %bb.6:
	mov	w9, #0
	mov	w10, #9
LBB0_7:
	ldrb	w8, [x20]
	cbz	w8, LBB0_10
; %bb.8:
	ldrb	w8, [x20, #1]
	cbz	w8, LBB0_10
; %bb.9:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, #0
	b	LBB0_11
LBB0_10:
	mov	w8, #2
	lsl	w8, w8, w10
	mul	x8, x19, x8
	tst	w9, #0x1
	csel	x0, x19, x8, ne
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"garbage after end of number\n"

	.no_dead_strip	_to_kbytes
.subsections_via_symbols
