	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_idt_bus_quirk              ## -- Begin function pci_idt_bus_quirk
	.p2align	4, 0x90
_pci_idt_bus_quirk:                     ## @pci_idt_bus_quirk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	movq	(%rdi), %r14
	movq	_PCI_EXT_CAP_ID_ACS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_find_ext_capability
	movslq	%eax, %r12
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_PCI_ACS_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movl	-44(%rbp), %edx
	movq	_PCI_ACS_SV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	je	LBB0_3
## %bb.2:
	movq	_PCI_ACS_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%r12, %rsi
	notl	%eax
	andl	%eax, %edx
	movq	%r14, %rdi
	callq	_pci_write_config_word
LBB0_3:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_pci_bus_generic_read_dev_vendor_id
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_PCI_VENDOR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_pci_bus_write_config_word
LBB0_5:
	movl	-44(%rbp), %edx
	movq	_PCI_ACS_SV@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_PCI_ACS_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pci_write_config_word
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_ACS,4,2         ## @PCI_EXT_CAP_ID_ACS
	.comm	_PCI_ACS_CTRL,8,3               ## @PCI_ACS_CTRL
	.comm	_PCI_ACS_SV,4,2                 ## @PCI_ACS_SV
	.comm	_PCI_VENDOR_ID,4,2              ## @PCI_VENDOR_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_idt_bus_quirk              ; -- Begin function pci_idt_bus_quirk
	.p2align	2
_pci_idt_bus_quirk:                     ; @pci_idt_bus_quirk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #12]
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _PCI_EXT_CAP_ID_ACS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_ACS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_find_ext_capability
	mov	x20, x0
Lloh3:
	adrp	x26, _PCI_ACS_SV@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PCI_ACS_SV@GOTPAGEOFF]
Lloh5:
	adrp	x25, _PCI_ACS_CTRL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PCI_ACS_CTRL@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	sxtw	x27, w20
	ldr	x8, [x25]
	add	x1, x8, x27
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x10, [x25]
	add	x1, x10, x27
	bic	w2, w8, w9
	mov	x0, x19
	bl	_pci_write_config_word
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	bl	_pci_bus_generic_read_dev_vendor_id
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _PCI_VENDOR_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_VENDOR_ID@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	bl	_pci_bus_write_config_word
LBB0_5:
	ldr	w2, [sp, #12]
	ldr	w8, [x26]
	tst	w8, w2
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x25]
	add	x1, x8, w20, sxtw
	mov	x0, x19
	bl	_pci_write_config_word
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_ACS,4,2         ; @PCI_EXT_CAP_ID_ACS
	.comm	_PCI_ACS_CTRL,8,3               ; @PCI_ACS_CTRL
	.comm	_PCI_ACS_SV,4,2                 ; @PCI_ACS_SV
	.comm	_PCI_VENDOR_ID,4,2              ; @PCI_VENDOR_ID
.subsections_via_symbols
