	.file	"extr_dpaa2-eth.c_alloc_channel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"dpcon_get_attributes() failed\n"
	.text
	.p2align 4
	.type	alloc_channel, @function
alloc_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, 24
	mov	r13, QWORD PTR [rax]
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, r14
	call	setup_dpcon@PLT
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	call	IS_ERR_OR_NULL@PLT
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR [r14]
	mov	rcx, rsp
	xor	esi, esi
	mov	edx, DWORD PTR [rax]
	call	dpcon_get_attributes@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 8[r12], r14
	mov	QWORD PTR 16[r12], rax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	call	PTR_ERR_OR_ZERO@PLT
	mov	ebp, eax
.L4:
	mov	rdi, r12
	call	kfree@PLT
	mov	edi, ebp
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	rsi, QWORD PTR [r12]
	mov	rdi, r14
	call	free_dpcon@PLT
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alloc_channel, .-alloc_channel
	.comm	GFP_KERNEL,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_dpaa2-eth.c_alloc_channel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dpcon_get_attributes() failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_channel, %function
alloc_channel:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L15
	ldr	r3, [r0, #4]
	ldr	r1, [r2]
	ldr	r2, .L15+4
	sub	sp, sp, #20
	mov	r6, r0
	mov	r0, #16
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r7, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r6
	bl	setup_dpcon
	str	r0, [r4]
	bl	IS_ERR_OR_NULL
	subs	r1, r0, #0
	bne	.L12
	ldr	r3, [r4]
	ldr	r0, [r6]
	ldr	r2, [r3]
	add	r3, sp, #4
	bl	dpcon_get_attributes
	subs	r5, r0, #0
	bne	.L13
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	str	r2, [r4, #12]
	str	r6, [r4, #4]
	str	r3, [r4, #8]
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	ldr	r0, [r4]
	bl	PTR_ERR_OR_ZERO
	mov	r5, r0
.L4:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	bl	ERR_PTR
	mov	r4, r0
	b	.L1
.L13:
	mov	r0, r7
	ldr	r1, .L15+8
	bl	dev_err
	mov	r0, r6
	ldr	r1, [r4]
	bl	free_dpcon
	b	.L4
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	GFP_KERNEL
	.word	.LC1
	.word	.LC0
	.size	alloc_channel, .-alloc_channel
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
