	.file	"extr_budget-ci.c_budget_ci_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"budget_ci: %p\n"
	.text
	.p2align 4
	.type	budget_ci_attach, @function
budget_ci_attach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 8
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	kzalloc@PLT
	test	rax, rax
	je	.L8
	mov	rbp, rax
	mov	rdx, rax
	mov	edi, 2
	lea	rsi, .LC0[rip]
	call	dprintk@PLT
	mov	QWORD PTR [r12], rbp
	mov	rsi, r12
	mov	rdx, r13
	mov	r8d, DWORD PTR adapter_nr[rip]
	mov	ecx, DWORD PTR THIS_MODULE[rip]
	mov	rdi, rbp
	call	ttpci_budget_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
.L4:
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	msp430_ir_init@PLT
	mov	rdi, rbp
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	call	ciintf_init@PLT
	mov	QWORD PTR 0[rbp], rbp
	mov	rdi, rbp
	call	frontend_init@PLT
	mov	rdi, rbp
	call	ttpci_budget_init_hooks@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	ttpci_budget_deinit@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	budget_ci_attach, .-budget_ci_attach
	.comm	adapter_nr,4,4
	.comm	THIS_MODULE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_budget-ci.c_budget_ci_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"budget_ci: %p\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	budget_ci_attach, %function
budget_ci_attach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	mov	r5, r0
	mov	r6, r1
	mov	r0, #4
	ldr	r1, [r3]
	sub	sp, sp, #8
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L8
	mov	r2, r4
	ldr	r1, .L11+4
	mov	r0, #2
	bl	dprintk
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r0, [r2]
	str	r4, [r5]
	str	r0, [sp]
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	ldr	r3, [r3]
	bl	ttpci_budget_init
	subs	r5, r0, #0
	beq	.L9
.L4:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r4
	bl	msp430_ir_init
	subs	r5, r0, #0
	mov	r0, r4
	bne	.L10
	bl	ciintf_init
	mov	r0, r4
	str	r4, [r4]
	bl	frontend_init
	mov	r0, r4
	bl	ttpci_budget_init_hooks
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L11+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	bl	ttpci_budget_deinit
	b	.L4
.L12:
	.align	2
.L11:
	.word	GFP_KERNEL
	.word	.LC0
	.word	adapter_nr
	.word	THIS_MODULE
	.word	ENOMEM
	.size	budget_ci_attach, .-budget_ci_attach
	.comm	adapter_nr,4,4
	.comm	THIS_MODULE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
