	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pnpbios_parse_allocated_resource_data
LCPI0_0:
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pnpbios_parse_allocated_resource_data: ## @pnpbios_parse_allocated_resource_data
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_pnp_dbg
	movq	%r14, %rdi
	callq	_pnp_init_resources
	cmpq	%r15, %rbx
	jae	LBB0_33
## %bb.3:
	movq	_LARGE_TAG@GOTPCREL(%rip), %r12
	movb	(%r12), %al
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r12), %eax
	xorl	%ecx, %ecx
	testb	%al, (%rbx)
	setne	%cl
	leal	1(%r13,%rcx,2), %ecx
	addq	%rcx, %rbx
	cmpq	%r15, %rbx
	jae	LBB0_33
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edx
	testb	%dl, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzwl	1(%rbx), %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %r13d
	andl	$7, %r13d
	shrl	$3, %edx
	andl	$15, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	-128(%rdx), %eax
	cmpb	$10, %al
	ja	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$7, %r13d
	jne	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movzwl	2(%rbx), %esi
	movzbl	7(%rbx), %edx
	jmp	LBB0_27
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_31
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%rbx), %eax
	movl	%eax, %r12d
	andl	$1, %r12d
	decl	%r12d
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	movmskps	%xmm0, %ecx
	testb	$8, %cl
	movl	$1, %edx
	cmovel	%edx, %r12d
	testb	$4, %cl
	movl	$2, %edx
	cmovel	%edx, %r12d
	testb	$2, %cl
	movl	$3, %edx
	cmovel	%edx, %r12d
	testb	$1, %cl
	movl	$4, %ecx
	cmovel	%ecx, %r12d
	testb	$32, %al
	movl	$5, %ecx
	cmovnel	%ecx, %r12d
	testb	$64, %al
	movl	$6, %ecx
	cmovnel	%ecx, %r12d
	testb	$-128, %al
	movl	$7, %eax
	cmovnel	%eax, %r12d
	movzbl	2(%rbx), %eax
	testb	$1, %al
	movl	$8, %ecx
	cmovnel	%ecx, %r12d
	testb	$2, %al
	movl	$9, %ecx
	cmovnel	%ecx, %r12d
	testb	$4, %al
	movl	$10, %ecx
	cmovnel	%ecx, %r12d
	testb	$8, %al
	movl	$11, %ecx
	cmovnel	%ecx, %r12d
	testb	$16, %al
	movl	$12, %ecx
	cmovnel	%ecx, %r12d
	testb	$32, %al
	movl	$13, %ecx
	cmovnel	%ecx, %r12d
	testb	$64, %al
	movl	$14, %ecx
	cmovnel	%ecx, %r12d
	testb	%al, %al
	movl	$15, %eax
	cmovsl	%eax, %r12d
	cmpl	$-1, %r12d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_pcibios_penalize_isa_irq
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r13d
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movzwl	1(%rbx), %esi
	movzbl	3(%rbx), %edx
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_pnpbios_parse_allocated_ioresource
	jmp	LBB0_32
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %r13d
	jne	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%rbx), %eax
	movd	%eax, %xmm0
	movl	%eax, %esi
	andl	$1, %esi
	decl	%esi
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	movmskps	%xmm0, %ecx
	testb	$8, %cl
	movl	$1, %edx
	cmovel	%edx, %esi
	testb	$4, %cl
	movl	$2, %edx
	cmovel	%edx, %esi
	testb	$2, %cl
	movl	$3, %edx
	cmovel	%edx, %esi
	testb	$1, %cl
	movl	$4, %ecx
	cmovel	%ecx, %esi
	testb	$32, %al
	movl	$5, %ecx
	cmovnel	%ecx, %esi
	testb	$64, %al
	movl	$6, %ecx
	cmovnel	%ecx, %esi
	testb	%al, %al
	movl	$7, %eax
	cmovsl	%eax, %esi
	xorl	%edx, %edx
	cmpl	$-1, %esi
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_IORESOURCE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_pnp_add_dma_resource
	jmp	LBB0_32
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$17, %r13d
	jne	LBB0_31
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %esi
	movl	16(%rbx), %edx
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$9, %r13d
	jne	LBB0_31
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movswl	4(%rbx), %esi
	movswl	10(%rbx), %edx
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$9, %r13d
	jne	LBB0_31
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_pnpbios_parse_allocated_memresource
	jmp	LBB0_32
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_IORESOURCE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_pnp_add_irq_resource
	movq	_LARGE_TAG@GOTPCREL(%rip), %r12
	jmp	LBB0_32
LBB0_33:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_34
LBB0_1:
	xorl	%ebx, %ebx
LBB0_34:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	addq	$2, %rbx
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_32
	.long	L0_0_set_25
	.long	L0_0_set_16
	.long	L0_0_set_28
	.long	L0_0_set_30
	.long	L0_0_set_21
	.long	L0_0_set_32
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse allocated resources\n"

	.comm	_LARGE_TAG,1,0                  ## @LARGE_TAG
	.comm	_IORESOURCE_DISABLED,4,2        ## @IORESOURCE_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"unknown tag %#x length %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"no end tag in resource structure\n"

	.no_dead_strip	_pnpbios_parse_allocated_resource_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpbios_parse_allocated_resource_data
