	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_gen
_parse_gen:                             ## @parse_gen
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	leaq	-52(%rbp), %r12
	cmovneq	%rdx, %r12
	movl	$0, (%r12)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-48(%rbp), %rsi
	callq	_strtod
	movq	-48(%rbp), %r14
	cmpq	%r15, %r14
	je	LBB0_2
## %bb.4:
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.5:
	cmpb	$0, (%r14)
	je	LBB0_11
LBB0_6:
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_ND
	movl	8(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r14), %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%rbx), %edi
	addq	$16, %rbx
	testl	%edi, %edi
	jne	LBB0_8
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_ED
LBB0_3:
	movl	$1, (%r12)
	xorps	%xmm0, %xmm0
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	8(%rbx), %esi
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	leaq	L_.str.2(%rip), %rdi
	movb	$1, %al
	callq	_ND
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	(%rbx), %xmm0
LBB0_11:
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdi
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_ND
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad argument %s"

L_.str.1:                               ## @.str.1
	.asciz	"checking %s [%s]"

L_.str.2:                               ## @.str.2
	.asciz	"scale is %s %lf"

L_.str.3:                               ## @.str.3
	.asciz	"returning %lf"

	.no_dead_strip	_parse_gen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_gen
_parse_gen:                             ; @parse_gen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	add	x8, sp, #20
	cmp	x2, #0
	csel	x21, x8, x2, eq
	str	wzr, [x21]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #24
	bl	_strtod
	ldr	x22, [sp, #24]
	cmp	x22, x20
	b.eq	LBB0_7
; %bb.2:
	fmov	d8, d0
	cbnz	x19, LBB0_4
; %bb.3:
	ldrb	w8, [x22]
	cbz	w8, LBB0_11
LBB0_4:
	stp	x20, x22, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ND
	ldr	w0, [x19, #8]
	cbz	w0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w1, [x22]
	bl	_strchr
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #24]
	add	x19, x19, #16
	cbnz	w0, LBB0_5
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_ED
LBB0_8:
	mov	w8, #1
	str	w8, [x21]
	movi	d8, #0000000000000000
LBB0_9:
	fmov	d0, d8
	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
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	d0, [x19]
	ldr	w8, [x19, #8]
	str	d0, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ND
	ldr	d0, [x19]
	fmul	d8, d8, d0
LBB0_11:
	str	d8, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ND
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad argument %s"

l_.str.1:                               ; @.str.1
	.asciz	"checking %s [%s]"

l_.str.2:                               ; @.str.2
	.asciz	"scale is %s %lf"

l_.str.3:                               ; @.str.3
	.asciz	"returning %lf"

	.no_dead_strip	_parse_gen
.subsections_via_symbols
