	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_pcie_ib_write
_iproc_pcie_ib_write:                   ## @iproc_pcie_ib_write
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%r8d, -44(%rbp)
	movl	%r9d, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_IPROC_PCIE_IARR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAP_REG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_iproc_pcie_reg_offset
	movq	%rax, %r15
	movq	_IPROC_PCIE_IMAP0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_MAP_REG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_iproc_pcie_reg_offset
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_iproc_pcie_reg_is_invalid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_iproc_pcie_reg_is_invalid
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-48(%rbp), %edi
	callq	_lower_32_bits
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_BIT
	orl	%eax, %ebx
	movq	(%r12), %rsi
	addq	%r15, %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	-48(%rbp), %edi
	callq	_upper_32_bits
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_readl
	movl	%eax, %r15d
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	callq	_readl
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, %edi
	callq	_ilog2
	movl	%eax, %ecx
	movl	16(%rbp), %edx
	sarl	%cl, %edx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.4:
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rsi
	addq	$8, %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	addq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_readl
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_lower_32_bits
	orl	%eax, %ebx
	movq	_IMAP_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r12), %rsi
	addq	%r13, %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	-44(%rbp), %edi
	callq	_upper_32_bits
	movq	(%r12), %rsi
	addq	%r13, %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	(%r12), %rdi
	addq	%r13, %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r13
	addl	%edx, -44(%rbp)
	incl	%r15d
	cmpl	%r15d, -52(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IPROC_PCIE_IARR0,4,2           ## @IPROC_PCIE_IARR0
	.comm	_IPROC_PCIE_IMAP0,4,2           ## @IPROC_PCIE_IMAP0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib region [%d]: offset 0x%x axi %pap pci %pap\n"

L_.str.1:                               ## @.str.1
	.asciz	"iarr lo 0x%x iarr hi 0x%x\n"

	.comm	_IMAP_VALID,4,2                 ## @IMAP_VALID
L_.str.2:                               ## @.str.2
	.asciz	"imap window [%d] lo 0x%x hi 0x%x\n"

	.no_dead_strip	_iproc_pcie_ib_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_pcie_ib_write
_iproc_pcie_ib_write:                   ; @iproc_pcie_ib_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x6
	mov	x19, x3
	mov	x26, x2
	mov	x24, x1
	mov	x20, x0
	stp	w5, w4, [sp, #24]
	ldp	x28, x21, [x0, #8]
Lloh0:
	adrp	x8, _IPROC_PCIE_IARR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPROC_PCIE_IARR0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MAP_REG
	mov	x1, x0
	mov	x0, x20
	bl	_iproc_pcie_reg_offset
	mov	x25, x0
Lloh3:
	adrp	x8, _IPROC_PCIE_IMAP0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPROC_PCIE_IMAP0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_MAP_REG
	mov	x1, x0
	mov	x0, x20
	bl	_iproc_pcie_reg_offset
	mov	x22, x0
	mov	x0, x25
	bl	_iproc_pcie_reg_is_invalid
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_iproc_pcie_reg_is_invalid
	cbz	x0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	add	x8, sp, #24
	add	x9, sp, #28
	stp	x9, x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	mov	x3, x25
	bl	_dev_dbg
	ldr	w0, [sp, #24]
	bl	_lower_32_bits
	mov	x27, x0
	mov	x0, x26
	bl	_BIT
	orr	w0, w0, w27
	ldr	x8, [x20]
	add	x1, x8, x25
	bl	_writel
	ldr	w0, [sp, #24]
	bl	_upper_32_bits
	ldr	x8, [x20]
	add	x26, x25, #4
	add	x1, x26, x8
	bl	_writel
	ldr	x8, [x20]
	add	x0, x8, x25
	bl	_readl
	mov	x25, x0
	ldr	x8, [x20]
	add	x0, x26, x8
	bl	_readl
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x25
	bl	_dev_dbg
	mov	x0, x19
	bl	_ilog2
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w25, #0
	sxtw	x8, w24
	asr	w26, w23, w0
	add	x27, x28, x8, lsl #4
	add	x28, x27, #8
Lloh13:
	adrp	x23, l_.str.2@PAGE
Lloh14:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_readl
	mov	x24, x0
	ldr	w0, [sp, #28]
	bl	_lower_32_bits
Lloh15:
	adrp	x8, _IMAP_VALID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IMAP_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w9, w0, w24
	orr	w0, w9, w8
	ldr	x8, [x20]
	add	x1, x8, x22
	bl	_writel
	ldr	w0, [sp, #28]
	bl	_upper_32_bits
	ldr	x8, [x20]
	ldr	x9, [x28]
	add	x8, x8, x22
	add	x1, x8, x9
	bl	_writel
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_readl
	mov	x24, x0
	ldr	x8, [x20]
	ldr	x9, [x28]
	add	x8, x8, x22
	add	x0, x8, x9
	bl	_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x25
	mov	x3, x24
	bl	_dev_dbg
	ldr	x8, [x27]
	add	x22, x8, x22
	ldr	w8, [sp, #28]
	add	w8, w8, w26
	str	w8, [sp, #28]
	add	w25, w25, #1
	cmp	w19, w25
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IPROC_PCIE_IARR0,4,2           ; @IPROC_PCIE_IARR0
	.comm	_IPROC_PCIE_IMAP0,4,2           ; @IPROC_PCIE_IMAP0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib region [%d]: offset 0x%x axi %pap pci %pap\n"

l_.str.1:                               ; @.str.1
	.asciz	"iarr lo 0x%x iarr hi 0x%x\n"

	.comm	_IMAP_VALID,4,2                 ; @IMAP_VALID
l_.str.2:                               ; @.str.2
	.asciz	"imap window [%d] lo 0x%x hi 0x%x\n"

	.no_dead_strip	_iproc_pcie_ib_write
.subsections_via_symbols
