	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcie_bus_configure_set
_pcie_bus_configure_set:                ## @pcie_bus_configure_set
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_pci_is_pcie
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_pcie_bus_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PCIE_BUS_TUNE_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_PCIE_BUS_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movb	(%r14), %cl
	movl	$128, %r14d
	movl	$128, %r12d
	shll	%cl, %r12d
	movq	%rbx, %rdi
	callq	_pcie_get_mps
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_pcie_write_mps
	movq	%rbx, %rdi
	callq	_pcie_write_mrrs
	movq	%rbx, %rdi
	callq	_pcie_get_mps
	movl	%eax, %r12d
	movb	(%rbx), %cl
	shll	%cl, %r14d
	movq	%rbx, %rdi
	callq	_pcie_get_readrq
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_pci_info
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcie_bus_config,8,3            ## @pcie_bus_config
	.comm	_PCIE_BUS_TUNE_OFF,8,3          ## @PCIE_BUS_TUNE_OFF
	.comm	_PCIE_BUS_DEFAULT,8,3           ## @PCIE_BUS_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Max Payload Size set to %4d/%4d (was %4d), Max Read Rq %4d\n"

	.no_dead_strip	_pcie_bus_configure_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcie_bus_configure_set
_pcie_bus_configure_set:                ; @pcie_bus_configure_set
	.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	x20, x1
	mov	x19, x0
	bl	_pci_is_pcie
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _pcie_bus_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pcie_bus_config@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PCIE_BUS_TUNE_OFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCIE_BUS_TUNE_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _PCIE_BUS_DEFAULT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCIE_BUS_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x20]
	mov	w22, #128
	lsl	w20, w22, w8
	mov	x0, x19
	bl	_pcie_get_mps
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_pcie_write_mps
	mov	x0, x19
	bl	_pcie_write_mrrs
	mov	x0, x19
	bl	_pcie_get_mps
	mov	x20, x0
	ldr	w8, [x19]
	lsl	w22, w22, w8
	mov	x0, x19
	bl	_pcie_get_readrq
	mov	x5, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_pci_info
LBB0_3:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pcie_bus_config,8,3            ; @pcie_bus_config
	.comm	_PCIE_BUS_TUNE_OFF,8,3          ; @PCIE_BUS_TUNE_OFF
	.comm	_PCIE_BUS_DEFAULT,8,3           ; @PCIE_BUS_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Max Payload Size set to %4d/%4d (was %4d), Max Read Rq %4d\n"

	.no_dead_strip	_pcie_bus_configure_set
.subsections_via_symbols
