	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_pcie_ob_write
_iproc_pcie_ob_write:                   ## @iproc_pcie_ob_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, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	%ecx, -60(%rbp)
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_IPROC_PCIE_OARR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAP_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_iproc_pcie_reg_offset
	movq	%rax, %rbx
	movq	_IPROC_PCIE_OMAP0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MAP_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_iproc_pcie_reg_offset
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_iproc_pcie_reg_is_invalid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iproc_pcie_reg_is_invalid
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r15d, %edi
	callq	_lower_32_bits
	movq	_OARR_SIZE_CFG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	orl	%eax, %r14d
	movq	_OARR_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	(%r13), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_writel
	movl	%r15d, %edi
	callq	_upper_32_bits
	movq	%rbx, %rcx
	addq	$4, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rsi
	addq	%rcx, %rsi
	movl	%eax, %edi
	callq	_writel
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	(%r13), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %rsi
	movl	%eax, %edi
	callq	_writel
	movl	%ebx, %edi
	callq	_upper_32_bits
	addq	$4, %r14
	movq	(%r13), %rsi
	addq	%r14, %rsi
	movl	%eax, %edi
	callq	_writel
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	xorl	%ebx, %ebx
	leaq	-60(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movl	%r12d, %edx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r13), %rdi
	addq	%r12, %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	addq	(%r13), %rdi
	callq	_readl
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r13), %rdi
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_readl
	movl	%eax, %r15d
	addq	(%r13), %r14
	movq	%r14, %rdi
	callq	_readl
	leaq	L_.str.2(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_IPROC_PCIE_OARR0,4,2           ## @IPROC_PCIE_OARR0
	.comm	_IPROC_PCIE_OMAP0,4,2           ## @IPROC_PCIE_OMAP0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OARR_SIZE_CFG_SHIFT,4,2        ## @OARR_SIZE_CFG_SHIFT
	.comm	_OARR_VALID,4,2                 ## @OARR_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ob window [%d]: offset 0x%x axi %pap pci %pap\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"omap lo 0x%x omap hi 0x%x\n"

	.no_dead_strip	_iproc_pcie_ob_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_ob_write
_iproc_pcie_ob_write:                   ; @iproc_pcie_ob_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x21, x1
	mov	x20, x0
	stp	w4, w3, [sp, #24]
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _IPROC_PCIE_OARR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPROC_PCIE_OARR0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MAP_REG
	mov	x1, x0
	mov	x0, x20
	bl	_iproc_pcie_reg_offset
	mov	x23, x0
Lloh3:
	adrp	x8, _IPROC_PCIE_OMAP0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPROC_PCIE_OMAP0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_MAP_REG
	mov	x1, x0
	mov	x0, x20
	bl	_iproc_pcie_reg_offset
	mov	x22, x0
	mov	x0, x23
	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, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x0, x25
	bl	_lower_32_bits
Lloh9:
	adrp	x8, _OARR_SIZE_CFG_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OARR_SIZE_CFG_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w26, w8
	orr	w8, w8, w0
Lloh12:
	adrp	x9, _OARR_VALID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OARR_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x20]
	add	x1, x8, x23
	bl	_writel
	mov	x0, x25
	bl	_upper_32_bits
	ldr	x8, [x20]
	add	x25, x23, #4
	add	x1, x25, x8
	bl	_writel
	mov	x0, x24
	bl	_lower_32_bits
	ldr	x8, [x20]
	add	x1, x8, x22
	bl	_writel
	mov	x0, x24
	bl	_upper_32_bits
	ldr	x8, [x20]
	add	x24, x22, #4
	add	x1, x24, x8
	bl	_writel
	add	x8, sp, #24
	add	x9, sp, #28
	stp	x9, x8, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x23
	bl	_dev_dbg
	ldr	x8, [x20]
	add	x0, x8, x23
	bl	_readl
	mov	x21, x0
	ldr	x8, [x20]
	add	x0, x25, x8
	bl	_readl
	mov	x3, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_readl
	mov	x21, x0
	ldr	x8, [x20]
	add	x0, x24, x8
	bl	_readl
	mov	x3, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPROC_PCIE_OARR0,4,2           ; @IPROC_PCIE_OARR0
	.comm	_IPROC_PCIE_OMAP0,4,2           ; @IPROC_PCIE_OMAP0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OARR_SIZE_CFG_SHIFT,4,2        ; @OARR_SIZE_CFG_SHIFT
	.comm	_OARR_VALID,4,2                 ; @OARR_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ob window [%d]: offset 0x%x axi %pap pci %pap\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"omap lo 0x%x omap hi 0x%x\n"

	.no_dead_strip	_iproc_pcie_ob_write
.subsections_via_symbols
