	.file	"extr_ocs_hw.c_ocs_hw_get_profile_list_cb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocs_hw_get_profile_list_cb, @function
ocs_hw_get_profile_list_cb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r12, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 16[rsp], rdx
	mov	edx, DWORD PTR OCS_M_ZERO[rip]
	mov	DWORD PTR 28[rsp], esi
	mov	esi, 40
	call	ocs_malloc@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [r12]
	cmp	DWORD PTR OCS_HW_MAX_PROFILES[rip], eax
	mov	DWORD PTR 0[rbp], eax
	cmovle	eax, DWORD PTR OCS_HW_MAX_PROFILES[rip]
	test	eax, eax
	jle	.L2
	lea	ebx, -1[rax]
	xor	r14d, r14d
	xor	r15d, r15d
	add	rbx, 1
	sal	rbx, 4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rcx, QWORD PTR 8[r12]
	mov	rax, QWORD PTR 32[rbp]
	add	rcx, r15
	add	rax, r14
	add	r15, 16
	add	r14, 12
	mov	esi, DWORD PTR 12[rcx]
	mov	edi, DWORD PTR [rax]
	mov	DWORD PTR 8[rax], esi
	mov	esi, DWORD PTR 8[rcx]
	mov	DWORD PTR 4[rax], esi
	mov	rsi, QWORD PTR [rcx]
	call	ocs_strcpy@PLT
	cmp	rbx, r15
	jne	.L3
.L2:
	mov	rax, QWORD PTR 24[r13]
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR 16[r13]
	mov	edi, DWORD PTR 28[rsp]
	mov	rsi, rbp
	call	rax
.L5:
	mov	rbx, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR SLI4_BMBX_SIZE[rip]
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rbx]
	call	ocs_free@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rsi, 8[r13]
	call	ocs_dma_free@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r13
	mov	edx, 40
	call	ocs_free@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, 40
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	ocs_free@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ocs_hw_get_profile_list_cb, .-ocs_hw_get_profile_list_cb
	.comm	SLI4_BMBX_SIZE,4,4
	.comm	OCS_M_ZERO,4,4
	.comm	OCS_HW_MAX_PROFILES,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_ocs_hw.c_ocs_hw_get_profile_list_cb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocs_hw_get_profile_list_cb, %function
ocs_hw_get_profile_list_cb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, .L9
	mov	r8, r0
	mov	r10, r1
	mov	r9, r2
	mov	r1, #20
	ldr	r2, [r3]
	ldr	r0, [r0]
	ldr	fp, [r7, #4]
	bl	ocs_malloc
	ldr	r2, .L9+4
	ldr	r3, [fp]
	ldr	r5, [r2]
	mov	r6, r0
	cmp	r3, r5
	movlt	r5, r3
	cmp	r5, #0
	str	r3, [r0]
	ble	.L2
	mov	r4, #0
.L3:
	ldr	r1, [fp, #4]
	add	ip, r4, r4, lsl #1
	ldr	r3, [r6, #16]
	add	r2, r1, ip, lsl #2
	ldmib	r2, {r0, lr}
	add	r2, r3, ip, lsl #2
	ldr	r1, [r1, ip, lsl #2]
	add	r4, r4, #1
	stmib	r2, {r0, lr}
	ldr	r0, [r3, ip, lsl #2]
	bl	ocs_strcpy
	cmp	r5, r4
	bne	.L3
.L2:
	ldr	r3, [r7, #12]
	mov	r1, r6
	cmp	r3, #0
	beq	.L4
	mov	r0, r10
	ldr	r2, [r7, #8]
	blx	r3
.L5:
	ldr	r3, .L9+8
	mov	r1, r9
	ldr	r2, [r3]
	ldr	r0, [r8]
	bl	ocs_free
	add	r1, r7, #4
	ldr	r0, [r8]
	bl	ocs_dma_free
	mov	r1, r7
	mov	r2, #20
	ldr	r0, [r8]
	bl	ocs_free
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r2, #20
	ldr	r0, [r8]
	bl	ocs_free
	b	.L5
.L10:
	.align	2
.L9:
	.word	OCS_M_ZERO
	.word	OCS_HW_MAX_PROFILES
	.word	SLI4_BMBX_SIZE
	.size	ocs_hw_get_profile_list_cb, .-ocs_hw_get_profile_list_cb
	.comm	SLI4_BMBX_SIZE,4,4
	.comm	OCS_M_ZERO,4,4
	.comm	OCS_HW_MAX_PROFILES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
