	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function norm2
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_norm2:                                 ## @norm2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movl	%edx, %eax
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -16(%rbp)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, -56(%rbp)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, -48(%rbp)
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, -40(%rbp)
	leaq	L_.str.4(%rip), %rcx
	movq	%rcx, -32(%rbp)
	leaq	L_.str(%rip), %rdx
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	ucomisd	LCPI0_0(%rip), %xmm0
	jb	LBB0_7
## %bb.2:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	movl	$1, %eax
	ucomisd	%xmm1, %xmm0
	jb	LBB0_6
## %bb.3:
	divsd	%xmm1, %xmm0
	movl	$2, %eax
	ucomisd	%xmm1, %xmm0
	jb	LBB0_6
## %bb.4:
	divsd	%xmm1, %xmm0
	movl	$3, %eax
	ucomisd	%xmm1, %xmm0
	jb	LBB0_6
## %bb.5:
	divsd	LCPI0_0(%rip), %xmm0
	movl	$4, %eax
LBB0_6:
	movq	-64(%rbp,%rax,8), %rdx
LBB0_7:
	movq	%rbx, %rdi
	callq	_sprintf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

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

L_.str.3:                               ## @.str.3
	.asciz	"G"

L_.str.4:                               ## @.str.4
	.asciz	"T"

	.no_dead_strip	_norm2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function norm2
_norm2:                                 ; @norm2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x2
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-24]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	stp	x9, x10, [sp, #8]
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh9:
	adrp	x10, l_.str.4@PAGE
Lloh10:
	add	x10, x10, l_.str.4@PAGEOFF
	stp	x9, x10, [sp, #24]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	cbz	w8, LBB0_10
; %bb.1:
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.lt	LBB0_10
; %bb.2:
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcmp	d0, d1
	b.ge	LBB0_4
; %bb.3:
	mov	w8, #1
	b	LBB0_9
LBB0_4:
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcmp	d0, d1
	b.ge	LBB0_6
; %bb.5:
	mov	w8, #2
	b	LBB0_9
LBB0_6:
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcmp	d0, d1
	b.ge	LBB0_8
; %bb.7:
	mov	w8, #3
	b	LBB0_9
LBB0_8:
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	mov	w8, #4
	fdiv	d0, d0, d1
LBB0_9:
	mov	x9, sp
	ldr	x2, [x9, x8, lsl #3]
LBB0_10:
	mov	x0, x19
	bl	_sprintf
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

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

l_.str.3:                               ; @.str.3
	.asciz	"G"

l_.str.4:                               ; @.str.4
	.asciz	"T"

	.no_dead_strip	_norm2
.subsections_via_symbols
