	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_init_aml_walk          ## -- Begin function acpi_ds_init_aml_walk
	.p2align	4, 0x90
_acpi_ds_init_aml_walk:                 ## @acpi_ds_init_aml_walk
	.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
	movq	%r9, %r14
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	16(%rbp), %r15d
	leaq	24(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ds_init_aml_walk@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	%r13, 56(%r12)
	movq	%r13, 64(%r12)
	movslq	%ebx, %rax
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, 40(%r12)
	movq	%rax, 48(%r12)
	movq	$0, 88(%r12)
	movl	%r15d, 80(%r12)
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %eax
	movl	%eax, (%r12)
	movq	%r14, 72(%r12)
LBB0_2:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_acpi_ps_init_scope
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	movq	%rbx, 24(%r12)
	movq	_ACPI_WALK_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%rbx, 8(%r12)
	movq	%rbx, %rdi
	callq	_acpi_ns_get_attached_object
	movl	%eax, 4(%r12)
	movq	_ACPI_TYPE_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_acpi_ds_scope_stack_push
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_7:
	movl	(%r12), %edi
	movq	_ACPI_METHOD_NUM_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_acpi_ds_method_data_init_args
LBB0_14:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
	jmp	LBB0_16
LBB0_8:
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_12
LBB0_10:
	movq	$0, (%r13)
LBB0_16:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_acpi_ds_init_callbacks
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
LBB0_13:
	movq	%rdi, 24(%r12)
	movl	(%rdi), %esi
	movq	%r12, %rdx
	callq	_acpi_ds_scope_stack_push
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_init_aml_walk,4,2           ## @ds_init_aml_walk
	.comm	_ACPI_WALK_METHOD,4,2           ## @ACPI_WALK_METHOD
	.comm	_ACPI_TYPE_METHOD,4,2           ## @ACPI_TYPE_METHOD
	.comm	_ACPI_METHOD_NUM_ARGS,4,2       ## @ACPI_METHOD_NUM_ARGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_init_aml_walk          ; -- Begin function acpi_ds_init_aml_walk
	.p2align	2
_acpi_ds_init_aml_walk:                 ; @acpi_ds_init_aml_walk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	add	x21, x0, #24
Lloh0:
	adrp	x8, _ds_init_aml_walk@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_init_aml_walk@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	stp	x26, x26, [x20, #56]
	add	x8, x26, w25, sxtw #2
	stp	x8, x8, [x20, #40]
	str	xzr, [x20, #88]
	str	w19, [x20, #80]
	cbz	x24, LBB0_2
; %bb.1:
	ldr	w8, [x24, #4]
	str	w8, [x20]
	str	x24, [x20, #72]
LBB0_2:
	mov	x0, x21
	mov	x1, x23
	bl	_acpi_ps_init_scope
	mov	x23, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_return_ACPI_STATUS
LBB0_4:
	cbz	x22, LBB0_10
; %bb.5:
	str	x22, [x20, #24]
Lloh3:
	adrp	x8, _ACPI_WALK_METHOD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_WALK_METHOD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x22, [x20, #8]
	mov	x0, x22
	bl	_acpi_ns_get_attached_object
	str	w0, [x20, #4]
Lloh6:
	adrp	x8, _ACPI_TYPE_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_TYPE_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_acpi_ds_scope_stack_push
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_7:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _ACPI_METHOD_NUM_ARGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_METHOD_NUM_ARGS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_acpi_ds_method_data_init_args
LBB0_8:
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_14
; %bb.9:
	mov	x0, x21
	bl	_return_ACPI_STATUS
	b	LBB0_14
LBB0_10:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8]
	cbnz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_11
LBB0_13:
	str	xzr, [x21]
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_acpi_ds_init_callbacks
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
LBB0_15:
	str	x0, [x20, #24]
	ldr	w1, [x0]
	mov	x2, x20
	bl	_acpi_ds_scope_stack_push
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_init_aml_walk,4,2           ; @ds_init_aml_walk
	.comm	_ACPI_WALK_METHOD,4,2           ; @ACPI_WALK_METHOD
	.comm	_ACPI_TYPE_METHOD,4,2           ; @ACPI_TYPE_METHOD
	.comm	_ACPI_METHOD_NUM_ARGS,4,2       ; @ACPI_METHOD_NUM_ARGS
.subsections_via_symbols
