	.file	"extr_tcp.c_sc_alloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"alloced\n"
	.text
	.p2align 4
	.type	sc_alloc, @function
sc_alloc:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR GFP_NOFS[rip]
	call	alloc_page@PLT
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, 56
	mov	rbp, rax
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
	test	rbp, rbp
	je	.L4
	lea	rdi, 48[rax]
	call	kref_init@PLT
	mov	rdi, rbx
	call	o2nm_node_get@PLT
	mov	QWORD PTR 40[r12], rbx
	mov	esi, DWORD PTR o2net_sc_connect_completed[rip]
	lea	rdi, 36[r12]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR o2net_rx_until_empty[rip]
	lea	rdi, 32[r12]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR o2net_shutdown_sc[rip]
	lea	rdi, 28[r12]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR o2net_sc_send_keep_req[rip]
	lea	rdi, 24[r12]
	call	INIT_DELAYED_WORK@PLT
	lea	rdi, 8[r12]
	call	init_timer@PLT
	mov	eax, DWORD PTR o2net_idle_timer[rip]
	mov	QWORD PTR 8[r12], r12
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 16[r12], eax
	call	sclog@PLT
	mov	QWORD PTR [r12], rbp
	mov	rdi, r12
	call	o2net_debug_add_sc@PLT
	xor	edi, edi
.L3:
	call	kfree@PLT
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	test	rbp, rbp
	je	.L4
	mov	rdi, rbp
	call	__free_page@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	kfree@PLT
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.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
.L4:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sc_alloc, .-sc_alloc
	.comm	o2net_shutdown_sc,4,4
	.comm	o2net_sc_send_keep_req,4,4
	.comm	o2net_sc_connect_completed,4,4
	.comm	o2net_rx_until_empty,4,4
	.comm	o2net_idle_timer,4,4
	.comm	GFP_NOFS,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_tcp.c_sc_alloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"alloced\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sc_alloc, %function
sc_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L7
	mov	r6, r0
	ldr	r0, [r4]
	bl	alloc_page
	mov	r7, r0
	ldr	r1, [r4]
	mov	r0, #36
	bl	kzalloc
	clz	r3, r7
	cmp	r0, #0
	lsr	r3, r3, #5
	movne	r5, r3
	moveq	r5, #1
	cmp	r5, #0
	mov	r4, r0
	bne	.L2
	add	r0, r0, #32
	bl	kref_init
	mov	r0, r6
	bl	o2nm_node_get
	ldr	r3, .L7+4
	str	r6, [r4, #28]
	ldr	r1, [r3]
	add	r0, r4, #24
	bl	INIT_WORK
	ldr	r3, .L7+8
	add	r0, r4, #20
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r3, .L7+12
	add	r0, r4, #16
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r3, .L7+16
	add	r0, r4, #12
	ldr	r1, [r3]
	bl	INIT_DELAYED_WORK
	add	r0, r4, #4
	bl	init_timer
	ldr	r3, .L7+20
	ldr	r1, .L7+24
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r4, #8]
	str	r4, [r4, #4]
	bl	sclog
	mov	r0, r4
	str	r7, [r4]
	bl	o2net_debug_add_sc
	mov	r0, r5
.L3:
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r7, #0
	beq	.L4
	mov	r0, r7
	bl	__free_page
	mov	r0, r4
	mov	r4, #0
	b	.L3
.L4:
	mov	r4, r7
	b	.L3
.L8:
	.align	2
.L7:
	.word	GFP_NOFS
	.word	o2net_sc_connect_completed
	.word	o2net_rx_until_empty
	.word	o2net_shutdown_sc
	.word	o2net_sc_send_keep_req
	.word	o2net_idle_timer
	.word	.LC0
	.size	sc_alloc, .-sc_alloc
	.comm	o2net_shutdown_sc,4,4
	.comm	o2net_sc_send_keep_req,4,4
	.comm	o2net_sc_connect_completed,4,4
	.comm	o2net_rx_until_empty,4,4
	.comm	o2net_idle_timer,4,4
	.comm	GFP_NOFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
