	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_restore_pcix_state
_pci_restore_pcix_state:                ## @pci_restore_pcix_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PCI_CAP_ID_PCIX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_pci_find_saved_cap
	movq	%rax, %r14
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_pci_find_capability
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r14), %rcx
	movslq	%eax, %rsi
	movq	_PCI_X_CMD@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_write_config_word          ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CAP_ID_PCIX,4,2            ## @PCI_CAP_ID_PCIX
	.comm	_PCI_X_CMD,8,3                  ## @PCI_X_CMD
	.no_dead_strip	_pci_restore_pcix_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_restore_pcix_state
_pci_restore_pcix_state:                ; @pci_restore_pcix_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x21, _PCI_CAP_ID_PCIX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_CAP_ID_PCIX@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_pci_find_saved_cap
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_find_capability
	cmp	x20, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _PCI_X_CMD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_X_CMD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, w0, sxtw
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_write_config_word
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CAP_ID_PCIX,4,2            ; @PCI_CAP_ID_PCIX
	.comm	_PCI_X_CMD,8,3                  ; @PCI_X_CMD
	.no_dead_strip	_pci_restore_pcix_state
.subsections_via_symbols
