	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_restore_ats_state          ## -- Begin function pci_restore_ats_state
	.p2align	4, 0x90
_pci_restore_ats_state:                 ## @pci_restore_ats_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 20(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_PCI_ATS_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$0, 16(%rdi)
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	movq	_PCI_ATS_MIN_STU@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	callq	_PCI_ATS_CTRL_STU
	orl	%eax, %r14d
LBB0_3:
	movq	_PCI_ATS_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pci_write_config_word          ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ATS_CTRL_ENABLE,4,2        ## @PCI_ATS_CTRL_ENABLE
	.comm	_PCI_ATS_MIN_STU,8,3            ## @PCI_ATS_MIN_STU
	.comm	_PCI_ATS_CTRL,8,3               ## @PCI_ATS_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_restore_ats_state          ; -- Begin function pci_restore_ats_state
	.p2align	2
_pci_restore_ats_state:                 ; @pci_restore_ats_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
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_ATS_CTRL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ATS_CTRL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _PCI_ATS_MIN_STU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_ATS_MIN_STU@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_PCI_ATS_CTRL_STU
	orr	w20, w0, w20
LBB0_3:
Lloh6:
	adrp	x8, _PCI_ATS_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ATS_CTRL@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_write_config_word
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ATS_CTRL_ENABLE,4,2        ; @PCI_ATS_CTRL_ENABLE
	.comm	_PCI_ATS_MIN_STU,8,3            ; @PCI_ATS_MIN_STU
	.comm	_PCI_ATS_CTRL,8,3               ; @PCI_ATS_CTRL
.subsections_via_symbols
