	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_pcie_quirk
_ks_pcie_quirk:                         ## @ks_pcie_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_pci_is_root_bus
	movq	%rbx, %rdi
	callq	_pci_is_root_bus
	movq	%r14, %r15
	testq	%rax, %rax
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	8(%rbx), %r15
	movq	%r12, %rdi
	callq	_pci_is_root_bus
	movq	%r12, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_5
LBB0_3:
	leaq	_ks_pcie_quirk.rc_pci_devids(%rip), %rdi
	movq	%r15, %rsi
	callq	_pci_match_id
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_pcie_get_readrq
	cmpl	$257, %eax                      ## imm = 0x101
	jl	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcie_set_readrq                ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ks_pcie_quirk.rc_pci_devids
_ks_pcie_quirk.rc_pci_devids:
	.long	33024                           ## 0x8100
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	33024                           ## 0x8100
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	33024                           ## 0x8100
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	33024                           ## 0x8100
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.space	12

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"limiting MRRS to 256\n"

	.no_dead_strip	_ks_pcie_quirk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_pcie_quirk
_ks_pcie_quirk:                         ; @ks_pcie_quirk
	.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
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_pci_is_root_bus
	mov	x0, x20
	bl	_pci_is_root_bus
	mov	x21, x19
	cbnz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x20, x21, [x20]
	mov	x0, x20
	bl	_pci_is_root_bus
	cbz	x0, LBB0_1
; %bb.2:
	cbz	x21, LBB0_6
LBB0_3:
Lloh0:
	adrp	x0, _ks_pcie_quirk.rc_pci_devids@PAGE
Lloh1:
	add	x0, x0, _ks_pcie_quirk.rc_pci_devids@PAGEOFF
	mov	x1, x21
	bl	_pci_match_id
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_pcie_get_readrq
	cmp	w0, #257
	b.lt	LBB0_6
; %bb.5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	w1, #256
	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	_pcie_set_readrq
LBB0_6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ks_pcie_quirk.rc_pci_devids
_ks_pcie_quirk.rc_pci_devids:
	.long	33024                           ; 0x8100
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	33024                           ; 0x8100
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	33024                           ; 0x8100
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	33024                           ; 0x8100
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.space	12

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"limiting MRRS to 256\n"

	.no_dead_strip	_ks_pcie_quirk
.subsections_via_symbols
