	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_scale
_str_scale:                             ## @str_scale
	.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
	movl	%edi, %ebx
	movq	_HN_AUTOSCALE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_HN_GETSCALE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_MAX_INT_STR_DIGITS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_malloc
	movq	%rax, %r14
	movb	$0, (%rax)
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_str_flags                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HN_AUTOSCALE,4,2               ## @HN_AUTOSCALE
	.comm	_HN_GETSCALE,4,2                ## @HN_GETSCALE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_MAX_INT_STR_DIGITS,4,2         ## @MAX_INT_STR_DIGITS
L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.no_dead_strip	_str_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_scale
_str_scale:                             ; @str_scale
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _HN_AUTOSCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HN_AUTOSCALE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HN_GETSCALE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HN_GETSCALE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_str_flags
LBB0_2:
Lloh8:
	adrp	x21, _MAX_INT_STR_DIGITS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MAX_INT_STR_DIGITS@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_malloc
	mov	x20, x0
	strb	wzr, [x0]
	ldr	w1, [x21]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_snprintf
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HN_AUTOSCALE,4,2               ; @HN_AUTOSCALE
	.comm	_HN_GETSCALE,4,2                ; @HN_GETSCALE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_MAX_INT_STR_DIGITS,4,2         ; @MAX_INT_STR_DIGITS
l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.no_dead_strip	_str_scale
.subsections_via_symbols
