	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnpacpi_allocated_resource
_pnpacpi_allocated_resource:            ## @pnpacpi_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	%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	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rsi
	callq	_acpi_dev_resource_address_space
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_acpi_dev_resource_ext_address_space
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pnp_add_resource
LBB0_3:
	movq	_AE_OK@GOTPCREL(%rip), %r15
LBB0_4:
	movl	(%r15), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$0, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_acpi_dev_resource_interrupt
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	leaq	-56(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pnpacpi_add_irqresource
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	callq	_acpi_dev_resource_interrupt
	movq	_AE_OK@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %ebx
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_pnpacpi_add_irqresource
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_acpi_dev_resource_interrupt
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_4
## %bb.10:
	movq	%r14, %rdi
	callq	_pnp_can_write
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_PNP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	jmp	LBB0_4
LBB0_12:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_acpi_gpio_get_irq_resource
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	4(%r14), %edi
	xorl	%esi, %esi
	callq	_acpi_dev_gpio_irq_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.14:
	movq	-72(%rbp), %rax
	movl	8(%rax), %edi
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_acpi_dev_irq_flags
	movl	%eax, %edx
	jmp	LBB0_18
LBB0_15:
	movq	_IORESOURCE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, -56(%rbp)
	je	LBB0_20
## %bb.16:
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_19
LBB0_17:
	movq	_IORESOURCE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_18:
	movq	%r14, %rdi
	movl	%ebx, %esi
LBB0_19:
	callq	_pnp_add_irq_resource
	jmp	LBB0_3
LBB0_20:
	movl	(%r12), %eax
	leal	-128(%rax), %ecx
	cmpl	$11, %ecx
	ja	LBB0_26
## %bb.21:
	movq	_AE_OK@GOTPCREL(%rip), %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_22:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_acpi_dev_resource_memory
	jmp	LBB0_24
LBB0_23:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_acpi_dev_resource_io
LBB0_24:
	testl	%eax, %eax
	je	LBB0_4
## %bb.25:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pnp_add_resource
	jmp	LBB0_4
LBB0_26:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_AE_ERROR@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_27:
	addq	$8, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pnpacpi_parse_allocated_vendor
	jmp	LBB0_4
LBB0_28:
	cmpl	$0, 36(%r12)
	jle	LBB0_31
## %bb.29:
	movq	16(%r12), %rax
	cmpl	$-1, (%rax)
	je	LBB0_31
## %bb.30:
	movl	32(%r12), %esi
	movl	24(%r12), %ecx
	movl	28(%r12), %edx
	movq	%r14, %rdi
	callq	_dma_flags
	movl	%eax, %edx
LBB0_31:
	movq	16(%r12), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pnp_add_dma_resource
	jmp	LBB0_4
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_27
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_4
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_28
	.end_data_region
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multiple interrupts in _CRS descriptor; configuration can't be changed\n"

	.comm	_PNP_WRITE,4,2                  ## @PNP_WRITE
	.comm	_IORESOURCE_DISABLED,4,2        ## @IORESOURCE_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"unknown resource type %d in _CRS\n"

	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.no_dead_strip	_pnpacpi_allocated_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpacpi_allocated_resource
_pnpacpi_allocated_resource:            ; @pnpacpi_allocated_resource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	add	x1, sp, #8
	bl	_acpi_dev_resource_address_space
	cbnz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	bl	_acpi_dev_resource_ext_address_space
	cbz	x0, LBB0_5
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pnp_add_resource
LBB0_3:
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	str	wzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #0
	bl	_acpi_dev_resource_interrupt
	cbz	x0, LBB0_12
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pnpacpi_add_irqresource
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #1
	bl	_acpi_dev_resource_interrupt
	cbz	x0, LBB0_3
; %bb.7:
	mov	x21, x0
	mov	w22, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_pnpacpi_add_irqresource
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_acpi_dev_resource_interrupt
	add	w22, w22, #1
	cbnz	x0, LBB0_8
; %bb.9:
	cbz	x21, LBB0_3
; %bb.10:
	mov	x0, x19
	bl	_pnp_can_write
	cbz	x0, LBB0_3
; %bb.11:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh4:
	adrp	x8, _PNP_WRITE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PNP_WRITE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_12:
	add	x1, sp, #24
	mov	x0, x20
	bl	_acpi_gpio_get_irq_resource
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_acpi_dev_gpio_irq_get
	mov	x20, x0
	tbnz	w0, #31, LBB0_17
; %bb.14:
	ldr	x8, [sp, #24]
	ldp	w1, w0, [x8, #4]
	ldr	w2, [x8]
	bl	_acpi_dev_irq_flags
	mov	x2, x0
	b	LBB0_18
LBB0_15:
	ldr	w8, [sp, #8]
Lloh7:
	adrp	x9, _IORESOURCE_DISABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IORESOURCE_DISABLED@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	tst	w2, w8
	b.eq	LBB0_20
; %bb.16:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_19
LBB0_17:
Lloh10:
	adrp	x8, _IORESOURCE_DISABLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IORESOURCE_DISABLED@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
LBB0_18:
	mov	x0, x19
	mov	x1, x20
LBB0_19:
	bl	_pnp_add_irq_resource
	b	LBB0_3
LBB0_20:
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #11
	b.hi	LBB0_24
; %bb.21:
Lloh13:
	adrp	x8, _AE_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh15:
	adrp	x10, lJTI0_0@PAGE
Lloh16:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_22:
	add	x1, sp, #8
	mov	x0, x20
	bl	_acpi_dev_resource_memory
	cbnz	w0, LBB0_2
	b	LBB0_3
LBB0_23:
	add	x1, sp, #8
	mov	x0, x20
	bl	_acpi_dev_resource_io
	cbnz	w0, LBB0_2
	b	LBB0_3
LBB0_24:
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh19:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_25:
	add	x1, x20, #8
	mov	x0, x19
	bl	_pnpacpi_parse_allocated_vendor
	b	LBB0_3
LBB0_26:
	ldr	w8, [x20, #36]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.27:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_29
; %bb.28:
	ldp	w2, w1, [x20, #28]
	ldr	w3, [x20, #24]
	mov	x0, x19
	bl	_dma_flags
	mov	x2, x0
LBB0_29:
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pnp_add_dma_resource
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_26-LBB0_4)>>2
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multiple interrupts in _CRS descriptor; configuration can't be changed\n"

	.comm	_PNP_WRITE,4,2                  ; @PNP_WRITE
	.comm	_IORESOURCE_DISABLED,4,2        ; @IORESOURCE_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"unknown resource type %d in _CRS\n"

	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.no_dead_strip	_pnpacpi_allocated_resource
.subsections_via_symbols
