	.file	"extr_dm-log-userspace-transfer.c_dm_ulog_tfr_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dmlogusr"
	.text
	.p2align 4
	.globl	dm_ulog_tfr_init
	.type	dm_ulog_tfr_init, @function
dm_ulog_tfr_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, receiving_list[rip]
	call	INIT_LIST_HEAD@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR DM_ULOG_PREALLOCED_SIZE[rip]
	call	kmalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR cn_ulog_callback[rip]
	mov	QWORD PTR prealloced_cn_msg[rip], rax
	lea	rsi, .LC0[rip]
	add	rax, 4
	lea	rdi, ulog_cn_id[rip]
	mov	QWORD PTR prealloced_ulog_tfr[rip], rax
	call	cn_add_callback@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR prealloced_cn_msg[rip]
	call	kfree@PLT
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dm_ulog_tfr_init, .-dm_ulog_tfr_init
	.comm	ulog_cn_id,4,4
	.comm	receiving_list,4,4
	.comm	prealloced_ulog_tfr,8,8
	.comm	prealloced_cn_msg,8,8
	.comm	cn_ulog_callback,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DM_ULOG_PREALLOCED_SIZE,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_dm-log-userspace-transfer.c_dm_ulog_tfr_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dmlogusr\000"
	.text
	.align	2
	.global	dm_ulog_tfr_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm_ulog_tfr_init, %function
dm_ulog_tfr_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, .L11
	bl	INIT_LIST_HEAD
	ldr	r2, .L11+4
	ldr	r3, .L11+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	kmalloc
	cmp	r0, #0
	beq	.L9
	ldr	r2, .L11+12
	ldr	r5, .L11+16
	ldr	r3, .L11+20
	add	ip, r0, #4
	str	r0, [r5]
	ldr	r2, [r2]
	ldr	r1, .L11+24
	ldr	r0, .L11+28
	str	ip, [r3]
	bl	cn_add_callback
	subs	r4, r0, #0
	bne	.L10
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L11+32
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, [r5]
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	receiving_list
	.word	GFP_KERNEL
	.word	DM_ULOG_PREALLOCED_SIZE
	.word	cn_ulog_callback
	.word	prealloced_cn_msg
	.word	prealloced_ulog_tfr
	.word	.LC0
	.word	ulog_cn_id
	.word	ENOMEM
	.size	dm_ulog_tfr_init, .-dm_ulog_tfr_init
	.comm	ulog_cn_id,4,4
	.comm	receiving_list,4,4
	.comm	prealloced_ulog_tfr,4,4
	.comm	prealloced_cn_msg,4,4
	.comm	cn_ulog_callback,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DM_ULOG_PREALLOCED_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
