	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_pcie_handle_membase_change
_mvebu_pcie_handle_membase_change:      ## @mvebu_pcie_handle_membase_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	$0, -16(%rbp)
	movq	_MVEBU_MBUS_NO_REMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	12(%rdi), %eax
	movl	16(%rdi), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_3
## %bb.1:
	movq	_PCI_COMMAND_MEMORY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 20(%rdi)
	je	LBB0_3
## %bb.2:
	andl	$-16, %ecx
	shll	$16, %ecx
	movl	%ecx, -16(%rbp)
	shll	$16, %eax
	orl	$1048575, %eax                  ## imm = 0xFFFFF
	subl	%ecx, %eax
	incl	%eax
	movl	%eax, -12(%rbp)
LBB0_3:
	movl	4(%rdi), %edx
	movl	8(%rdi), %esi
	leaq	-16(%rbp), %rcx
	movq	%rdi, %r8
	callq	_mvebu_pcie_set_window
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVEBU_MBUS_NO_REMAP,4,2        ## @MVEBU_MBUS_NO_REMAP
	.comm	_PCI_COMMAND_MEMORY,4,2         ## @PCI_COMMAND_MEMORY
	.no_dead_strip	_mvebu_pcie_handle_membase_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_pcie_handle_membase_change
_mvebu_pcie_handle_membase_change:      ; @mvebu_pcie_handle_membase_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _MVEBU_MBUS_NO_REMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVEBU_MBUS_NO_REMAP@GOTPAGEOFF]
	str	xzr, [sp]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldp	w8, w9, [x0, #12]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.1:
	ldr	w10, [x0, #20]
Lloh3:
	adrp	x11, _PCI_COMMAND_MEMORY@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PCI_COMMAND_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
	lsl	w9, w9, #16
	and	w9, w9, #0xfff00000
	lsl	w8, w8, #16
	orr	w8, w8, #0xfffff
	sub	w8, w8, w9
	add	w8, w8, #1
	stp	w9, w8, [sp]
LBB0_3:
	ldp	w2, w1, [x0, #4]
	mov	x3, sp
	mov	x4, x0
	bl	_mvebu_pcie_set_window
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MVEBU_MBUS_NO_REMAP,4,2        ; @MVEBU_MBUS_NO_REMAP
	.comm	_PCI_COMMAND_MEMORY,4,2         ; @PCI_COMMAND_MEMORY
	.no_dead_strip	_mvebu_pcie_handle_membase_change
.subsections_via_symbols
