	.file	"extr_ipcomp6.c_ipcomp6_tunnel_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipcomp6_tunnel_create, @function
ipcomp6_tunnel_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rdi, init_net[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	xfrm_state_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR IPPROTO_IPV6[rip]
	lea	rdi, 16[rbx]
	mov	DWORD PTR 52[r12], eax
	call	xfrm6_tunnel_alloc_spi@PLT
	mov	DWORD PTR 48[r12], eax
	test	eax, eax
	je	.L3
	mov	rsi, QWORD PTR 40[rbx]
	mov	rdi, QWORD PTR 40[r12]
	mov	edx, 4
	call	memcpy@PLT
	lea	rsi, 32[rbx]
	lea	rdi, 32[r12]
	mov	edx, 4
	call	memcpy@PLT
	mov	eax, DWORD PTR AF_INET6[rip]
	mov	rsi, QWORD PTR 16[rbx]
	mov	edx, 4
	mov	rdi, QWORD PTR 16[r12]
	mov	DWORD PTR 28[r12], eax
	mov	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR 24[r12], eax
	call	memcpy@PLT
	lea	rdi, 8[r12]
	lea	rsi, 8[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	rdi, r12
	call	xfrm_init_state@PLT
	test	rax, rax
	jne	.L3
	lea	rdi, 4[r12]
	mov	esi, 1
	call	atomic_set@PLT
.L2:
	endbr64
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR XFRM_STATE_DEAD[rip]
	mov	rdi, r12
	mov	DWORD PTR [r12], eax
	xor	r12d, r12d
	call	xfrm_state_put@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipcomp6_tunnel_create, .-ipcomp6_tunnel_create
	.comm	init_net,4,4
	.comm	XFRM_STATE_DEAD,4,4
	.comm	IPPROTO_IPV6,4,4
	.comm	AF_INET6,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_ipcomp6.c_ipcomp6_tunnel_create.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipcomp6_tunnel_create, %function
ipcomp6_tunnel_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, .L12
	bl	xfrm_state_alloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L12+4
	add	r0, r5, #12
	ldr	r3, [r3]
	str	r3, [r4, #36]
	bl	xfrm6_tunnel_alloc_spi
	cmp	r0, #0
	str	r0, [r4, #32]
	beq	.L3
	mov	r2, #4
	ldr	r1, [r5, #28]
	ldr	r0, [r4, #28]
	bl	memcpy
	mov	r2, #4
	add	r1, r5, #24
	add	r0, r4, #24
	bl	memcpy
	ldr	r3, .L12+8
	ldr	r2, [r5, #16]
	ldr	r3, [r3]
	ldr	r1, [r5, #12]
	str	r3, [r4, #20]
	str	r2, [r4, #16]
	ldr	r0, [r4, #12]
	mov	r2, #4
	bl	memcpy
	mov	r2, #4
	add	r1, r5, #8
	add	r0, r4, #8
	bl	memcpy
	mov	r0, r4
	bl	xfrm_init_state
	cmp	r0, #0
	bne	.L3
.L2:
	mov	r1, #1
	add	r0, r4, #4
	bl	atomic_set
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L12+12
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4]
	mov	r4, #0
	bl	xfrm_state_put
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	init_net
	.word	IPPROTO_IPV6
	.word	AF_INET6
	.word	XFRM_STATE_DEAD
	.size	ipcomp6_tunnel_create, .-ipcomp6_tunnel_create
	.comm	init_net,4,4
	.comm	XFRM_STATE_DEAD,4,4
	.comm	IPPROTO_IPV6,4,4
	.comm	AF_INET6,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
