	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnpacpi_parse_allocated_resource ## -- Begin function pnpacpi_parse_allocated_resource
	.p2align	4, 0x90
_pnpacpi_parse_allocated_resource:      ## @pnpacpi_parse_allocated_resource
	.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	8(%rdi), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rsi
	callq	_pnp_dbg
	movq	%rbx, %rdi
	callq	_pnp_init_resources
	movq	_METHOD_NAME__CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pnpacpi_allocated_resource@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rcx
	callq	_acpi_walk_resources
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_dev_err
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse allocated resources\n"

	.comm	_METHOD_NAME__CRS,4,2           ## @METHOD_NAME__CRS
	.comm	_pnpacpi_allocated_resource,4,2 ## @pnpacpi_allocated_resource
	.comm	_AE_NOT_FOUND,8,3               ## @AE_NOT_FOUND
L_.str.1:                               ## @.str.1
	.asciz	"can't evaluate _CRS: %d"

	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnpacpi_parse_allocated_resource ; -- Begin function pnpacpi_parse_allocated_resource
	.p2align	2
_pnpacpi_parse_allocated_resource:      ; @pnpacpi_parse_allocated_resource
	.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
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pnp_dbg
	mov	x0, x19
	bl	_pnp_init_resources
Lloh2:
	adrp	x8, _METHOD_NAME__CRS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _METHOD_NAME__CRS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _pnpacpi_allocated_resource@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pnpacpi_allocated_resource@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_acpi_walk_resources
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _AE_NOT_FOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_NOT_FOUND@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_3:
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse allocated resources\n"

	.comm	_METHOD_NAME__CRS,4,2           ; @METHOD_NAME__CRS
	.comm	_pnpacpi_allocated_resource,4,2 ; @pnpacpi_allocated_resource
	.comm	_AE_NOT_FOUND,8,3               ; @AE_NOT_FOUND
l_.str.1:                               ; @.str.1
	.asciz	"can't evaluate _CRS: %d"

	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
