	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PROFILE_SetString
_PROFILE_SetString:                     ## @PROFILE_SetString
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movl	%ecx, %r8d
	movq	_CurProfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	movq	_TRUE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_PROFILE_Find
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_debugstr_w
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_debugstr_w
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_debugstr_w
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_TRACE
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	addq	$-4, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	addq	$4, %rbx
	callq	_PROFILE_isspaceW
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.10:
	movq	%rbx, %rsi
	callq	_strcmpW
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	(%r14), %rdi
	callq	_debugstr_w
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	jmp	LBB0_14
LBB0_1:
	movq	%r15, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_CurProfile@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	%r15, %rsi
	callq	_PROFILE_DeleteSection
	jmp	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_debugstr_w
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_TRACE
	movq	_CurProfile@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_PROFILE_DeleteKey
LBB0_2:
	movq	(%rbx), %rcx
	orl	%eax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_15
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %r13
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_14:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, (%r14)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpyW
	movq	_TRUE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_CurProfile@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_15:
	movl	(%r13), %eax
	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	"(%s)\n"

	.comm	_CurProfile,8,3                 ## @CurProfile
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"(%s,%s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"(%s,%s,%s):\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.3:                               ## @.str.3
	.asciz	"  no change needed\n"

L_.str.4:                               ## @.str.4
	.asciz	"  replacing %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"  creating key\n"

	.no_dead_strip	_PROFILE_SetString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PROFILE_SetString
_PROFILE_SetString:                     ; @PROFILE_SetString
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	cbz	x1, LBB0_8
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	cbz	x2, LBB0_9
; %bb.2:
	mov	x4, x3
Lloh0:
	adrp	x24, _CurProfile@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CurProfile@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, #4
Lloh2:
	adrp	x23, _TRUE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x1, x20
	mov	x2, x21
	bl	_PROFILE_Find
	mov	x19, x0
	mov	x0, x20
	bl	_debugstr_w
	mov	x20, x0
	mov	x0, x21
	bl	_debugstr_w
	mov	x21, x0
	mov	x0, x22
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #8]
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	cbz	x19, LBB0_12
; %bb.3:
	sub	x20, x22, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]!
	bl	_PROFILE_isspaceW
	cbnz	x0, LBB0_4
; %bb.5:
	ldr	x0, [x19]
	cbz	x0, LBB0_13
; %bb.6:
	mov	x1, x20
	bl	_strcmpW
	cbz	w0, LBB0_16
; %bb.7:
	ldr	x0, [x19]
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	bl	_GetProcessHeap
	ldr	x2, [x19]
	mov	w1, #0
	bl	_HeapFree
	b	LBB0_14
LBB0_8:
	mov	x0, x20
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh10:
	adrp	x19, _CurProfile@GOTPAGE
Lloh11:
	ldr	x19, [x19, _CurProfile@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, #4
	mov	x1, x20
	bl	_PROFILE_DeleteSection
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_debugstr_w
	mov	x19, x0
	mov	x0, x21
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh14:
	adrp	x19, _CurProfile@GOTPAGE
Lloh15:
	ldr	x19, [x19, _CurProfile@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, #4
	mov	x1, x20
	mov	x2, x21
	bl	_PROFILE_DeleteKey
LBB0_10:
	ldr	x8, [x19]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
LBB0_11:
Lloh16:
	adrp	x23, _TRUE@GOTPAGE
Lloh17:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh18:
	adrp	x23, _FALSE@GOTPAGE
Lloh19:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
LBB0_14:
	bl	_GetProcessHeap
	mov	x21, x0
	mov	x0, x20
	bl	_strlenW
	lsl	w8, w0, #2
	add	w2, w8, #4
	mov	x0, x21
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x19]
	mov	x1, x20
	bl	_strcpyW
	ldr	w8, [x23]
	ldr	x9, [x24]
	str	w8, [x9]
LBB0_15:
	ldr	w0, [x23]
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	b	LBB0_11
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%s)\n"

	.comm	_CurProfile,8,3                 ; @CurProfile
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"(%s,%s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"(%s,%s,%s):\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.3:                               ; @.str.3
	.asciz	"  no change needed\n"

l_.str.4:                               ; @.str.4
	.asciz	"  replacing %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"  creating key\n"

	.no_dead_strip	_PROFILE_SetString
.subsections_via_symbols
