	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_epf_configure_bar
_pci_epf_configure_bar:                 ## @pci_epf_configure_bar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_BAR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BAR_5@GOTPCREL(%rip), %r8
	cmpl	(%r8), %eax
	jle	LBB0_1
LBB0_7:
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movslq	%eax, %rdx
	movl	(%rsi), %r11d
	movq	8(%rsi), %rsi
	movq	_bar_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	decq	%rdx
	movq	_PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPCREL(%rip), %r10
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r8), %rcx
	incq	%rdx
	incl	%eax
	cmpq	%rcx, %rdx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%eax, %r11d
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rcx
	movl	(%r10), %ebx
	orl	%ebx, 4(%rcx,%rdx,4)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rsi,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 8(%r9,%rdx,8)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BAR_0,4,2                      ## @BAR_0
	.comm	_BAR_5,4,2                      ## @BAR_5
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_64,4,2 ## @PCI_BASE_ADDRESS_MEM_TYPE_64
	.comm	_bar_size,8,3                   ## @bar_size
	.no_dead_strip	_pci_epf_configure_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_epf_configure_bar
_pci_epf_configure_bar:                 ; @pci_epf_configure_bar
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BAR_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAR_0@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
Lloh3:
	adrp	x9, _BAR_5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BAR_5@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	b.le	LBB0_2
LBB0_1:
	ret
LBB0_2:
	ldr	w10, [x1]
	ldr	x11, [x1, #8]
Lloh5:
	adrp	x12, _bar_size@GOTPAGE
Lloh6:
	ldr	x12, [x12, _bar_size@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
Lloh8:
	adrp	x13, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGE
Lloh9:
	ldr	x13, [x13, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x8, #1
	ldrsw	x15, [x9]
	cmp	x8, x15
	mov	x8, x14
	b.ge	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w14, w10, w8
	tbz	w14, #0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x0]
	ldr	w15, [x13]
	lsl	x16, x8, #2
	ldr	w17, [x14, x16]
	orr	w15, w17, w15
	str	w15, [x14, x16]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x11, x8, lsl #3]
	cbz	x14, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x14, [x12, x8, lsl #3]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BAR_0,4,2                      ; @BAR_0
	.comm	_BAR_5,4,2                      ; @BAR_5
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_64,4,2 ; @PCI_BASE_ADDRESS_MEM_TYPE_64
	.comm	_bar_size,8,3                   ; @bar_size
	.no_dead_strip	_pci_epf_configure_bar
.subsections_via_symbols
