	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_load_saved_state           ## -- Begin function pci_load_saved_state
	.p2align	4, 0x90
_pci_load_saved_state:                  ## @pci_load_saved_state
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, (%rdi)
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	movl	8(%rsi), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r15), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.2:
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%r12, %rdi
	callq	__pci_find_saved_cap
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %edx
	cmpl	(%r15), %edx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax), %edi
	movl	4(%rbx), %esi
	callq	_memcpy
	movslq	(%r15), %rax
	leaq	(%rbx,%rax,4), %r15
	addq	$64, %r15
	cmpl	$0, 64(%rbx,%rax,4)
	movq	%r15, %rbx
	jne	LBB0_3
LBB0_7:
	movl	$1, (%r12)
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_load_saved_state           ; -- Begin function pci_load_saved_state
	.p2align	2
_pci_load_saved_state:                  ; @pci_load_saved_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	wzr, [x0]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x1, #8]
	mov	w2, #4
	bl	_memcpy
	ldr	x20, [x20]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x20, #8]
	mov	x0, x19
	bl	__pci_find_saved_cap
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x0]
	ldr	w8, [x20]
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x0, #4]
	ldr	w1, [x20, #4]
	bl	_memcpy
	ldrsw	x8, [x20]
	add	x20, x20, x8, lsl #2
	ldr	w8, [x20, #64]!
	cbnz	w8, LBB0_2
LBB0_5:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
