	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_os_derive_pci_id_2
_acpi_os_derive_pci_id_2:               ## @acpi_os_derive_pci_id_2
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	(%rdx), %r12
	movq	%r12, -72(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_acpi_get_parent
	movq	-48(%rbp), %rsi
	cmpq	%rbx, %rsi
	je	LBB0_12
## %bb.1:
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_acpi_os_derive_pci_id_2
	movq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_acpi_get_type
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	movq	-64(%rbp), %rax
	movq	_ACPI_TYPE_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:
	movq	-48(%rbp), %rdi
	movq	_METHOD_NAME__ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	-56(%rbp), %rdi
	callq	_ACPI_LODWORD
	movl	%eax, %edi
	callq	_ACPI_HIWORD
	movl	%eax, 8(%r12)
	movq	-56(%rbp), %rdi
	callq	_ACPI_LODWORD
	movl	%eax, %edi
	callq	_ACPI_LOWORD
	movl	%eax, 4(%r12)
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %eax
	movl	%eax, (%r12)
LBB0_6:
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movl	$14, %esi
	movl	$8, %ecx
	callq	_acpi_os_read_pci_configuration
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	-36(%rbp), %eax
	andl	$127, %eax
	decl	%eax
	cmpl	$1, %eax
	ja	LBB0_11
## %bb.8:
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movl	$24, %esi
	movl	$8, %ecx
	callq	_acpi_os_read_pci_configuration
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	$1, (%r15)
	movl	-36(%rbp), %eax
	movl	%eax, (%r12)
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movl	$25, %esi
	movl	$8, %ecx
	callq	_acpi_os_read_pci_configuration
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_12
LBB0_11:
	movl	$0, (%r15)
LBB0_12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_DEVICE,8,3           ## @ACPI_TYPE_DEVICE
	.comm	_METHOD_NAME__ADR,4,2           ## @METHOD_NAME__ADR
	.no_dead_strip	_acpi_os_derive_pci_id_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_os_derive_pci_id_2
_acpi_os_derive_pci_id_2:               ; @acpi_os_derive_pci_id_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x21, x3
	mov	x8, x1
	mov	x22, x0
	ldr	x20, [x2]
	str	x20, [sp, #32]
	add	x1, sp, #40
	mov	x0, x8
	bl	_acpi_get_parent
	ldr	x1, [sp, #40]
	cmp	x1, x22
	b.eq	LBB0_12
; %bb.1:
	add	x2, sp, #32
	mov	x0, x22
	mov	x3, x21
	mov	x4, x19
	bl	_acpi_os_derive_pci_id_2
	ldr	x0, [sp, #40]
	add	x1, sp, #16
	bl	_acpi_get_type
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x9, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.3:
	ldr	x0, [sp, #40]
Lloh3:
	adrp	x8, _METHOD_NAME__ADR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _METHOD_NAME__ADR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_12
; %bb.4:
	ldr	x0, [sp, #24]
	bl	_ACPI_LODWORD
	bl	_ACPI_HIWORD
	str	w0, [x20, #8]
	ldr	x0, [sp, #24]
	bl	_ACPI_LODWORD
	bl	_ACPI_LOWORD
	str	w0, [x20, #4]
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w8, [x19]
	str	w8, [x20]
LBB0_6:
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #14
	mov	w3, #8
	bl	_acpi_os_read_pci_configuration
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x7f
	sub	w8, w8, #1
	cmp	w8, #1
	b.hi	LBB0_11
; %bb.8:
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #24
	mov	w3, #8
	bl	_acpi_os_read_pci_configuration
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_12
; %bb.9:
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [sp, #12]
	str	w8, [x20]
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #25
	mov	w3, #8
	bl	_acpi_os_read_pci_configuration
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_12
LBB0_11:
	str	wzr, [x21]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_DEVICE,8,3           ; @ACPI_TYPE_DEVICE
	.comm	_METHOD_NAME__ADR,4,2           ; @METHOD_NAME__ADR
	.no_dead_strip	_acpi_os_derive_pci_id_2
.subsections_via_symbols
