	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_delete_walk_state      ## -- Begin function acpi_ds_delete_walk_state
	.p2align	4, 0x90
_acpi_ds_delete_walk_state:             ## @acpi_ds_delete_walk_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ds_delete_walk_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ACPI_FUNCTION_TRACE_PTR
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	(%rbx), %rax
	movq	_ACPI_DESC_TYPE_WALK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	32(%rbx), %r14
	movl	%ebx, %edi
	callq	_ACPI_ERROR
	movq	%r14, %rdi
	callq	_acpi_ps_cleanup_scope
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdi), %rax
	movq	%rax, 24(%rbx)
	callq	_acpi_ut_delete_generic_state
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %rax
	movq	%rax, 16(%rbx)
	callq	_acpi_ut_delete_generic_state
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rdi), %rax
	movq	%rax, 8(%rbx)
	callq	_acpi_ut_delete_generic_state
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ACPI_FREE                      ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ACPI_ERROR                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_delete_walk_state,4,2       ## @ds_delete_walk_state
	.comm	_ACPI_DESC_TYPE_WALK,8,3        ## @ACPI_DESC_TYPE_WALK
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_return_VOID,4,2                ## @return_VOID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_delete_walk_state      ; -- Begin function acpi_ds_delete_walk_state
	.p2align	2
_acpi_ds_delete_walk_state:             ; @acpi_ds_delete_walk_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ds_delete_walk_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_delete_walk_state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ACPI_FUNCTION_TRACE_PTR
	cbz	x19, LBB0_11
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ACPI_DESC_TYPE_WALK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_DESC_TYPE_WALK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.2:
	mov	x20, x19
	ldr	x8, [x20, #32]!
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_ACPI_ERROR
	mov	x0, x20
	bl	_acpi_ps_cleanup_scope
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0]
	str	x8, [x19, #24]
	bl	_acpi_ut_delete_generic_state
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0]
	str	x8, [x19, #16]
	bl	_acpi_ut_delete_generic_state
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x0]
	str	x8, [x19, #8]
	bl	_acpi_ut_delete_generic_state
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_8
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ACPI_FREE
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ACPI_ERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_delete_walk_state,4,2       ; @ds_delete_walk_state
	.comm	_ACPI_DESC_TYPE_WALK,8,3        ; @ACPI_DESC_TYPE_WALK
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_return_VOID,4,2                ; @return_VOID
.subsections_via_symbols