_pnpbios_parse_allocated_resource_data: ; @pnpbios_parse_allocated_resource_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_30
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pnp_dbg
	mov	x0, x19
	bl	_pnp_init_resources
	cmp	x20, x21
	b.hs	LBB0_29
; %bb.2:
Lloh2:
	adrp	x24, _LARGE_TAG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _LARGE_TAG@GOTPAGEOFF]
	ldrb	w9, [x24]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x25, lJTI0_0@PAGE
Lloh7:
	add	x25, x25, lJTI0_0@PAGEOFF
	mov	w23, #2
	mov	w27, #6
	mov	w28, #7
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	x8, x26, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_dev_err
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20]
	ldrb	w9, [x24]
	tst	w9, w8
	add	w8, w26, #3
	csinc	w8, w8, w26, ne
	add	x20, x20, x8
	cmp	x20, x21
	b.hs	LBB0_29
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldurh	w26, [x20, #1]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w26, w8, #0x7
	ubfx	w8, w8, #3, #4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w8, #128
	cmp	w9, #10
	b.hi	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x10, LBB0_4
	ldrb	w11, [x25, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #7
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrh	w1, [x20, #2]
	ldrb	w2, [x20, #7]
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w26, #0xfffe
	cmp	w9, #2
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20, #1]
	ldrb	w9, [x20, #2]
	sxtb	w10, w9
	and	w11, w8, #0x1
	sub	w11, w11, #1
	tst	w8, #0x2
	csinc	w11, w11, wzr, eq
	tst	w8, #0x4
	csel	w11, w11, w23, eq
	tst	w8, #0x8
	mov	w12, #3
	csel	w11, w11, w12, eq
	tst	w8, #0x10
	mov	w12, #4
	csel	w11, w11, w12, eq
	tst	w8, #0x20
	mov	w12, #5
	csel	w11, w11, w12, eq
	tst	w8, #0x40
	csel	w11, w11, w27, eq
	tst	w8, #0x80
	csel	w8, w11, w28, eq
	tst	w9, #0x1
	mov	w11, #8
	csel	w8, w8, w11, eq
	tst	w9, #0x2
	mov	w11, #9
	csel	w8, w8, w11, eq
	tst	w9, #0x4
	mov	w11, #10
	csel	w8, w8, w11, eq
	tst	w9, #0x8
	mov	w11, #11
	csel	w8, w8, w11, eq
	tst	w9, #0x10
	mov	w11, #12
	csel	w8, w8, w11, eq
	tst	w9, #0x20
	mov	w11, #13
	csel	w8, w8, w11, eq
	tst	w9, #0x40
	mov	w9, #14
	csel	w8, w8, w9, eq
	cmp	w10, #0
	mov	w9, #15
	csel	w23, w8, w9, ge
	cmn	w23, #1
	b.eq	LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	w1, #1
	bl	_pcibios_penalize_isa_irq
	mov	w2, #0
	b	LBB0_28
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #3
	b.ne	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldurh	w1, [x20, #1]
	ldrb	w2, [x20, #3]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_pnpbios_parse_allocated_ioresource
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #2
	b.ne	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20, #1]
	sxtb	w9, w8
	and	w10, w8, #0x1
	sub	w10, w10, #1
	tst	w8, #0x2
	csinc	w10, w10, wzr, eq
	tst	w8, #0x4
	csel	w10, w10, w23, eq
	tst	w8, #0x8
	mov	w11, #3
	csel	w10, w10, w11, eq
	tst	w8, #0x10
	mov	w11, #4
	csel	w10, w10, w11, eq
	tst	w8, #0x20
	mov	w11, #5
	csel	w10, w10, w11, eq
	tst	w8, #0x40
	csel	w8, w10, w27, eq
	cmp	w9, #0
	csel	w1, w8, w28, ge
Lloh8:
	adrp	x8, _IORESOURCE_DISABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_DISABLED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w1, #1
	csel	w2, w8, wzr, eq
	mov	x0, x19
	bl	_pnp_add_dma_resource
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #17
	b.ne	LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x20, #4]
	ldr	w2, [x20, #16]
	b	LBB0_26
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #9
	b.ne	LBB0_3
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrsh	w1, [x20, #4]
	ldrsh	w2, [x20, #10]
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #9
	b.ne	LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w2, [x20, #4]
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_pnpbios_parse_allocated_memresource
	b	LBB0_4
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x8, _IORESOURCE_DISABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_DISABLED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_pnp_add_irq_resource
	mov	w23, #2
	b	LBB0_4
LBB0_29:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_30:
	mov	x0, #0
LBB0_31:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_32:
	add	x0, x20, #2
	b	LBB0_31
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_32-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_20-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_24-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse allocated resources\n"

	.comm	_LARGE_TAG,1,0                  ; @LARGE_TAG
	.comm	_IORESOURCE_DISABLED,4,2        ; @IORESOURCE_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"unknown tag %#x length %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"no end tag in resource structure\n"

	.no_dead_strip	_pnpbios_parse_allocated_resource_data
.subsections_via_symbols
