	.file	"extr_bat_iv_ogm.c_batadv_iv_ogm_orig_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	batadv_iv_ogm_orig_get, @function
batadv_iv_ogm_orig_get:
.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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	batadv_orig_hash_find@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
.L1:
	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
.L8:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, rbx
	call	batadv_orig_node_new@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	lea	rdi, 8[rax]
	call	spin_lock_init@PLT
	lea	rdi, 4[rbp]
	call	kref_get@PLT
	mov	edx, DWORD PTR batadv_choose_orig[rip]
	mov	edi, DWORD PTR [rbx]
	mov	r8, rbp
	mov	esi, DWORD PTR batadv_compare_orig[rip]
	mov	rcx, rbp
	call	batadv_hash_add@PLT
	test	eax, eax
	jne	.L9
	mov	r12, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	batadv_orig_node_put@PLT
	mov	rdi, rbp
	call	batadv_orig_node_put@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	batadv_iv_ogm_orig_get, .-batadv_iv_ogm_orig_get
	.comm	batadv_compare_orig,4,4
	.comm	batadv_choose_orig,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_bat_iv_ogm.c_batadv_iv_ogm_orig_get.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	batadv_iv_ogm_orig_get, %function
batadv_iv_ogm_orig_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r6, r0
	mov	r5, r1
	bl	batadv_orig_hash_find
	subs	r4, r0, #0
	beq	.L8
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, r5
	mov	r0, r6
	bl	batadv_orig_node_new
	subs	r5, r0, #0
	beq	.L1
	add	r0, r5, #8
	bl	spin_lock_init
	add	r0, r5, #4
	bl	kref_get
	ldr	r3, .L9
	ldr	r2, .L9+4
	str	r5, [sp]
	ldr	r1, [r3]
	ldr	r0, [r6]
	mov	r3, r5
	ldr	r2, [r2]
	bl	batadv_hash_add
	cmp	r0, #0
	moveq	r4, r5
	beq	.L1
	mov	r0, r5
	bl	batadv_orig_node_put
	mov	r0, r5
	bl	batadv_orig_node_put
	b	.L1
.L10:
	.align	2
.L9:
	.word	batadv_compare_orig
	.word	batadv_choose_orig
	.size	batadv_iv_ogm_orig_get, .-batadv_iv_ogm_orig_get
	.comm	batadv_compare_orig,4,4
	.comm	batadv_choose_orig,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
