	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_validate_address       ## -- Begin function acpi_os_validate_address
	.p2align	4, 0x90
_acpi_os_validate_address:              ## @acpi_os_validate_address
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.1:
	movq	%rcx, %r13
	movq	_acpi_enforce_resources@GOTPCREL(%rip), %rax
	movq	_ENFORCE_RESOURCES_NO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	%r13, %rsi
	movl	$5, %edx
	callq	_strlcpy
	movq	%r12, 16(%rbx)
	leaq	(%r12,%r15), %rax
	decq	%rax
	movq	%rax, 8(%rbx)
	movl	%r14d, (%rbx)
	movq	_acpi_res_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_acpi_res_list_add
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	cmpl	$129, %r14d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	16(%rbx), %rcx
	movq	8(%rbx), %r8
	movl	4(%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_enforce_resources,8,3     ## @acpi_enforce_resources
	.comm	_ENFORCE_RESOURCES_NO,8,3       ## @ENFORCE_RESOURCES_NO
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_acpi_res_lock,4,2              ## @acpi_res_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s resource: start: 0x%llx, end: 0x%llx, name: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Added"

L_.str.2:                               ## @.str.2
	.asciz	"Already exist"

L_.str.3:                               ## @.str.3
	.asciz	"SystemIO"

L_.str.4:                               ## @.str.4
	.asciz	"System Memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_validate_address       ; -- Begin function acpi_os_validate_address
	.p2align	2
_acpi_os_validate_address:              ; @acpi_os_validate_address
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _acpi_enforce_resources@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_enforce_resources@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ENFORCE_RESOURCES_NO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENFORCE_RESOURCES_NO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w0, [x0, #4]
	mov	x1, x23
	mov	w2, #5
	bl	_strlcpy
	add	x8, x22, x21
	sub	x8, x8, #1
	stp	x8, x22, [x20, #8]
	str	w19, [x20]
Lloh9:
	adrp	x21, _acpi_res_lock@GOTPAGE
Lloh10:
	ldr	x21, [x21, _acpi_res_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x20
	bl	_acpi_res_list_add
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #0
Lloh15:
	adrp	x10, l_.str.4@PAGE
Lloh16:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh17:
	adrp	x11, l_.str.3@PAGE
Lloh18:
	add	x11, x11, l_.str.3@PAGEOFF
	csel	x1, x9, x8, eq
	cmp	w19, #129
	csel	x2, x11, x10, eq
	ldp	x4, x3, [x20, #8]
	ldr	w5, [x20, #4]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	cbnz	w22, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_kfree
LBB0_5:
Lloh21:
	adrp	x8, _AE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_enforce_resources,8,3     ; @acpi_enforce_resources
	.comm	_ENFORCE_RESOURCES_NO,8,3       ; @ENFORCE_RESOURCES_NO
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_acpi_res_lock,4,2              ; @acpi_res_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s resource: start: 0x%llx, end: 0x%llx, name: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Added"

l_.str.2:                               ; @.str.2
	.asciz	"Already exist"

l_.str.3:                               ; @.str.3
	.asciz	"SystemIO"

l_.str.4:                               ; @.str.4
	.asciz	"System Memory"

.subsections_via_symbols
