	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_value
_read_value:                            ## @read_value
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r14
	leaq	L_.str(%rip), %r12
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strstr
	movq	%rax, %rbx
	movzbl	2(%rax), %eax
	addq	$2, %rbx
	cmpb	$9, %al
	je	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$32, %al
	je	LBB0_1
## %bb.3:
	movq	%rbx, %r13
	subq	%r14, %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	1(%r13), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rsi
	movq	%rax, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movslq	%r13d, %rsi
	movb	$0, (%r12,%rsi)
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_unfold_header
	movq	%r12, %rdi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	16(%r15), %rax
	movq	_MPF_HASPARAMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_split_params
	movq	%r12, %rdi
	callq	_debugstr_a
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
LBB0_5:
	movq	_VT_LPSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r12, (%r15)
	movq	%rbx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"value %s\n"

	.comm	_MPF_HASPARAMS,4,2              ## @MPF_HASPARAMS
L_.str.2:                               ## @.str.2
	.asciz	"value w/o params %s\n"

	.comm	_VT_LPSTR,4,2                   ## @VT_LPSTR
	.no_dead_strip	_read_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_value
_read_value:                            ; @read_value
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x1]
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x21, x23
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_strstr
	mov	x21, x0
	ldrb	w8, [x21, #2]!
	cmp	w8, #9
	b.eq	LBB0_1
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #32
	b.eq	LBB0_1
; %bb.3:
	sub	x23, x21, x23
	bl	_GetProcessHeap
	add	w2, w23, #1
	mov	w1, #0
	bl	_HeapAlloc
	mov	x22, x0
	ldr	x1, [x19]
	mov	x2, x23
	bl	_memcpy
	strb	wzr, [x22, w23, sxtw]
	mov	x0, x22
	mov	x1, x23
	bl	_unfold_header
	mov	x0, x22
	bl	_debugstr_a
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _MPF_HASPARAMS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MPF_HASPARAMS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_split_params
	mov	x0, x22
	bl	_debugstr_a
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
LBB0_5:
Lloh9:
	adrp	x8, _VT_LPSTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VT_LPSTR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	str	x22, [x20]
	str	x21, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"value %s\n"

	.comm	_MPF_HASPARAMS,4,2              ; @MPF_HASPARAMS
l_.str.2:                               ; @.str.2
	.asciz	"value w/o params %s\n"

	.comm	_VT_LPSTR,4,2                   ; @VT_LPSTR
	.no_dead_strip	_read_value
.subsections_via_symbols
