	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_format
_generate_format:                       ## @generate_format
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	ucomisd	%xmm2, %xmm0
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	jbe	LBB0_4
## %bb.3:
	movapd	%xmm0, %xmm3
	subsd	%xmm2, %xmm3
	divsd	%xmm1, %xmm3
	roundsd	$9, %xmm3, %xmm3
	mulsd	%xmm1, %xmm3
	movapd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	jmp	LBB0_5
LBB0_1:
	movq	_default_format@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_12
LBB0_4:
	subsd	%xmm0, %xmm2
	divsd	%xmm1, %xmm2
	roundsd	$9, %xmm2, %xmm2
	mulsd	%xmm1, %xmm2
	addsd	%xmm0, %xmm2
LBB0_5:
	movsd	%xmm2, -72(%rbp)                ## 8-byte Spill
	cvttsd2si	%xmm1, %eax
	movsbl	%al, %edx
	leaq	_generate_format.buf(%rip), %rbx
	leaq	L_.str(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rbx, %rdi
	movl	$101, %esi
	callq	_strchr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_decimal_places
	movl	%eax, %r12d
	cvttsd2si	-64(%rbp), %eax         ## 8-byte Folded Reload
	movsbl	%al, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_sprintf
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$101, %esi
	callq	_strchr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_decimal_places
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_decimal_point@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	movl	%ebx, %ecx
	addl	%eax, %ecx
	subl	%ecx, %r14d
LBB0_7:
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_MAX
	movl	%eax, %r12d
	cvttsd2si	-72(%rbp), %eax         ## 8-byte Folded Reload
	movsbl	%al, %edx
	leaq	_generate_format.buf(%rip), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	$101, %esi
	callq	_strchr
	orq	%r15, %rax
	xorl	%r15d, %r15d
	orq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	sete	-56(%rbp)                       ## 1-byte Folded Spill
	movq	%r13, %rdi
	callq	_decimal_places
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	_decimal_point@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	addl	%eax, %ebx
	subl	%ebx, %r14d
LBB0_9:
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_MAX
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movq	_decimal_point@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	addl	%r12d, %ebx
	addl	%eax, %ebx
	movzbl	-56(%rbp), %r9d                 ## 1-byte Folded Reload
	addl	$101, %r9d
	movsbl	-44(%rbp), %edx                 ## 1-byte Folded Reload
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_12
LBB0_11:
	movb	-56(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	leal	(%r15,%r15), %r8d
	addl	$101, %r8d
	movsbl	-44(%rbp), %edx                 ## 1-byte Folded Reload
	leaq	_generate_format.buf(%rip), %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_sprintf
LBB0_12:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_generate_format.buf,256,4 ## @generate_format.buf
	.comm	_default_format,8,3             ## @default_format
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%g"

	.comm	_decimal_point,4,2              ## @decimal_point
L_.str.1:                               ## @.str.1
	.asciz	"%%%c%d.%d%c"

L_.str.2:                               ## @.str.2
	.asciz	"%%%c%d%c"

	.no_dead_strip	_generate_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_format
_generate_format:                       ; @generate_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	cbz	w0, LBB0_7
; %bb.1:
	mov	x19, x1
	fmov	d8, d0
	fcmp	d0, d2
	fsub	d0, d2, d0
	fdiv	d0, d0, d1
	frintm	d0, d0
	fmadd	d0, d1, d0, d8
	fsub	d2, d8, d2
	fdiv	d2, d2, d1
	frintm	d2, d2
	fmsub	d2, d1, d2, d8
	fcsel	d9, d0, d2, le
	fcvtzs	w2, d1
Lloh0:
	adrp	x24, _generate_format.buf@PAGE
Lloh1:
	add	x24, x24, _generate_format.buf@PAGEOFF
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x20
	bl	_sprintf
	mov	x0, x24
	mov	w1, #101
	bl	_strchr
	mov	x22, x0
	mov	x0, x24
	bl	_decimal_places
	mov	x21, x0
	fcvtzs	w2, d8
	mov	x0, x24
	mov	x1, x20
	bl	_sprintf
	mov	x20, x0
	mov	x0, x24
	mov	w1, #101
	bl	_strchr
	mov	x23, x0
	mov	x0, x24
	bl	_decimal_places
	mov	x24, x0
Lloh4:
	adrp	x26, _decimal_point@GOTPAGE
Lloh5:
	ldr	x26, [x26, _decimal_point@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x26]
	bl	_strlen
	add	w8, w24, w0
	sub	w20, w20, w8
LBB0_3:
	mov	x0, x24
	mov	x1, x21
	bl	_MAX
	mov	x21, x0
	fcvtzs	w2, d9
Lloh6:
	adrp	x25, _generate_format.buf@PAGE
Lloh7:
	add	x25, x25, _generate_format.buf@PAGEOFF
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_sprintf
	mov	x24, x0
	mov	x0, x25
	mov	w1, #101
	bl	_strchr
	orr	x8, x0, x23
	orr	x8, x8, x22
	cmp	x8, #0
	cset	w23, eq
	mov	x0, x25
	bl	_decimal_places
	cbz	w0, LBB0_5
; %bb.4:
	mov	x22, x0
	ldr	w0, [x26]
	bl	_strlen
	add	w8, w22, w0
	sub	w24, w24, w8
LBB0_5:
	mov	x0, x20
	mov	x1, x24
	bl	_MAX
	mov	x22, x0
	cbz	w21, LBB0_8
; %bb.6:
	ldr	w0, [x26]
	bl	_strlen
	add	w8, w22, w21
	add	w8, w8, w0
	cmp	w23, #0
	mov	w9, #101
	cinc	x9, x9, ne
	stp	x21, x9, [sp, #8]
Lloh10:
	adrp	x20, _generate_format.buf@PAGE
Lloh11:
	add	x20, x20, _generate_format.buf@PAGEOFF
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _default_format@GOTPAGE
Lloh15:
	ldr	x8, [x8, _default_format@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	b	LBB0_10
LBB0_8:
	cmp	w23, #0
	mov	w8, #101
	mov	w9, #103
	csel	x8, x9, x8, ne
Lloh17:
	adrp	x20, _generate_format.buf@PAGE
Lloh18:
	add	x20, x20, _generate_format.buf@PAGEOFF
	stp	x22, x8, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x2, x19
	bl	_sprintf
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_generate_format.buf,256,0 ; @generate_format.buf
	.comm	_default_format,8,3             ; @default_format
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%g"

	.comm	_decimal_point,4,2              ; @decimal_point
l_.str.1:                               ; @.str.1
	.asciz	"%%%c%d.%d%c"

l_.str.2:                               ; @.str.2
	.asciz	"%%%c%d%c"

	.no_dead_strip	_generate_format
.subsections_via_symbols
