	.file	"extr_aic94xx_sds.c_asd_process_ctrl_a_user.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"couldn't find CTRL-A user settings section\n"
	.align 8
.LC1:
	.string	"Creating default CTRL-A user settings section\n"
	.align 8
.LC2:
	.string	"no mem for ctrla user settings section\n"
	.align 8
.LC3:
	.string	"couldn't read ctrla phy settings section\n"
	.align 8
.LC4:
	.string	"couldn't find ctrla phy settings struct\n"
	.align 8
.LC5:
	.string	"couldn't process ctrla phy settings\n"
	.text
	.p2align 4
	.type	asd_process_ctrl_a_user, @function
asd_process_ctrl_a_user:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR FLASH_DE_CTRL_A_USER[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rcx, 4[rsp]
	mov	rdx, rsp
	call	asd_find_flash_de@PLT
	test	eax, eax
	jne	.L23
	mov	r13d, DWORD PTR 4[rsp]
	test	r13d, r13d
	jne	.L4
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	ebx, ebx
	xor	ebp, ebp
	call	ASD_DPRINTK@PLT
	lea	rdi, .LC1[rip]
	call	ASD_DPRINTK@PLT
	mov	eax, DWORD PTR ASD_MAX_PHYS[rip]
	test	eax, eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR SAS_ADDR_SIZE[rip]
	add	ebp, 1
	add	rbx, 16
	mov	esi, DWORD PTR [r12]
	call	memcpy@PLT
	mov	DWORD PTR -16[rbx], 152
	mov	DWORD PTR -12[rbx], 0
	mov	DWORD PTR -8[rbx], 0
	cmp	DWORD PTR ASD_MAX_PHYS[rip], ebp
	jg	.L5
.L6:
	mov	DWORD PTR 4[rsp], 16
	mov	r13d, 16
.L4:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, r13d
	mov	ebx, DWORD PTR ENOMEM[rip]
	call	kmalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L25
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR [rsp]
	mov	rsi, rax
	mov	rdi, r12
	call	asd_read_flash_seg@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L26
	mov	esi, 104
	mov	edx, 255
	mov	rdi, rbp
	mov	r13d, DWORD PTR ENOENT[rip]
	call	asd_find_ll_by_id@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L27
	mov	rdi, r12
	call	asd_process_ctrla_phy_settings@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L28
.L10:
.L7:
	endbr64
	mov	rdi, rbp
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC3[rip]
	call	ASD_DPRINTK@PLT
	mov	rdi, rbp
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	neg	ebx
	lea	rdi, .LC2[rip]
	mov	r13d, ebx
	call	ASD_DPRINTK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC5[rip]
	call	ASD_DPRINTK@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC4[rip]
	neg	r13d
	call	ASD_DPRINTK@PLT
	jmp	.L10
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	asd_process_ctrl_a_user, .-asd_process_ctrl_a_user
	.comm	SAS_ADDR_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FLASH_DE_CTRL_A_USER,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	ASD_MAX_PHYS,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_aic94xx_sds.c_asd_process_ctrl_a_user.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"couldn't find CTRL-A user settings section\012\000"
	.align	2
.LC1:
	.ascii	"Creating default CTRL-A user settings section\012\000"
	.align	2
.LC2:
	.ascii	"no mem for ctrla user settings section\012\000"
	.align	2
.LC3:
	.ascii	"couldn't read ctrla phy settings section\012\000"
	.align	2
.LC4:
	.ascii	"couldn't find ctrla phy settings struct\012\000"
	.align	2
.LC5:
	.ascii	"couldn't process ctrla phy settings\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asd_process_ctrl_a_user, %function
asd_process_ctrl_a_user:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L28
	sub	sp, sp, #16
	ldr	ip, .L28+4
	mov	r6, r0
	add	r2, sp, #4
	mov	r0, r1
	ldr	r1, [r3]
	add	r3, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	asd_find_flash_de
	cmp	r0, #0
	bne	.L22
	ldr	r4, [sp, #8]
	cmp	r4, #0
	bne	.L4
.L1:
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r0, .L28+8
	ldr	r8, .L28+12
	bl	ASD_DPRINTK
	ldr	r0, .L28+16
	bl	ASD_DPRINTK
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L6
	mov	r5, #0
	mov	r10, #152
	mov	r4, r5
	mov	r7, r5
	ldr	r9, .L28+20
.L5:
	ldr	r0, [r4, #12]
	ldr	r2, [r9]
	ldr	r1, [r6]
	bl	memcpy
	ldr	r3, [r8]
	add	r5, r5, #1
	cmp	r3, r5
	str	r10, [r4]
	str	r7, [r4, #4]
	str	r7, [r4, #8]
	add	r4, r4, #16
	bgt	.L5
.L6:
	mov	r4, #12
	str	r4, [sp, #8]
.L4:
	ldr	r2, .L28+24
	ldr	r3, .L28+28
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r4, [r3]
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L24
	ldmib	sp, {r2, r3}
	mov	r1, r5
	mov	r0, r6
	bl	asd_read_flash_seg
	subs	r4, r0, #0
	bne	.L25
	ldr	r3, .L28+32
	mov	r1, #104
	mov	r2, #255
	mov	r0, r5
	ldr	r4, [r3]
	bl	asd_find_ll_by_id
	subs	r1, r0, #0
	beq	.L26
	mov	r0, r6
	bl	asd_process_ctrla_phy_settings
	subs	r4, r0, #0
	bne	.L27
.L10:
.L7:
	mov	r0, r5
	bl	kfree
	b	.L1
.L25:
	ldr	r0, .L28+36
	bl	ASD_DPRINTK
	mov	r0, r5
	bl	kfree
	b	.L1
.L24:
	ldr	r0, .L28+40
	rsb	r4, r4, #0
	bl	ASD_DPRINTK
	b	.L1
.L27:
	ldr	r0, .L28+44
	bl	ASD_DPRINTK
	b	.L10
.L26:
	ldr	r0, .L28+48
	rsb	r4, r4, #0
	bl	ASD_DPRINTK
	b	.L10
.L23:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	FLASH_DE_CTRL_A_USER
	.word	.LC6
	.word	.LC0
	.word	ASD_MAX_PHYS
	.word	.LC1
	.word	SAS_ADDR_SIZE
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	ENOENT
	.word	.LC3
	.word	.LC2
	.word	.LC5
	.word	.LC4
	.size	asd_process_ctrl_a_user, .-asd_process_ctrl_a_user
	.comm	SAS_ADDR_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FLASH_DE_CTRL_A_USER,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	ASD_MAX_PHYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
