	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_system_memory_region_setup ## -- Begin function acpi_ev_system_memory_region_setup
	.p2align	4, 0x90
_acpi_ev_system_memory_region_setup:    ## @acpi_ev_system_memory_region_setup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_ev_system_memory_region_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_REGION_DEACTIVATE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	callq	_acpi_os_unmap_memory
LBB0_4:
	movq	%rbx, %rdi
	callq	_ACPI_FREE
	movq	$0, (%r14)
LBB0_5:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	movl	$24, %edi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_8:
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	%rbx, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_system_memory_region_setup,4,2 ## @ev_system_memory_region_setup
	.comm	_ACPI_REGION_DEACTIVATE,8,3     ## @ACPI_REGION_DEACTIVATE
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_system_memory_region_setup ; -- Begin function acpi_ev_system_memory_region_setup
	.p2align	2
_acpi_ev_system_memory_region_setup:    ; @acpi_ev_system_memory_region_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ev_system_memory_region_setup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_system_memory_region_setup@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x8, _ACPI_REGION_DEACTIVATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_REGION_DEACTIVATE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x22, _AE_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AE_OK@GOTPAGEOFF]
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.1:
	ldr	x21, [x19]
	cbz	x21, LBB0_5
; %bb.2:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w0, [x21, #16]
	bl	_acpi_os_unmap_memory
LBB0_4:
	mov	x0, x21
	bl	_ACPI_FREE
	str	xzr, [x19]
LBB0_5:
	ldr	w0, [x22]
	bl	_return_ACPI_STATUS
LBB0_6:
	mov	w0, #24
	bl	_ACPI_ALLOCATE_ZEROED
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_8:
	ldr	w8, [x20, #4]
	str	w8, [x21, #4]
	ldr	w8, [x20]
	str	w8, [x21]
	str	x21, [x19]
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_system_memory_region_setup,4,2 ; @ev_system_memory_region_setup
	.comm	_ACPI_REGION_DEACTIVATE,8,3     ; @ACPI_REGION_DEACTIVATE
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
.subsections_via_symbols
