	.file	"extr_idt77252.c_open_card_ubr0.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: can't alloc vc\n"
.LC1:
	.string	"%s: can't get SCQ.\n"
	.text
	.p2align 4
	.type	open_card_ubr0, @function
open_card_ubr0:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, 24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L7
	mov	r12, rax
	mov	esi, DWORD PTR SCHED_UBR0[rip]
	mov	rax, QWORD PTR 32[rbp]
	mov	rdi, rbp
	mov	QWORD PTR [rax], r12
	mov	DWORD PTR 4[r12], esi
	call	alloc_scq@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rsi, rax
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR 4[r12]
	mov	rdi, rbp
	mov	QWORD PTR [rax], r12
	mov	eax, DWORD PTR 0[rbp]
	mov	QWORD PTR 16[r12], 0
	mov	DWORD PTR [rsi], eax
	call	fill_scd@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rbp
	or	edx, DWORD PTR TCT_UBR[rip]
	call	write_sram@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	edx, edx
	lea	rsi, 1[rax]
	call	write_sram@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	edx, edx
	lea	rsi, 2[rax]
	call	write_sram@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	edx, edx
	lea	rsi, 3[rax]
	call	write_sram@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	edx, edx
	lea	rsi, 4[rax]
	call	write_sram@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	edx, edx
	lea	rsi, 5[rax]
	call	write_sram@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	edx, edx
	lea	rsi, 6[rax]
	call	write_sram@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR TCT_FLAG_UBR[rip]
	mov	rdi, rbp
	lea	rsi, 7[rax]
	call	write_sram@PLT
	mov	edi, DWORD PTR VCF_IDLE[rip]
	mov	rsi, r12
	call	clear_bit@PLT
	mov	esi, DWORD PTR SAR_REG_TCMDQ[rip]
	mov	edi, DWORD PTR TCMDQ_START[rip]
	call	writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rbp]
	lea	rdi, .LC0[rip]
	call	printk@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rbp]
	lea	rdi, .LC1[rip]
	call	printk@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	open_card_ubr0, .-open_card_ubr0
	.comm	VCF_IDLE,4,4
	.comm	TCT_UBR,4,4
	.comm	TCT_FLAG_UBR,4,4
	.comm	TCMDQ_START,4,4
	.comm	SCHED_UBR0,4,4
	.comm	SAR_REG_TCMDQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_idt77252.c_open_card_ubr0.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: can't alloc vc\012\000"
	.align	2
.LC1:
	.ascii	"%s: can't get SCQ.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_card_ubr0, %function
open_card_ubr0:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r4, r0
	mov	r0, #16
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L7
	ldr	r2, .L9+4
	ldr	r3, [r4, #16]
	ldr	r1, [r2]
	mov	r0, r4
	str	r5, [r3]
	str	r1, [r5, #4]
	bl	alloc_scq
	cmp	r0, #0
	str	r0, [r5, #8]
	beq	.L8
	mov	r6, #0
	ldr	r2, [r4, #8]
	ldr	r3, [r4]
	mov	r1, r0
	str	r5, [r2]
	ldr	r2, [r5, #4]
	str	r6, [r5, #12]
	str	r3, [r0]
	mov	r0, r4
	bl	fill_scd
	ldr	r3, .L9+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	orr	r2, r2, r3
	mov	r0, r4
	bl	write_sram
	ldr	r1, [r4, #4]
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, #1
	bl	write_sram
	ldr	r1, [r4, #4]
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, #2
	bl	write_sram
	ldr	r1, [r4, #4]
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, #3
	bl	write_sram
	ldr	r1, [r4, #4]
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, #4
	bl	write_sram
	ldr	r1, [r4, #4]
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, #5
	bl	write_sram
	ldr	r1, [r4, #4]
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, #6
	bl	write_sram
	ldr	r3, .L9+12
	ldr	r1, [r4, #4]
	ldr	r2, [r3]
	mov	r0, r4
	add	r1, r1, #7
	bl	write_sram
	ldr	r3, .L9+16
	mov	r1, r5
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r2, .L9+20
	ldr	r3, .L9+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	writel
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r1, [r4, #12]
	ldr	r0, .L9+28
	bl	printk
	ldr	r3, .L9+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r1, [r4, #12]
	ldr	r0, .L9+36
	bl	printk
	ldr	r3, .L9+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	SCHED_UBR0
	.word	TCT_UBR
	.word	TCT_FLAG_UBR
	.word	VCF_IDLE
	.word	SAR_REG_TCMDQ
	.word	TCMDQ_START
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.size	open_card_ubr0, .-open_card_ubr0
	.comm	VCF_IDLE,4,4
	.comm	TCT_UBR,4,4
	.comm	TCT_FLAG_UBR,4,4
	.comm	TCMDQ_START,4,4
	.comm	SCHED_UBR0,4,4
	.comm	SAR_REG_TCMDQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
