	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_pcie_setup_ob
_iproc_pcie_setup_ob:                   ## @iproc_pcie_setup_ob
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r15
	movq	%rsi, -64(%rbp)
	movq	%rdx, -80(%rbp)
	movq	%rcx, -104(%rbp)
	movq	8(%rdi), %rdi
	movq	16(%r15), %rax
	leaq	16(%r15), %rcx
	cmpq	%rsi, %rax
	jle	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rdx
LBB0_2:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	jmp	LBB0_24
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	subl	(%r8), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	subq	%rax, %rsi
	movq	%rsi, -64(%rbp)
	movl	24(%r15), %ebx
	testl	%ebx, %ebx
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	jle	LBB0_23
## %bb.4:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$1, %r12
	jle	LBB0_23
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rbx, %r12
	decq	%rbx
	movq	(%r15), %r13
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_iproc_pcie_ob_is_valid
	testq	%rax, %rax
	jne	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	shlq	$4, %rax
	movl	(%r13,%rax), %edx
	addq	%r13, %rax
	addq	$8, %rax
	movq	_SZ_1M@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%edx, %edx
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	leal	-1(%rdx), %r13d
	movq	(%rax), %rsi
	movl	%r13d, %edi
	movq	(%rsi,%rdi,8), %r15
	imulq	%rcx, %r15
	cmpq	%r15, %r14
	jge	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$1, %edx
	movl	%r13d, %edx
	ja	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%r13d, %edx
	cmpq	$1, %r12
	ja	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ALIGN_DOWN
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ALIGN_DOWN
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)
	movq	%r15, -104(%rbp)
	movq	%r15, %r14
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_iproc_pcie_ob_write
	testl	%eax, %eax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	subq	%r15, %r14
	movq	%r14, -104(%rbp)
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)
	addq	%r15, %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_2
LBB0_18:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_23:
	leaq	L_.str.2(%rip), %rsi
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-80(%rbp), %r8
	leaq	-104(%rbp), %r9
	movq	%rbx, %rdi
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_24:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"axi address %pap less than offset %pap\n"

	.comm	_SZ_1M,8,3                      ## @SZ_1M
L_.str.1:                               ## @.str.1
	.asciz	"axi %pap or pci %pap not aligned\n"

L_.str.2:                               ## @.str.2
	.asciz	"unable to configure outbound mapping\n"

L_.str.3:                               ## @.str.3
	.asciz	"axi %pap, axi offset %pap, pci %pap, res size %pap\n"

	.no_dead_strip	_iproc_pcie_setup_ob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_pcie_setup_ob
_iproc_pcie_setup_ob:                   ; @iproc_pcie_setup_ob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	stp	x2, x1, [sp, #48]
	str	x3, [sp, #40]
	mov	x28, x0
	ldr	x8, [x28, #16]!
	ldur	x0, [x28, #-8]
	cmp	x8, x1
	b.le	LBB0_3
; %bb.1:
	add	x8, sp, #56
	stp	x8, x28, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_21
LBB0_3:
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	neg	w25, w9
	sub	x23, x1, x8
	str	x23, [sp, #56]
	ldr	w19, [x20, #24]
	cmp	w19, #1
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	b.lt	LBB0_20
; %bb.4:
	mov	x22, x3
	mov	x21, x2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x24, #1
	b.le	LBB0_20
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x24, x19
	sub	x19, x19, #1
	ldr	x26, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_iproc_pcie_ob_is_valid
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x26, w19, uxtw #4
	ldr	w9, [x8], #8
Lloh8:
	adrp	x10, _SZ_1M@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SZ_1M@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	w27, w9, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x11, [x8]
	ldr	x11, [x11, w27, uxtw #3]
	mul	x26, x10, x11
	cmp	x22, x26
	b.ge	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	subs	w9, w9, #1
	b.hi	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	x24, #1
	b.hi	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_ALIGN_DOWN
	mov	x23, x0
	str	x0, [sp, #56]
	mov	x0, x21
	mov	x1, x26
	bl	_ALIGN_DOWN
	mov	x21, x0
	stp	x26, x0, [sp, #40]
	mov	x22, x26
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_IS_ALIGNED
	cbz	w0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_IS_ALIGNED
	cbz	w0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x27
	mov	x3, x23
	mov	x4, x21
	bl	_iproc_pcie_ob_write
	cbnz	w0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	subs	x22, x22, x26
	str	x22, [sp, #40]
	mov	w25, #0
	b.eq	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, x26
	add	x21, x21, x26
	stp	x21, x23, [sp, #48]
	b	LBB0_5
LBB0_18:
	add	x8, sp, #48
	add	x9, sp, #56
	stp	x9, x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	b	LBB0_2
LBB0_19:
	mov	x25, x0
LBB0_20:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_dev_err
	add	x8, sp, #40
	add	x9, sp, #48
	stp	x9, x8, [sp, #16]
	add	x8, sp, #56
	stp	x8, x28, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_21:
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"axi address %pap less than offset %pap\n"

	.comm	_SZ_1M,8,3                      ; @SZ_1M
l_.str.1:                               ; @.str.1
	.asciz	"axi %pap or pci %pap not aligned\n"

l_.str.2:                               ; @.str.2
	.asciz	"unable to configure outbound mapping\n"

l_.str.3:                               ; @.str.3
	.asciz	"axi %pap, axi offset %pap, pci %pap, res size %pap\n"

	.no_dead_strip	_iproc_pcie_setup_ob
.subsections_via_symbols
