	.file	"extr_pci_schizo.c_schizo_pbm_hw_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no-bus-parking"
	.text
	.p2align 4
	.type	schizo_pbm_hw_init, @function
schizo_pbm_hw_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR SCHIZO_PCI_IRQ_RETRY[rip]
	add	rsi, QWORD PTR 16[rdi]
	mov	edi, 5
	call	upa_writeq@PLT
	mov	rdi, QWORD PTR SCHIZO_PCI_CTRL[rip]
	add	rdi, QWORD PTR 16[rbx]
	call	upa_readq@PLT
	or	al, -1
	mov	ebp, eax
	mov	rax, QWORD PTR PBM_CHIP_TYPE_TOMATILLO[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L12
.L2:
	mov	rax, QWORD PTR 24[rbx]
	xor	edx, edx
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	of_find_property@PLT
	test	eax, eax
	jne	.L3
	or	ebp, DWORD PTR SCHIZO_PCICTRL_PARK[rip]
.L4:
	mov	eax, DWORD PTR SCHIZO_PCICTRL_DTO_INT[rip]
	mov	rcx, QWORD PTR PBM_CHIP_TYPE_TOMATILLO[rip]
	mov	edi, eax
	not	edi
	and	edi, ebp
	cmp	QWORD PTR [rbx], rcx
	je	.L13
.L9:
	mov	rsi, QWORD PTR SCHIZO_PCI_CTRL[rip]
	add	rsi, QWORD PTR 16[rbx]
	call	upa_writeq@PLT
	mov	rdi, QWORD PTR SCHIZO_PCI_DIAG[rip]
	add	rdi, QWORD PTR 16[rbx]
	call	upa_readq@PLT
	mov	edi, DWORD PTR SCHIZO_PCIDIAG_D_RTRYARB[rip]
	or	edi, DWORD PTR SCHIZO_PCIDIAG_D_RETRY[rip]
	or	edi, DWORD PTR SCHIZO_PCIDIAG_D_INTSYNC[rip]
	mov	rsi, QWORD PTR SCHIZO_PCI_DIAG[rip]
	not	edi
	add	rsi, QWORD PTR 16[rbx]
	and	edi, eax
	call	upa_writeq@PLT
	mov	rax, QWORD PTR PBM_CHIP_TYPE_TOMATILLO[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR SCHIZO_PCICTRL_PARK[rip]
	not	eax
	and	ebp, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	DWORD PTR 8[rbx], 1
	jle	.L2
	mov	ecx, DWORD PTR SCHIZO_PCICTRL_PTO_SHIFT[rip]
	mov	eax, 3
	sal	rax, cl
	or	ebp, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	DWORD PTR 8[rbx], 1
	mov	edx, edi
	jg	.L8
	or	eax, ebp
	mov	edx, eax
.L8:
	mov	edi, DWORD PTR SCHIZO_PCICTRL_MRM_PREF[rip]
	or	edi, DWORD PTR SCHIZO_PCICTRL_RDO_PREF[rip]
	or	edi, DWORD PTR SCHIZO_PCICTRL_RDL_PREF[rip]
	or	edi, edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR TOMATILLO_IOC_PREF_OFF_SHIFT[rip]
	mov	rsi, QWORD PTR TOMATILLO_PCI_IOC_CSR[rip]
	mov	edi, DWORD PTR TOMATILLO_IOC_PART_WPENAB[rip]
	add	rsi, QWORD PTR 16[rbx]
	or	edi, DWORD PTR TOMATILLO_IOC_RDMULT_CPENAB[rip]
	or	edi, DWORD PTR TOMATILLO_IOC_RDONE_CPENAB[rip]
	or	edi, DWORD PTR TOMATILLO_IOC_RDLINE_CPENAB[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	bts	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	upa_writeq@PLT
	.cfi_endproc
.LFE0:
	.size	schizo_pbm_hw_init, .-schizo_pbm_hw_init
	.comm	TOMATILLO_PCI_IOC_CSR,8,8
	.comm	TOMATILLO_IOC_RDONE_CPENAB,4,4
	.comm	TOMATILLO_IOC_RDMULT_CPENAB,4,4
	.comm	TOMATILLO_IOC_RDLINE_CPENAB,4,4
	.comm	TOMATILLO_IOC_PREF_OFF_SHIFT,4,4
	.comm	TOMATILLO_IOC_PART_WPENAB,4,4
	.comm	SCHIZO_PCI_IRQ_RETRY,8,8
	.comm	SCHIZO_PCI_DIAG,8,8
	.comm	SCHIZO_PCI_CTRL,8,8
	.comm	SCHIZO_PCIDIAG_D_RTRYARB,4,4
	.comm	SCHIZO_PCIDIAG_D_RETRY,4,4
	.comm	SCHIZO_PCIDIAG_D_INTSYNC,4,4
	.comm	SCHIZO_PCICTRL_RDO_PREF,4,4
	.comm	SCHIZO_PCICTRL_RDL_PREF,4,4
	.comm	SCHIZO_PCICTRL_PTO_SHIFT,4,4
	.comm	SCHIZO_PCICTRL_PARK,4,4
	.comm	SCHIZO_PCICTRL_MRM_PREF,4,4
	.comm	SCHIZO_PCICTRL_DTO_INT,4,4
	.comm	PBM_CHIP_TYPE_TOMATILLO,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pci_schizo.c_schizo_pbm_hw_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no-bus-parking\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	schizo_pbm_hw_init, %function
schizo_pbm_hw_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L12
	ldr	r1, [r0, #8]
	ldr	r3, [r3]
	ldr	r7, .L12+4
	add	r1, r1, r3
	mov	r0, #5
	bl	upa_writeq
	ldr	r3, [r7]
	ldr	r0, [r4, #8]
	ldr	r6, .L12+8
	add	r0, r0, r3
	bl	upa_readq
	ldr	r2, [r4]
	ldr	r3, [r6]
	orr	r5, r0, #255
	cmp	r2, r3
	bne	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #1
	movgt	r2, #3
	ldrgt	r3, .L12+12
	ldrgt	r3, [r3]
	orrgt	r5, r5, r2, lsl r3
.L2:
	ldr	r3, [r4, #12]
	mov	r2, #0
	ldr	r0, [r3]
	ldr	r1, .L12+16
	bl	of_find_property
	ldr	r3, .L12+20
	cmp	r0, #0
	ldr	r0, [r3]
	ldr	r3, .L12+24
	ldr	r1, [r4]
	ldr	r2, [r6]
	bicne	r5, r5, r0
	orreq	r5, r5, r0
	ldr	r0, [r3]
	cmp	r1, r2
	bicne	r0, r5, r0
	bne	.L9
	ldr	r3, [r4, #4]
	ldr	r1, .L12+28
	ldr	r2, .L12+32
	cmp	r3, #1
	ldr	r3, .L12+36
	bicgt	r0, r5, r0
	orrle	r0, r0, r5
	ldr	r2, [r2]
	ldr	r5, [r1]
	ldr	r3, [r3]
	orr	r5, r5, r2
	orr	r5, r5, r3
	orr	r0, r5, r0
.L9:
	ldr	r3, [r7]
	ldr	r1, [r4, #8]
	ldr	r5, .L12+40
	add	r1, r1, r3
	bl	upa_writeq
	ldr	r3, [r5]
	ldr	r0, [r4, #8]
	add	r0, r0, r3
	bl	upa_readq
	ldr	r2, .L12+44
	ldr	r3, .L12+48
	ldr	r1, .L12+52
	ldr	lr, [r2]
	ldr	r3, [r3]
	ldr	ip, [r1]
	ldr	r2, [r5]
	ldr	r1, [r4, #8]
	orr	r3, r3, lr
	orr	r3, r3, ip
	add	r1, r1, r2
	bic	r0, r0, r3
	bl	upa_writeq
	ldr	r3, [r6]
	ldr	r2, [r4]
	cmp	r2, r3
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, #1
	ldr	r1, .L12+56
	ldr	r3, .L12+60
	ldr	r2, .L12+64
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, ip
	ldr	lr, .L12+68
	orr	r3, r3, r2
	ldr	r1, .L12+72
	ldr	r2, .L12+76
	ldr	lr, [lr]
	ldr	ip, [r4, #8]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, lr
	add	r1, ip, r1
	orr	r0, r3, r0, lsl r2
	pop	{r4, r5, r6, r7, r8, lr}
	b	upa_writeq
.L13:
	.align	2
.L12:
	.word	SCHIZO_PCI_IRQ_RETRY
	.word	SCHIZO_PCI_CTRL
	.word	PBM_CHIP_TYPE_TOMATILLO
	.word	SCHIZO_PCICTRL_PTO_SHIFT
	.word	.LC0
	.word	SCHIZO_PCICTRL_PARK
	.word	SCHIZO_PCICTRL_DTO_INT
	.word	SCHIZO_PCICTRL_MRM_PREF
	.word	SCHIZO_PCICTRL_RDO_PREF
	.word	SCHIZO_PCICTRL_RDL_PREF
	.word	SCHIZO_PCI_DIAG
	.word	SCHIZO_PCIDIAG_D_RETRY
	.word	SCHIZO_PCIDIAG_D_RTRYARB
	.word	SCHIZO_PCIDIAG_D_INTSYNC
	.word	TOMATILLO_IOC_RDMULT_CPENAB
	.word	TOMATILLO_IOC_PART_WPENAB
	.word	TOMATILLO_IOC_RDONE_CPENAB
	.word	TOMATILLO_IOC_RDLINE_CPENAB
	.word	TOMATILLO_PCI_IOC_CSR
	.word	TOMATILLO_IOC_PREF_OFF_SHIFT
	.size	schizo_pbm_hw_init, .-schizo_pbm_hw_init
	.comm	TOMATILLO_PCI_IOC_CSR,4,4
	.comm	TOMATILLO_IOC_RDONE_CPENAB,4,4
	.comm	TOMATILLO_IOC_RDMULT_CPENAB,4,4
	.comm	TOMATILLO_IOC_RDLINE_CPENAB,4,4
	.comm	TOMATILLO_IOC_PREF_OFF_SHIFT,4,4
	.comm	TOMATILLO_IOC_PART_WPENAB,4,4
	.comm	SCHIZO_PCI_IRQ_RETRY,4,4
	.comm	SCHIZO_PCI_DIAG,4,4
	.comm	SCHIZO_PCI_CTRL,4,4
	.comm	SCHIZO_PCIDIAG_D_RTRYARB,4,4
	.comm	SCHIZO_PCIDIAG_D_RETRY,4,4
	.comm	SCHIZO_PCIDIAG_D_INTSYNC,4,4
	.comm	SCHIZO_PCICTRL_RDO_PREF,4,4
	.comm	SCHIZO_PCICTRL_RDL_PREF,4,4
	.comm	SCHIZO_PCICTRL_PTO_SHIFT,4,4
	.comm	SCHIZO_PCICTRL_PARK,4,4
	.comm	SCHIZO_PCICTRL_MRM_PREF,4,4
	.comm	SCHIZO_PCICTRL_DTO_INT,4,4
	.comm	PBM_CHIP_TYPE_TOMATILLO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
