	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_initialize_region      ## -- Begin function acpi_ev_initialize_region
	.p2align	4, 0x90
_acpi_ev_initialize_region:             ## @acpi_ev_initialize_region
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_METHOD_NAME__REG@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_ev_initialize_region@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_ACPI_FUNCTION_TRACE_U32
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_AOPOBJ_OBJECT_INITIALIZED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_acpi_ns_get_secondary_object
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_AE_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	(%rax), %r12
	movq	$0, 8(%rbx)
	movq	$0, (%r14)
	movq	_AOPOBJ_SETUP_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	orl	(%r15), %eax
	movl	%eax, (%rbx)
	movl	(%r13), %edi
	movq	_ACPI_TYPE_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	movq	%r12, %rsi
	callq	_acpi_ns_search_one_scope
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	movq	%rbx, %r15
	je	LBB0_8
## %bb.7:
	movq	-72(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %r12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testq	%r12, %r12
	je	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_acpi_ns_get_attached_object
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r13
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %r14
	jmp	LBB0_12
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_acpi_ev_execute_reg_method
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%r14), %r14
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r14, %r14
	je	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r14)
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%r13d, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_acpi_ev_attach_region
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_ACPI_MTX_NAMESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_acpi_ut_release_mutex
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%r15d, %edi
	callq	_return_ACPI_STATUS
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_acpi_ev_execute_reg_method
	movq	_ACPI_MTX_NAMESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_acpi_ut_acquire_mutex
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
	jmp	LBB0_20
LBB0_23:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_acpi_ut_get_region_name
	movl	%r15d, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METHOD_NAME__REG,8,3           ## @METHOD_NAME__REG
	.comm	_ev_initialize_region,4,2       ## @ev_initialize_region
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AOPOBJ_OBJECT_INITIALIZED,4,2  ## @AOPOBJ_OBJECT_INITIALIZED
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_AE_NOT_EXIST,4,2               ## @AE_NOT_EXIST
	.comm	_AOPOBJ_SETUP_COMPLETE,4,2      ## @AOPOBJ_SETUP_COMPLETE
	.comm	_ACPI_TYPE_METHOD,4,2           ## @ACPI_TYPE_METHOD
	.comm	_ACPI_DB_OPREGION,4,2           ## @ACPI_DB_OPREGION
	.comm	_ACPI_MTX_NAMESPACE,4,2         ## @ACPI_MTX_NAMESPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_initialize_region      ; -- Begin function acpi_ev_initialize_region
	.p2align	2
_acpi_ev_initialize_region:             ; @acpi_ev_initialize_region
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _METHOD_NAME__REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _METHOD_NAME__REG@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _ev_initialize_region@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ev_initialize_region@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE_U32
	cbnz	x19, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	w8, [x19]
Lloh9:
	adrp	x25, _AOPOBJ_OBJECT_INITIALIZED@GOTPAGE
Lloh10:
	ldr	x25, [x25, _AOPOBJ_OBJECT_INITIALIZED@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh11:
	adrp	x26, _AE_OK@GOTPAGE
Lloh12:
	ldr	x26, [x26, _AE_OK@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x26]
	bl	_return_ACPI_STATUS
LBB0_4:
	mov	x0, x19
	bl	_acpi_ns_get_secondary_object
	mov	x23, x0
Lloh13:
	adrp	x27, _AE_NOT_EXIST@GOTPAGE
Lloh14:
	ldr	x27, [x27, _AE_NOT_EXIST@GOTPAGEOFF]
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x27]
	bl	_return_ACPI_STATUS
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x22, [x8]
	ldr	x21, [x19]
	str	xzr, [x19, #8]
Lloh15:
	adrp	x8, _AOPOBJ_SETUP_COMPLETE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AOPOBJ_SETUP_COMPLETE@GOTPAGEOFF]
	str	xzr, [x23]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x24]
Lloh18:
	adrp	x8, _ACPI_TYPE_METHOD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ACPI_TYPE_METHOD@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x22
	bl	_acpi_ns_search_one_scope
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [sp, #8]
	str	x8, [x23]
LBB0_8:
	cbz	x22, LBB0_23
; %bb.9:
Lloh21:
	adrp	x28, _ACPI_MTX_NAMESPACE@GOTPAGE
Lloh22:
	ldr	x28, [x28, _ACPI_MTX_NAMESPACE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_23
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	x0, x22
	bl	_acpi_ns_get_attached_object
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x22]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
	ldr	x24, [x0]
	cbnz	x24, LBB0_17
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x19
	mov	w1, #1
	bl	_acpi_ev_execute_reg_method
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	w0, [x26]
	bl	_return_ACPI_STATUS
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_10
LBB0_17:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x23
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	bl	_acpi_ev_attach_region
	cbz	w20, LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	w0, [x28]
	bl	_acpi_ut_release_mutex
	mov	x25, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x25
	bl	_return_ACPI_STATUS
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x19
	mov	w1, #1
	bl	_acpi_ev_execute_reg_method
	ldr	w0, [x28]
	bl	_acpi_ut_acquire_mutex
	mov	x25, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_15
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x25
	bl	_return_ACPI_STATUS
	b	LBB0_15
LBB0_23:
	mov	x0, x21
	bl	_acpi_ut_get_region_name
	mov	x0, x19
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x27]
	bl	_return_ACPI_STATUS
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_METHOD_NAME__REG,8,3           ; @METHOD_NAME__REG
	.comm	_ev_initialize_region,4,2       ; @ev_initialize_region
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AOPOBJ_OBJECT_INITIALIZED,4,2  ; @AOPOBJ_OBJECT_INITIALIZED
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_NOT_EXIST,4,2               ; @AE_NOT_EXIST
	.comm	_AOPOBJ_SETUP_COMPLETE,4,2      ; @AOPOBJ_SETUP_COMPLETE
	.comm	_ACPI_TYPE_METHOD,4,2           ; @ACPI_TYPE_METHOD
	.comm	_ACPI_DB_OPREGION,4,2           ; @ACPI_DB_OPREGION
	.comm	_ACPI_MTX_NAMESPACE,4,2         ; @ACPI_MTX_NAMESPACE
.subsections_via_symbols
