	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ex_setup_region
_acpi_ex_setup_region:                  ## @acpi_ex_setup_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ex_setup_region@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE_U32
	movq	24(%r14), %rbx
	movq	(%rbx), %rax
	movq	_ACPI_TYPE_REGION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_acpi_ut_get_object_type_name
	movl	%eax, %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_AOPOBJ_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_acpi_ds_get_region_arguments
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r12d, %edi
	callq	_return_ACPI_STATUS
LBB0_5:
	movq	_AOPOBJ_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_AE_AML_ILLEGAL_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_7:
	movq	(%rbx), %rax
	movq	_ACPI_ADR_SPACE_SMBUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_ACPI_ADR_SPACE_IPMI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_9:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_10:
	movq	8(%rbx), %rdi
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	8(%r14), %rsi
	addq	%rsi, %rax
	cmpq	%rax, %rdi
	jge	LBB0_17
## %bb.11:
	movq	_acpi_gbl_enable_interpreter_slack@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.12:
	callq	_ACPI_ROUND_UP
	movq	8(%r14), %rsi
	addq	(%r14), %r15
	addq	%rsi, %r15
	cmpq	%r15, %rax
	jl	LBB0_14
## %bb.13:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	8(%r14), %rsi
LBB0_14:
	cmpq	%rsi, 8(%rbx)
	jge	LBB0_16
## %bb.15:
	movl	16(%r14), %edi
	callq	_acpi_ut_get_node_name
	movl	16(%rbx), %edi
	callq	_acpi_ut_get_node_name
	movl	8(%rbx), %edi
	callq	_ACPI_ERROR
LBB0_16:
	movl	16(%r14), %edi
	callq	_acpi_ut_get_node_name
	movl	16(%rbx), %edi
	callq	_acpi_ut_get_node_name
	movl	8(%rbx), %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_REGION_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_17:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ex_setup_region,4,2            ## @ex_setup_region
	.comm	_ACPI_TYPE_REGION,8,3           ## @ACPI_TYPE_REGION
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AE_AML_OPERAND_TYPE,4,2        ## @AE_AML_OPERAND_TYPE
	.comm	_AOPOBJ_DATA_VALID,4,2          ## @AOPOBJ_DATA_VALID
	.comm	_AOPOBJ_INVALID,4,2             ## @AOPOBJ_INVALID
	.comm	_AE_AML_ILLEGAL_ADDRESS,4,2     ## @AE_AML_ILLEGAL_ADDRESS
	.comm	_ACPI_ADR_SPACE_SMBUS,8,3       ## @ACPI_ADR_SPACE_SMBUS
	.comm	_ACPI_ADR_SPACE_IPMI,8,3        ## @ACPI_ADR_SPACE_IPMI
	.comm	_acpi_gbl_enable_interpreter_slack,8,3 ## @acpi_gbl_enable_interpreter_slack
	.comm	_AE_AML_REGION_LIMIT,4,2        ## @AE_AML_REGION_LIMIT
	.no_dead_strip	_acpi_ex_setup_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ex_setup_region
_acpi_ex_setup_region:                  ; @acpi_ex_setup_region
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ex_setup_region@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_setup_region@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE_U32
	ldr	x19, [x20, #24]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ACPI_TYPE_REGION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_TYPE_REGION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_acpi_ut_get_object_type_name
	bl	_ACPI_ERROR
Lloh6:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _AOPOBJ_DATA_VALID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AOPOBJ_DATA_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_acpi_ds_get_region_arguments
	mov	x22, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_return_ACPI_STATUS
LBB0_5:
	ldr	w8, [x19, #8]
Lloh12:
	adrp	x9, _AOPOBJ_INVALID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AOPOBJ_INVALID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _AE_AML_ILLEGAL_ADDRESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AE_AML_ILLEGAL_ADDRESS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_7:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _ACPI_ADR_SPACE_SMBUS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ACPI_ADR_SPACE_SMBUS@GOTPAGEOFF]
Lloh20:
	adrp	x10, _ACPI_ADR_SPACE_IPMI@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ACPI_ADR_SPACE_IPMI@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
Lloh24:
	adrp	x22, _AE_OK@GOTPAGE
Lloh25:
	ldr	x22, [x22, _AE_OK@GOTPAGEOFF]
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x22]
	bl	_return_ACPI_STATUS
LBB0_9:
	ldr	x0, [x19, #8]
	ldp	x8, x1, [x20]
	add	x8, x8, x21
	add	x8, x8, x1
	cmp	x0, x8
	b.ge	LBB0_16
; %bb.10:
Lloh26:
	adrp	x8, _acpi_gbl_enable_interpreter_slack@GOTPAGE
Lloh27:
	ldr	x8, [x8, _acpi_gbl_enable_interpreter_slack@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.11:
	bl	_ACPI_ROUND_UP
	ldp	x8, x1, [x20]
	add	x8, x8, x21
	add	x8, x8, x1
	cmp	x0, x8
	b.lt	LBB0_13
; %bb.12:
	ldr	w0, [x22]
	bl	_return_ACPI_STATUS
	ldr	x1, [x20, #8]
LBB0_13:
	ldr	x8, [x19, #8]
	cmp	x8, x1
	b.ge	LBB0_15
; %bb.14:
	ldr	w0, [x20, #16]
	bl	_acpi_ut_get_node_name
	ldr	w0, [x19, #16]
	bl	_acpi_ut_get_node_name
	ldr	w0, [x19, #8]
	bl	_ACPI_ERROR
LBB0_15:
	ldr	w0, [x20, #16]
	bl	_acpi_ut_get_node_name
	ldr	w0, [x19, #16]
	bl	_acpi_ut_get_node_name
	ldr	w0, [x19, #8]
	bl	_ACPI_ERROR
Lloh29:
	adrp	x8, _AE_AML_REGION_LIMIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AE_AML_REGION_LIMIT@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_16:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ex_setup_region,4,2            ; @ex_setup_region
	.comm	_ACPI_TYPE_REGION,8,3           ; @ACPI_TYPE_REGION
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AE_AML_OPERAND_TYPE,4,2        ; @AE_AML_OPERAND_TYPE
	.comm	_AOPOBJ_DATA_VALID,4,2          ; @AOPOBJ_DATA_VALID
	.comm	_AOPOBJ_INVALID,4,2             ; @AOPOBJ_INVALID
	.comm	_AE_AML_ILLEGAL_ADDRESS,4,2     ; @AE_AML_ILLEGAL_ADDRESS
	.comm	_ACPI_ADR_SPACE_SMBUS,8,3       ; @ACPI_ADR_SPACE_SMBUS
	.comm	_ACPI_ADR_SPACE_IPMI,8,3        ; @ACPI_ADR_SPACE_IPMI
	.comm	_acpi_gbl_enable_interpreter_slack,8,3 ; @acpi_gbl_enable_interpreter_slack
	.comm	_AE_AML_REGION_LIMIT,4,2        ; @AE_AML_REGION_LIMIT
	.no_dead_strip	_acpi_ex_setup_region
.subsections_via_symbols
