	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_walk_aml_resources     ## -- Begin function acpi_ut_walk_aml_resources
	.p2align	4, 0x90
_acpi_ut_walk_aml_resources:            ## @acpi_ut_walk_aml_resources
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_ut_walk_aml_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	cmpl	$3, %r12d
	ja	LBB0_2
## %bb.1:
	movq	_AE_AML_NO_RESOURCE_END_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.3:
	movslq	%r12d, %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r15, %r15
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r13,4), %rbx
	addq	%r13, %r12
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	callq	_acpi_ut_validate_resource
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_acpi_ut_get_descriptor_length
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	*%r15
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_acpi_ut_get_resource_type
	movq	_ACPI_RESOURCE_NAME_END_TAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	4(%rbx), %rax
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_AE_AML_NO_RESOURCE_END_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_13
LBB0_15:
	movq	_AE_AML_NO_RESOURCE_END_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ut_walk_aml_resources,4,2      ## @ut_walk_aml_resources
	.comm	_AE_AML_NO_RESOURCE_END_TAG,4,2 ## @AE_AML_NO_RESOURCE_END_TAG
	.comm	_ACPI_RESOURCE_NAME_END_TAG,8,3 ## @ACPI_RESOURCE_NAME_END_TAG
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_walk_aml_resources     ; -- Begin function acpi_ut_walk_aml_resources
	.p2align	2
_acpi_ut_walk_aml_resources:            ; @acpi_ut_walk_aml_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ut_walk_aml_resources@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ut_walk_aml_resources@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x25, _AE_AML_NO_RESOURCE_END_TAG@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AE_AML_NO_RESOURCE_END_TAG@GOTPAGEOFF]
	cmp	w23, #3
	b.hi	LBB0_2
; %bb.1:
	ldr	w0, [x25]
	bl	_return_ACPI_STATUS
LBB0_2:
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x22, #0
	sxtw	x8, w23
	add	x26, x21, x8, lsl #2
Lloh5:
	adrp	x27, _ACPI_RESOURCE_NAME_END_TAG@GOTPAGE
Lloh6:
	ldr	x27, [x27, _ACPI_RESOURCE_NAME_END_TAG@GOTPAGEOFF]
Lloh7:
	adrp	x28, _AE_OK@GOTPAGE
Lloh8:
	ldr	x28, [x28, _AE_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	cbz	x20, LBB0_14
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	bl	_return_ACPI_STATUS
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, x23, lsl #2
	add	x22, x23, x22
	cmp	x21, x26
	b.hs	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	bl	_acpi_ut_validate_resource
	mov	x23, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_return_ACPI_STATUS
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_acpi_ut_get_descriptor_length
	mov	x23, x0
	cbz	x20, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x4, x19
	blr	x20
	mov	x24, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_acpi_ut_get_resource_type
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x21, #4
	cmp	x8, x26
	b.lo	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x25]
	bl	_return_ACPI_STATUS
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x19]
	b	LBB0_5
LBB0_15:
	ldr	w24, [x25]
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ut_walk_aml_resources,4,2      ; @ut_walk_aml_resources
	.comm	_AE_AML_NO_RESOURCE_END_TAG,4,2 ; @AE_AML_NO_RESOURCE_END_TAG
	.comm	_ACPI_RESOURCE_NAME_END_TAG,8,3 ; @ACPI_RESOURCE_NAME_END_TAG
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
