	.file	"143843.c"
	.intel_syntax noprefix
	.text
	.type	spin_trylock, @function
spin_trylock:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	some_func@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	spin_trylock, .-spin_trylock
	.globl	kfree
	.type	kfree, @function
kfree:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	kfree, .-kfree
	.type	memory_allocation, @function
memory_allocation:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kmalloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	kfree
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	memory_allocation, .-memory_allocation
	.type	memory_allocation_nonatomic, @function
memory_allocation_nonatomic:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdi, rax
	call	vmalloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	kfree
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	memory_allocation_nonatomic, .-memory_allocation_nonatomic
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	cmp	DWORD PTR -32[rbp], 0
	je	.L7
	cmp	DWORD PTR -32[rbp], 32
	jne	.L17
.L7:
	call	memory_allocation_nonatomic
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
	call	memory_allocation_nonatomic
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_lock@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_unlock@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_trylock
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_unlock@PLT
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_trylock
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	spin_trylock
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	spin_unlock@PLT
.L11:
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_unlock@PLT
	jmp	.L12
.L10:
	call	memory_allocation_nonatomic
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
	call	memory_allocation_nonatomic
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_lock@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_is_locked@PLT
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_unlock@PLT
	jmp	.L14
.L13:
	call	memory_allocation_nonatomic
.L14:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	_atomic_dec_and_lock@PLT
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	spin_unlock@PLT
	jmp	.L16
.L15:
	call	memory_allocation_nonatomic
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
.L16:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
	call	memory_allocation_nonatomic
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	memory_allocation
	jmp	.L6
.L17:
	nop
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"143843.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spin_trylock, %function
spin_trylock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	some_func
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	spin_trylock, .-spin_trylock
	.align	2
	.global	kfree
	.syntax unified
	.arm
	.fpu softvfp
	.type	kfree, %function
kfree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	kfree, .-kfree
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memory_allocation, %function
memory_allocation:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	kmalloc
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	kfree
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	memory_allocation, .-memory_allocation
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memory_allocation_nonatomic, %function
memory_allocation_nonatomic:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	vmalloc
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	kfree
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	memory_allocation_nonatomic, .-memory_allocation_nonatomic
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-24]
	cmp	r3, #32
	bne	.L17
.L7:
	bl	memory_allocation_nonatomic
	ldr	r0, [fp, #-20]
	bl	memory_allocation
	bl	memory_allocation_nonatomic
	ldr	r0, [fp, #-20]
	bl	memory_allocation
	ldr	r0, [fp, #-16]
	bl	spin_lock
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-16]
	bl	spin_unlock
	ldr	r0, [fp, #-16]
	bl	spin_trylock
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-16]
	bl	spin_unlock
.L9:
	ldr	r0, [fp, #-16]
	bl	spin_trylock
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r0, [fp, #-12]
	bl	spin_trylock
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-12]
	bl	spin_unlock
.L11:
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-16]
	bl	spin_unlock
	b	.L12
.L10:
	bl	memory_allocation_nonatomic
	ldr	r0, [fp, #-20]
	bl	memory_allocation
	bl	memory_allocation_nonatomic
	ldr	r0, [fp, #-20]
	bl	memory_allocation
.L12:
	ldr	r0, [fp, #-16]
	bl	spin_lock
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-16]
	bl	spin_is_locked
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-16]
	bl	spin_unlock
	b	.L14
.L13:
	bl	memory_allocation_nonatomic
.L14:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	_atomic_dec_and_lock
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-24]
	bl	memory_allocation
	ldr	r0, [fp, #-16]
	bl	spin_unlock
	b	.L16
.L15:
	bl	memory_allocation_nonatomic
	ldr	r0, [fp, #-20]
	bl	memory_allocation
.L16:
	ldr	r0, [fp, #-20]
	bl	memory_allocation
	bl	memory_allocation_nonatomic
	ldr	r0, [fp, #-20]
	bl	memory_allocation
	ldr	r0, [fp, #-20]
	bl	memory_allocation
	b	.L6
.L17:
	nop
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
