	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_rs_get_list_length        ## -- Begin function acpi_rs_get_list_length
	.p2align	4, 0x90
_acpi_rs_get_list_length:               ## @acpi_rs_get_list_length
	.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	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_rs_get_list_length@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.1:
	movslq	%r15d, %rax
	leaq	(%r14,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_ACPI_RS_SIZE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_acpi_rs_stream_option_length
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r13d
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_acpi_gbl_resource_struct_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx
	addl	(%rax,%rcx,4), %r13d
	movl	%r13d, %edi
	callq	_ACPI_ROUND_UP_TO_NATIVE_WORD
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_acpi_ut_get_resource_type
	movq	%r14, %rdi
	callq	_acpi_ut_get_descriptor_length
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	%r14, %rdi
	callq	_acpi_ut_get_descriptor_length
	cltq
	leaq	(%r14,%rax,8), %r14
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	callq	_acpi_ut_validate_resource
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	callq	_return_ACPI_STATUS
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_acpi_ut_get_resource_length
	movl	%eax, %r13d
	movq	_acpi_gbl_resource_aml_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r14, %rdi
	callq	_acpi_ut_get_resource_header_length
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_acpi_ut_get_resource_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r15d, %rcx
	leaq	(%r14,%rcx,8), %rsi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_ACPI_MOVE_16_TO_16
	movslq	-44(%rbp), %rdi
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rsi), %ebx
	leal	-4(,%rbx,4), %eax
	subl	%eax, %r13d
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_acpi_rs_stream_option_length
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx,4), %r13d
	addl	$-4, %r13d
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rsi), %rdi
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_acpi_rs_count_set_bits
	jmp	LBB0_4
LBB0_15:
	movq	_AE_AML_NO_RESOURCE_END_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_rs_get_list_length,4,2         ## @rs_get_list_length
	.comm	_acpi_gbl_resource_aml_sizes,8,3 ## @acpi_gbl_resource_aml_sizes
	.comm	_ACPI_RS_SIZE_MIN,4,2           ## @ACPI_RS_SIZE_MIN
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_acpi_gbl_resource_struct_sizes,8,3 ## @acpi_gbl_resource_struct_sizes
	.comm	_ACPI_DB_RESOURCES,4,2          ## @ACPI_DB_RESOURCES
	.comm	_AE_AML_NO_RESOURCE_END_TAG,4,2 ## @AE_AML_NO_RESOURCE_END_TAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_rs_get_list_length        ; -- Begin function acpi_rs_get_list_length
	.p2align	2
_acpi_rs_get_list_length:               ; @acpi_rs_get_list_length
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _rs_get_list_length@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rs_get_list_length@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	str	wzr, [x19]
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.1:
	add	x24, x20, w21, sxtw #3
Lloh3:
	adrp	x25, _acpi_gbl_resource_aml_sizes@GOTPAGE
Lloh4:
	ldr	x25, [x25, _acpi_gbl_resource_aml_sizes@GOTPAGEOFF]
Lloh5:
	adrp	x26, _acpi_gbl_resource_struct_sizes@GOTPAGE
Lloh6:
	ldr	x26, [x26, _acpi_gbl_resource_struct_sizes@GOTPAGEOFF]
Lloh7:
	adrp	x28, _AE_OK@GOTPAGE
Lloh8:
	ldr	x28, [x28, _AE_OK@GOTPAGEOFF]
Lloh9:
	adrp	x27, lJTI0_0@PAGE
Lloh10:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x8, _ACPI_RS_SIZE_MIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACPI_RS_SIZE_MIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x28]
	bl	_return_ACPI_STATUS
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_acpi_rs_stream_option_length
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldr	x9, [sp]
	ldr	w8, [x8, x9, lsl #2]
	add	w0, w8, w21
	bl	_ACPI_ROUND_UP_TO_NATIVE_WORD
	mov	x21, x0
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	mov	x0, x20
	bl	_acpi_ut_get_resource_type
	mov	x0, x20
	bl	_acpi_ut_get_descriptor_length
	mov	x0, x21
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x20
	bl	_acpi_ut_get_descriptor_length
	add	x20, x20, w0, sxtw #3
	cmp	x20, x24
	b.hs	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_acpi_ut_validate_resource
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_acpi_ut_get_resource_length
	mov	x21, x0
	ldr	x8, [x25]
	ldr	x9, [sp]
	ldr	x22, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_acpi_ut_get_resource_header_length
	mov	x23, x0
	mov	x0, x20
	bl	_acpi_ut_get_resource_type
	sub	w8, w0, #128
	cmp	w8, #8
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x20, w23, sxtw #3
	adr	x9, LBB0_2
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_ACPI_MOVE_16_TO_16
	ldrsw	x0, [sp, #12]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w21, #0
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x1, #8]
	lsl	w8, w8, #2
	sub	w23, w8, #4
	sub	w0, w21, w23
	mov	x1, x22
	bl	_acpi_rs_stream_option_length
	add	w21, w23, w0
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x1]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_acpi_rs_count_set_bits
	b	LBB0_4
LBB0_15:
Lloh14:
	adrp	x8, _AE_AML_NO_RESOURCE_END_TAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_AML_NO_RESOURCE_END_TAG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_rs_get_list_length,4,2         ; @rs_get_list_length
	.comm	_acpi_gbl_resource_aml_sizes,8,3 ; @acpi_gbl_resource_aml_sizes
	.comm	_ACPI_RS_SIZE_MIN,4,2           ; @ACPI_RS_SIZE_MIN
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_acpi_gbl_resource_struct_sizes,8,3 ; @acpi_gbl_resource_struct_sizes
	.comm	_ACPI_DB_RESOURCES,4,2          ; @ACPI_DB_RESOURCES
	.comm	_AE_AML_NO_RESOURCE_END_TAG,4,2 ; @AE_AML_NO_RESOURCE_END_TAG
.subsections_via_symbols
