	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_param_to_tree
_add_param_to_tree:                     ## @add_param_to_tree
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	8(%r15), %rdi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	callq	_strlen
	movl	%eax, %r12d
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	cmpb	$91, %al
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_sprintf
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_10:
	movq	8(%r15), %rdi
	callq	_strlen
	movl	%eax, %ebx
	incl	%ebx
	movl	%ebx, %edi
	callq	_heap_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	8(%r15), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_14
LBB0_6:
	movb	%al, -64(%rbp)
	movb	$0, -63(%rbp)
	movl	$1, %eax
LBB0_7:
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addl	%r13d, %eax
	movq	%rax, %rbx
	leal	(%r12,%rax), %edi
	incl	%edi
	callq	_heap_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	addl	%r12d, %ebx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r12d
	movq	(%r15), %rdi
	addq	%r12, %rdi
	leaq	-64(%rbp), %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	addq	(%r15), %r12
	movl	%ebx, %edi
	addq	%r12, %rdi
	movq	8(%r15), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	(%r15), %rax
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movb	$0, (%rax,%rcx)
LBB0_14:
	movq	(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	(%r15), %rsi
	leaq	40(%r15), %rdx
	movq	%r14, %rdi
	callq	_wine_rb_put
	movq	%r15, %rdi
	callq	_is_top_level_parameter
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	32(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.16:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$64, %ecx
	xorl	%r8d, %r8d
	callq	_add_param_to_tree
	incq	%rbx
	movq	32(%r15), %rax
	movl	(%rax), %ecx
	addq	$48, %r12
	cmpq	%rcx, %rbx
	jb	LBB0_17
LBB0_18:
	cmpl	$0, 16(%r15)
	je	LBB0_21
## %bb.19:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$91, %ecx
	movl	%ebx, %r8d
	callq	_add_param_to_tree
	incq	%rbx
	movl	16(%r15), %eax
	addq	$48, %r12
	cmpq	%rax, %rbx
	jb	LBB0_20
	jmp	LBB0_24
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
	jmp	LBB0_24
LBB0_21:
	cmpl	$0, 20(%r15)
	je	LBB0_24
## %bb.22:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$46, %ecx
	xorl	%r8d, %r8d
	callq	_add_param_to_tree
	incq	%rbx
	movl	20(%r15), %eax
	addq	$48, %r12
	cmpq	%rax, %rbx
	jb	LBB0_23
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding parameter %p (%s - parent %p, element %u) to the rbtree.\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Out of memory.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Full name is %s.\n"

	.no_dead_strip	_add_param_to_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_param_to_tree
_add_param_to_tree:                     ; @add_param_to_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x4
	mov	x25, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x21, [x22]
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x23, [sp, #16]
	stp	x19, x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x21, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_strlen
	cmp	w25, #91
	b.ne	LBB0_8
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #40
	mov	x2, x23
	bl	_sprintf
	add	x0, sp, #40
	bl	_strlen
	mov	x23, x0
	mov	w24, #0
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_strlen
	add	w21, w0, #1
	mov	x0, x21
	bl	_heap_alloc
	str	x0, [x19]
	cbz	x0, LBB0_24
; %bb.7:
	ldr	x1, [x19, #8]
	mov	x2, x21
	bl	_memcpy
	b	LBB0_11
LBB0_8:
	mov	x24, x0
	strb	w25, [sp, #40]
	strb	wzr, [sp, #41]
	mov	w23, #1
LBB0_9:
	add	w8, w23, w22
	add	w25, w8, w24
	add	w0, w25, #1
	bl	_heap_alloc
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.10:
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19]
	mov	w21, w22
	add	x0, x8, x21
	add	x1, sp, #40
	mov	x2, x23
	bl	_memcpy
	ldp	x8, x1, [x19]
	add	x8, x8, x21
	add	x0, x8, w23, uxtw
	mov	x2, x24
	bl	_memcpy
	ldr	x8, [x19]
	strb	wzr, [x8, w25, uxtw]
LBB0_11:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	mov	x2, x19
	ldr	x1, [x2], #40
	mov	x0, x20
	bl	_wine_rb_put
	mov	x0, x19
	bl	_is_top_level_parameter
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	cbz	w9, LBB0_15
; %bb.13:
	mov	x21, #0
	mov	x22, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x1, x8, x21
	mov	x0, x20
	mov	x2, x19
	mov	w3, #64
	mov	w4, #0
	bl	_add_param_to_tree
	add	x22, x22, #1
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	add	x21, x21, #48
	cmp	x22, x9
	b.lo	LBB0_14
LBB0_15:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_19
; %bb.16:
	mov	x22, #0
	mov	x21, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x22
	mov	x0, x20
	mov	x2, x19
	mov	w3, #91
	mov	x4, x21
	bl	_add_param_to_tree
	add	x21, x21, #1
	ldr	w8, [x19, #16]
	add	x22, x22, #48
	cmp	x21, x8
	b.lo	LBB0_17
	b	LBB0_22
LBB0_18:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	b	LBB0_22
LBB0_19:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_22
; %bb.20:
	mov	x21, #0
	mov	x22, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x21
	mov	x0, x20
	mov	x2, x19
	mov	w3, #46
	mov	w4, #0
	bl	_add_param_to_tree
	add	x22, x22, #1
	ldr	w8, [x19, #20]
	add	x21, x21, #48
	cmp	x22, x8
	b.lo	LBB0_21
LBB0_22:
	ldr	x8, [sp, #56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
	ldr	x8, [sp, #56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_ERR
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding parameter %p (%s - parent %p, element %u) to the rbtree.\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Out of memory.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Full name is %s.\n"

	.no_dead_strip	_add_param_to_tree
.subsections_via_symbols
