	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_process_root_key
_do_process_root_key:                   ## @do_process_root_key
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_init
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_get_word
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_21
## %bb.1:
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.2:
	movq	_root_keys@GOTPCREL(%rip), %r13
	leaq	-64(%rbp), %r15
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	$0, -56(%rbp)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rdi
	movq	(%r13), %rax
	movl	4(%rax,%r14,8), %esi
	callq	_lstrcmpiW
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r14
	jb	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r14d
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_get_word
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi
	cmpb	$0, 1(%rdi)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$123, (%rdi)
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,8), %esi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_do_process_key
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_get_word
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
	jmp	LBB0_20
LBB0_15:
	callq	_debugstr_w
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_11
LBB0_9:
	movq	-64(%rbp), %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
LBB0_16:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_WARN
LBB0_11:
	movq	_DISP_E_EXCEPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_20:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-64(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ward.len == 0, failed\n"

	.comm	_DISP_E_EXCEPTION,4,2           ## @DISP_E_EXCEPTION
	.comm	_root_keys,8,3                  ## @root_keys
L_.str.1:                               ## @.str.1
	.asciz	"Wrong root key name: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed, expected '{', got %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Processing key failed: %08x\n"

	.no_dead_strip	_do_process_root_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_process_root_key
_do_process_root_key:                   ; @do_process_root_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	str	x0, [sp, #24]
	add	x0, sp, #8
	bl	_strbuf_init
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_get_word
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_21
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.2:
Lloh0:
	adrp	x21, _root_keys@GOTPAGE
Lloh1:
	ldr	x21, [x21, _root_keys@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	mov	w20, #4
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [sp, #8]
	ldr	x8, [x21]
	ldr	w1, [x8, x20]
	bl	_lstrcmpiW
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x20, x20, #8
	cmp	x22, w0, uxtw
	b.lo	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.eq	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_get_word
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]
	ldrb	w8, [x0, #1]
	cbnz	w8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x0]
	cmp	w8, #123
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	mov	w9, w22
	lsl	x9, x9, #3
	ldr	w1, [x8, x9]
	add	x0, sp, #24
	add	x2, sp, #8
	mov	x3, x19
	bl	_do_process_key
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_get_word
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
	b	LBB0_20
LBB0_16:
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_19
LBB0_18:
	ldr	x0, [sp, #8]
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_19:
	bl	_WARN
Lloh8:
	adrp	x8, _DISP_E_EXCEPTION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DISP_E_EXCEPTION@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
LBB0_20:
	bl	_GetProcessHeap
	ldr	x2, [sp, #8]
	mov	w1, #0
	bl	_HeapFree
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
	str	x20, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ward.len == 0, failed\n"

	.comm	_DISP_E_EXCEPTION,4,2           ; @DISP_E_EXCEPTION
	.comm	_root_keys,8,3                  ; @root_keys
l_.str.1:                               ; @.str.1
	.asciz	"Wrong root key name: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed, expected '{', got %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Processing key failed: %08x\n"

	.no_dead_strip	_do_process_root_key
.subsections_via_symbols
