	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_ob_windows
_program_ob_windows:                    ## @program_ob_windows
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	cmpl	%esi, (%rdi)
	jle	LBB0_2
## %bb.1:
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movl	%esi, %r14d
	negl	%r13d
	movl	%esi, %edi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_PAB_AXI_AMAP_CTRL
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_csr_readl
	movq	_WIN_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_WIN_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_WIN_SIZE_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_WIN_ENABLE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	shll	%cl, %r15d
	btsl	%eax, %r15d
	movl	%r13d, %edi
	callq	_lower_32_bits
	movq	_WIN_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r14d, %edi
	callq	_PAB_AXI_AMAP_CTRL
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csr_writel
	movl	%r13d, %edi
	callq	_upper_32_bits
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_PAB_EXT_AXI_AMAP_SIZE
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csr_writel
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_lower_32_bits
	movq	_AXI_WINDOW_ALIGN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PAB_AXI_AMAP_AXI_WIN
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_csr_writel
	movl	%r15d, %edi
	callq	_upper_32_bits
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PAB_EXT_AXI_AMAP_AXI_WIN
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_csr_writel
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_lower_32_bits
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_PAB_AXI_AMAP_PEX_WIN_L
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csr_writel
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PAB_AXI_AMAP_PEX_WIN_H
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_csr_writel
	incl	4(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: max outbound windows reached !\n"

	.comm	_WIN_TYPE_MASK,4,2              ## @WIN_TYPE_MASK
	.comm	_WIN_TYPE_SHIFT,4,2             ## @WIN_TYPE_SHIFT
	.comm	_WIN_SIZE_MASK,4,2              ## @WIN_SIZE_MASK
	.comm	_WIN_ENABLE_SHIFT,4,2           ## @WIN_ENABLE_SHIFT
	.comm	_AXI_WINDOW_ALIGN_MASK,4,2      ## @AXI_WINDOW_ALIGN_MASK
	.no_dead_strip	_program_ob_windows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_ob_windows
_program_ob_windows:                    ; @program_ob_windows
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	neg	w24, w5
	mov	x0, x1
	bl	_PAB_AXI_AMAP_CTRL
	mov	x1, x0
	mov	x0, x19
	bl	_csr_readl
Lloh0:
	adrp	x8, _WIN_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIN_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WIN_TYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WIN_TYPE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x25, _WIN_SIZE_MASK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _WIN_SIZE_MASK@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w8, w8, w10
Lloh8:
	adrp	x10, _WIN_ENABLE_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WIN_ENABLE_SHIFT@GOTPAGEOFF]
	bic	w26, w0, w8
Lloh10:
	ldr	w8, [x10]
	mov	w10, #1
	lsl	w8, w10, w8
	lsl	w9, w23, w9
	orr	w23, w8, w9
	mov	x0, x24
	bl	_lower_32_bits
	ldr	w8, [x25]
	and	w8, w8, w0
	orr	w9, w23, w26
	orr	w23, w9, w8
	mov	x0, x20
	bl	_PAB_AXI_AMAP_CTRL
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_csr_writel
	mov	x0, x24
	bl	_upper_32_bits
	mov	x23, x0
	mov	x0, x20
	bl	_PAB_EXT_AXI_AMAP_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_csr_writel
	mov	x0, x22
	bl	_lower_32_bits
Lloh11:
	adrp	x8, _AXI_WINDOW_ALIGN_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AXI_WINDOW_ALIGN_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w23, w0, w8
	mov	x0, x20
	bl	_PAB_AXI_AMAP_AXI_WIN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_csr_writel
	mov	x0, x22
	bl	_upper_32_bits
	mov	x22, x0
	mov	x0, x20
	bl	_PAB_EXT_AXI_AMAP_AXI_WIN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_csr_writel
	mov	x0, x21
	bl	_lower_32_bits
	mov	x22, x0
	mov	x0, x20
	bl	_PAB_AXI_AMAP_PEX_WIN_L
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_csr_writel
	mov	x0, x21
	bl	_upper_32_bits
	mov	x21, x0
	mov	x0, x20
	bl	_PAB_AXI_AMAP_PEX_WIN_H
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_csr_writel
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: max outbound windows reached !\n"

	.comm	_WIN_TYPE_MASK,4,2              ; @WIN_TYPE_MASK
	.comm	_WIN_TYPE_SHIFT,4,2             ; @WIN_TYPE_SHIFT
	.comm	_WIN_SIZE_MASK,4,2              ; @WIN_SIZE_MASK
	.comm	_WIN_ENABLE_SHIFT,4,2           ; @WIN_ENABLE_SHIFT
	.comm	_AXI_WINDOW_ALIGN_MASK,4,2      ; @AXI_WINDOW_ALIGN_MASK
	.no_dead_strip	_program_ob_windows
.subsections_via_symbols
