	.file	"extr_main.c_ssb_bus_powerup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Bus powerup failed\n"
	.text
	.p2align 4
	.globl	ssb_bus_powerup
	.type	ssb_bus_powerup, @function
ssb_bus_powerup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	mov	esi, DWORD PTR SSB_GPIO_XTAL[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	or	esi, DWORD PTR SSB_GPIO_PLL[rip]
	mov	rbx, rdi
	call	ssb_pci_xtal@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	DWORD PTR [rbx], 1
	test	ebp, ebp
	mov	esi, DWORD PTR SSB_CLKMODE_DYNAMIC[rip]
	lea	rdi, 4[rbx]
	cmove	esi, DWORD PTR SSB_CLKMODE_FAST[rip]
	call	ssb_chipco_set_clockmode@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ssb_bus_powerup, .-ssb_bus_powerup
	.comm	SSB_GPIO_XTAL,4,4
	.comm	SSB_GPIO_PLL,4,4
	.comm	SSB_CLKMODE_FAST,4,4
	.comm	SSB_CLKMODE_DYNAMIC,4,4
	.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_main.c_ssb_bus_powerup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Bus powerup failed\012\000"
	.text
	.align	2
	.global	ssb_bus_powerup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssb_bus_powerup, %function
ssb_bus_powerup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L9
	mov	r6, r1
	ldr	r1, .L9+4
	mov	r5, r0
	ldr	ip, [r1]
	ldr	r1, [r2]
	mov	r2, #1
	orr	r1, ip, r1
	bl	ssb_pci_xtal
	subs	r4, r0, #0
	bne	.L8
	mov	r3, #1
	cmp	r6, #0
	str	r3, [r5]
	ldrne	r3, .L9+8
	ldreq	r3, .L9+12
	add	r0, r5, #4
	ldr	r1, [r3]
	bl	ssb_chipco_set_clockmode
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, .L9+16
	bl	pr_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	SSB_GPIO_PLL
	.word	SSB_GPIO_XTAL
	.word	SSB_CLKMODE_DYNAMIC
	.word	SSB_CLKMODE_FAST
	.word	.LC0
	.size	ssb_bus_powerup, .-ssb_bus_powerup
	.comm	SSB_GPIO_XTAL,4,4
	.comm	SSB_GPIO_PLL,4,4
	.comm	SSB_CLKMODE_FAST,4,4
	.comm	SSB_CLKMODE_DYNAMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
