	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_save_state                 ## -- Begin function pci_save_state
	.p2align	4, 0x90
_pci_save_state:                        ## @pci_save_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	xorl	%esi, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$4, %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$8, %rdx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$12, %rdx
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$16, %rdx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$20, %rdx
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$24, %rdx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$28, %rdx
	movq	%rbx, %rdi
	movl	$28, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$32, %rdx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$36, %rdx
	movq	%rbx, %rdi
	movl	$36, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$40, %rdx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$44, %rdx
	movq	%rbx, %rdi
	movl	$44, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$48, %rdx
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$52, %rdx
	movq	%rbx, %rdi
	movl	$52, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$56, %rdx
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdx
	addq	$60, %rdx
	movq	%rbx, %rdi
	movl	$60, %esi
	callq	_pci_read_config_dword
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_pci_save_pcie_state
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pci_save_pcix_state
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_pci_save_ltr_state
	movq	%rbx, %rdi
	callq	_pci_save_dpc_state
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pci_save_vc_state              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_save_state                 ; -- Begin function pci_save_state
	.p2align	2
_pci_save_state:                        ; @pci_save_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
	mov	x19, x0
	ldr	x2, [x0, #8]
	mov	w1, #0
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #4
	mov	x0, x19
	mov	w1, #4
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #8
	mov	x0, x19
	mov	w1, #8
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #12
	mov	x0, x19
	mov	w1, #12
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #16
	mov	x0, x19
	mov	w1, #16
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #20
	mov	x0, x19
	mov	w1, #20
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #24
	mov	x0, x19
	mov	w1, #24
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #28
	mov	x0, x19
	mov	w1, #28
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #32
	mov	x0, x19
	mov	w1, #32
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #36
	mov	x0, x19
	mov	w1, #36
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #40
	mov	x0, x19
	mov	w1, #40
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #44
	mov	x0, x19
	mov	w1, #44
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #48
	mov	x0, x19
	mov	w1, #48
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #52
	mov	x0, x19
	mov	w1, #52
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #56
	mov	x0, x19
	mov	w1, #56
	bl	_pci_read_config_dword
	ldr	x8, [x19, #8]
	add	x2, x8, #60
	mov	x0, x19
	mov	w1, #60
	bl	_pci_read_config_dword
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_pci_save_pcie_state
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pci_save_pcix_state
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_pci_save_ltr_state
	mov	x0, x19
	bl	_pci_save_dpc_state
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_save_vc_state
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
