	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_str_from_var_sci
_get_str_from_var_sci:                  ## @get_str_from_var_sci
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	cmpq	$0, (%rdi)
	movl	$0, %r12d
	movl	$0, %r13d
	jle	LBB0_2
## %bb.1:
	movl	8(%r15), %ebx
	incl	%ebx
	movq	_DEC_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imull	%r13d, %ebx
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movl	%esi, %r12d
	callq	_log10
	movl	%r12d, %esi
	movq	%rax, %r12
	subl	%r13d, %r12d
	addl	%ebx, %r12d
	movl	%r12d, %eax
	negl	%eax
	movl	%r12d, %r13d
	sarl	$31, %r13d
	andl	%eax, %r13d
LBB0_2:
	testl	%esi, %esi
	cmovgl	%esi, %r14d
	leaq	-64(%rbp), %rdi
	callq	_init_var
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_var
	movq	_const_ten@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	leaq	-64(%rbp), %rdx
	movl	%r13d, %ecx
	callq	_power_var_int
	movq	%r15, %rdi
	leaq	-64(%rbp), %r15
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movl	$1, %r8d
	callq	_div_var
	movq	%rbx, %rdi
	callq	_get_str_from_var
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_free_var
	movq	%rbx, %rdi
	callq	_free_var
	movq	%r14, %rdi
	callq	_strlen
	addl	$13, %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_palloc
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	movl	%r12d, %r8d
	callq	_snprintf
	movq	%r14, %rdi
	callq	_pfree
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEC_DIGITS,4,2                 ## @DEC_DIGITS
	.comm	_const_ten,4,2                  ## @const_ten
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%se%+03d"

	.no_dead_strip	_get_str_from_var_sci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_str_from_var_sci
_get_str_from_var_sci:                  ; @get_str_from_var_sci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _DEC_DIGITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEC_DIGITS@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x9]
	madd	w22, w19, w8, w19
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_log10
	sub	w8, w0, w19
	add	w19, w8, w22
	neg	w8, w19
	and	w22, w8, w19, asr #31
	b	LBB0_3
LBB0_2:
	mov	w19, #0
	mov	w22, #0
LBB0_3:
	cmp	w21, #0
	csel	w21, w21, wzr, gt
	add	x0, sp, #24
	bl	_init_var
	mov	x0, sp
	bl	_init_var
Lloh3:
	adrp	x0, _const_ten@GOTPAGE
Lloh4:
	ldr	x0, [x0, _const_ten@GOTPAGEOFF]
	add	x2, sp, #24
	mov	x1, x19
	mov	x3, x22
	bl	_power_var_int
	add	x1, sp, #24
	mov	x2, sp
	mov	x0, x20
	mov	x3, x21
	mov	w4, #1
	bl	_div_var
	mov	x0, sp
	bl	_get_str_from_var
	mov	x20, x0
	add	x0, sp, #24
	bl	_free_var
	mov	x0, sp
	bl	_free_var
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #13
	sxtw	x21, w8
	mov	x0, x21
	bl	_palloc
	mov	x22, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	mov	x4, x19
	bl	_snprintf
	mov	x0, x20
	bl	_pfree
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DEC_DIGITS,4,2                 ; @DEC_DIGITS
	.comm	_const_ten,4,2                  ; @const_ten
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%se%+03d"

	.no_dead_strip	_get_str_from_var_sci
.subsections_via_symbols
