	.file	"extr_layla24_dsp.c_load_asic.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	load_asic, @function
load_asic:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 8[rdi], 0
	mov	eax, 1
	je	.L9
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, 10
	call	mdelay@PLT
	mov	edx, DWORD PTR FW_LAYLA24_1_ASIC[rip]
	mov	esi, DWORD PTR DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC[rip]
	mov	rdi, rbp
	call	load_asic_generic@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR FW_LAYLA24_2S_ASIC[rip]
	mov	edi, 10
	mov	DWORD PTR 0[rbp], eax
	call	mdelay@PLT
	mov	edx, DWORD PTR FW_LAYLA24_2S_ASIC[rip]
	mov	esi, DWORD PTR DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC[rip]
	mov	rdi, rbp
	call	load_asic_generic@PLT
	test	eax, eax
	js	.L1
	mov	edi, 10
	call	mdelay@PLT
	mov	rdi, rbp
	call	check_asic_status@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR GML_CONVERTER_ENABLE[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	mov	edx, 1
	or	esi, DWORD PTR GML_48KHZ[rip]
	jmp	write_control_reg@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	load_asic, .-load_asic
	.comm	GML_CONVERTER_ENABLE,4,4
	.comm	GML_48KHZ,4,4
	.comm	FW_LAYLA24_2S_ASIC,4,4
	.comm	FW_LAYLA24_1_ASIC,4,4
	.comm	DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC,4,4
	.comm	DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC,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_layla24_dsp.c_load_asic.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_asic, %function
load_asic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L9
	mov	r0, #1
	bx	lr
.L9:
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, #10
	bl	mdelay
	ldr	r3, .L10
	ldr	r2, .L10+4
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	load_asic_generic
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r5, .L10+8
	mov	r0, #10
	ldr	r3, [r5]
	str	r3, [r4]
	bl	mdelay
	ldr	r3, .L10+12
	mov	r0, r4
	ldr	r2, [r5]
	ldr	r1, [r3]
	bl	load_asic_generic
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r0, #10
	bl	mdelay
	mov	r0, r4
	bl	check_asic_status
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L10+16
	ldr	r3, .L10+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #1
	orr	r1, r1, r3
	b	write_control_reg
.L11:
	.align	2
.L10:
	.word	DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC
	.word	FW_LAYLA24_1_ASIC
	.word	FW_LAYLA24_2S_ASIC
	.word	DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC
	.word	GML_CONVERTER_ENABLE
	.word	GML_48KHZ
	.size	load_asic, .-load_asic
	.comm	GML_CONVERTER_ENABLE,4,4
	.comm	GML_48KHZ,4,4
	.comm	FW_LAYLA24_2S_ASIC,4,4
	.comm	FW_LAYLA24_1_ASIC,4,4
	.comm	DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC,4,4
	.comm	DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
