	.file	"extr_hpi6205.c_subsys_create_adapter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" subsys_create_adapter\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"can't get mem for adapter object\n"
	.text
	.p2align 4
	.type	subsys_create_adapter, @function
subsys_create_adapter:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR DEBUG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	call	HPI_DEBUG_LOG@PLT
	mov	edx, 16
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kzalloc@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, 12[rsp]
	mov	rdi, r12
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 24[rsp], eax
	call	create_adapter_obj@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR [rbx], 0
	mov	QWORD PTR 8[rbx], rax
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC1[rip]
	call	HPI_DEBUG_LOG@PLT
	mov	rax, QWORD PTR HPI_ERROR_MEMORY_ALLOC[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	call	delete_adapter_obj@PLT
	cmp	QWORD PTR HPI_ERROR_BACKEND_BASE[rip], rbp
	jg	.L5
	mov	rax, QWORD PTR HPI_ERROR_DSP_BOOTLOAD[rip]
	mov	QWORD PTR 24[rbx], rbp
	mov	QWORD PTR [rbx], rax
.L6:
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 16[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	QWORD PTR [rbx], rbp
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	subsys_create_adapter, .-subsys_create_adapter
	.comm	HPI_ERROR_MEMORY_ALLOC,8,8
	.comm	HPI_ERROR_DSP_BOOTLOAD,8,8
	.comm	HPI_ERROR_BACKEND_BASE,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ERROR,4,4
	.comm	DEBUG,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_hpi6205.c_subsys_create_adapter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" subsys_create_adapter\012\000"
	.align	2
.LC1:
	.ascii	"can't get mem for adapter object\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	subsys_create_adapter, %function
subsys_create_adapter:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L14
	ldr	r3, .L14+4
	sub	sp, sp, #28
	mov	r5, r0
	mov	r4, r1
	ldr	r0, [r2]
	ldr	r1, .L14+8
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	HPI_DEBUG_LOG
	mov	r3, #0
	ldr	r2, .L14+12
	mov	r0, #4
	ldr	r1, [r2]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [sp, #16]
	beq	.L11
	ldr	r3, [r5]
	mov	r1, sp
	ldr	r3, [r3]
	add	r0, sp, #4
	str	r3, [sp, #12]
	bl	create_adapter_obj
	subs	r5, r0, #0
	bne	.L12
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	str	r5, [r4]
	str	r2, [r4, #8]
	str	r3, [r4, #4]
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	ldr	r3, .L14+16
	ldr	r1, .L14+20
	ldr	r0, [r3]
	bl	HPI_DEBUG_LOG
	ldr	r3, .L14+24
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L1
.L12:
	add	r0, sp, #4
	bl	delete_adapter_obj
	ldr	r3, .L14+28
	ldr	r3, [r3]
	cmp	r3, r5
	ldrle	r3, .L14+32
	strle	r5, [r4, #16]
	ldrle	r3, [r3]
	strgt	r5, [r4]
	strle	r3, [r4]
	ldr	r3, [sp]
	str	r3, [r4, #12]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	DEBUG
	.word	.LC2
	.word	.LC0
	.word	GFP_KERNEL
	.word	ERROR
	.word	.LC1
	.word	HPI_ERROR_MEMORY_ALLOC
	.word	HPI_ERROR_BACKEND_BASE
	.word	HPI_ERROR_DSP_BOOTLOAD
	.size	subsys_create_adapter, .-subsys_create_adapter
	.comm	HPI_ERROR_MEMORY_ALLOC,4,4
	.comm	HPI_ERROR_DSP_BOOTLOAD,4,4
	.comm	HPI_ERROR_BACKEND_BASE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ERROR,4,4
	.comm	DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
