	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_fix_pci_max_read_req_size ## -- Begin function evergreen_fix_pci_max_read_req_size
	.p2align	4, 0x90
_evergreen_fix_pci_max_read_req_size:   ## @evergreen_fix_pci_max_read_req_size
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_PCI_EXP_DEVCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_pcie_capability_read_word
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	-20(%rbp), %edx
	movq	_PCI_EXP_DEVCTL_READRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	%edx, %ecx
	cmpl	$4096, %ecx                     ## imm = 0x1000
	jb	LBB0_3
## %bb.2:
	andl	$-8192, %ecx                    ## imm = 0xE000
	cmpl	$24576, %ecx                    ## imm = 0x6000
	jne	LBB0_4
LBB0_3:
	notl	%eax
	andl	%eax, %edx
	orl	$8192, %edx                     ## imm = 0x2000
	movl	%edx, -20(%rbp)
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_pcie_capability_write_word
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_DEVCTL,4,2             ## @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_DEVCTL_READRQ,4,2      ## @PCI_EXP_DEVCTL_READRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_fix_pci_max_read_req_size ; -- Begin function evergreen_fix_pci_max_read_req_size
	.p2align	2
_evergreen_fix_pci_max_read_req_size:   ; @evergreen_fix_pci_max_read_req_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x20, _PCI_EXP_DEVCTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_EXP_DEVCTL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pcie_capability_read_word
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _PCI_EXP_DEVCTL_READRQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_EXP_DEVCTL_READRQ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w10, w9, w8
	cmp	w10, #1, lsl #12                ; =4096
	b.lo	LBB0_3
; %bb.2:
	and	w10, w10, #0xffffe000
	cmp	w10, #6, lsl #12                ; =24576
	b.ne	LBB0_4
LBB0_3:
	bic	w8, w8, w9
	orr	w2, w8, #0x2000
	str	w2, [sp, #12]
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_pcie_capability_write_word
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_DEVCTL,4,2             ; @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_DEVCTL_READRQ,4,2      ; @PCI_EXP_DEVCTL_READRQ
.subsections_via_symbols
