	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_rs_create_resource_list   ## -- Begin function acpi_rs_create_resource_list
	.p2align	4, 0x90
_acpi_rs_create_resource_list:          ## @acpi_rs_create_resource_list
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movq	_rs_create_resource_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movl	8(%rbx), %r15d
	movq	(%rbx), %r12
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_acpi_rs_get_list_length
	movl	%eax, %ebx
	movl	-40(%rbp), %edi
	callq	_ACPI_DEBUG_PRINT
	movl	%ebx, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_acpi_ut_initialize_buffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)
	movq	_acpi_rs_convert_aml_to_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_acpi_ut_walk_aml_resources
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	movl	(%r14), %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rs_create_resource_list,4,2    ## @rs_create_resource_list
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.comm	_acpi_rs_convert_aml_to_resources,4,2 ## @acpi_rs_convert_aml_to_resources
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_rs_create_resource_list   ; -- Begin function acpi_rs_create_resource_list
	.p2align	2
_acpi_rs_create_resource_list:          ; @acpi_rs_create_resource_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _rs_create_resource_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rs_create_resource_list@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	mov	x0, x21
	bl	_ACPI_DEBUG_PRINT
	ldr	w20, [x21, #8]
	ldr	x21, [x21]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_acpi_rs_get_list_length
	mov	x22, x0
	ldr	w0, [sp, #8]
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x22
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_acpi_ut_initialize_buffer
	mov	x22, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_return_ACPI_STATUS
LBB0_4:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh3:
	adrp	x8, _acpi_rs_convert_aml_to_resources@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_rs_convert_aml_to_resources@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	bl	_acpi_ut_walk_aml_resources
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_6:
	ldr	w0, [x19]
	bl	_ACPI_DEBUG_PRINT
Lloh6:
	adrp	x8, _AE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rs_create_resource_list,4,2    ; @rs_create_resource_list
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.comm	_acpi_rs_convert_aml_to_resources,4,2 ; @acpi_rs_convert_aml_to_resources
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
