	.file	"extr_xfrm_policy.c_xfrm_state_ok.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xfrm_state_ok, @function
xfrm_state_ok:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	rdi, rsi
	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	ebx, edx
	call	xfrm_state_kern@PLT
	test	rax, rax
	jne	.L21
	mov	rdi, QWORD PTR 32[r12]
	cmp	QWORD PTR 24[rbp], rdi
	je	.L22
.L5:
	xor	eax, eax
.L1:
	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
.L22:
	.cfi_restore_state
	mov	rax, QWORD PTR 40[r12]
	cmp	QWORD PTR 32[rbp], rax
	je	.L10
	test	rax, rax
	jne	.L5
.L10:
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR 0[rbp], rax
	je	.L11
	test	rax, rax
	jne	.L5
.L11:
	mov	rdx, QWORD PTR 8[rbp]
	cmp	rdx, QWORD PTR 16[r12]
	jne	.L5
	cmp	QWORD PTR 48[r12], 0
	jne	.L8
	mov	eax, DWORD PTR 16[rbp]
	mov	ecx, DWORD PTR 24[r12]
	bt	ecx, eax
	jnc	.L23
.L8:
	cmp	QWORD PTR XFRM_MODE_TRANSPORT[rip], rdx
	mov	eax, 1
	je	.L1
	movzx	edx, bx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	QWORD PTR 56[r12], 0
	je	.L5
	movzx	edx, WORD PTR [r12]
.L19:
	mov	rsi, rbp
	mov	rdi, r12
	call	xfrm_state_addr_cmp@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	test	rax, rax
	pop	r12
	.cfi_def_cfa_offset 8
	sete	al
	movzx	eax, al
	ret
.L23:
	.cfi_restore_state
	mov	esi, DWORD PTR IPSEC_PROTO_ANY[rip]
	call	xfrm_id_proto_match@PLT
	test	eax, eax
	jne	.L5
	mov	rdx, QWORD PTR 8[rbp]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	xfrm_state_ok, .-xfrm_state_ok
	.comm	XFRM_MODE_TRANSPORT,8,8
	.comm	IPSEC_PROTO_ANY,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_xfrm_policy.c_xfrm_state_ok.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfrm_state_ok, %function
xfrm_state_ok:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	mov	r6, r2
	bl	xfrm_state_kern
	cmp	r0, #0
	bne	.L16
	ldr	r3, [r5, #16]
	ldr	r0, [r4, #12]
	cmp	r0, r3
	beq	.L17
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r3, [r5, #20]
	ldr	r2, [r4, #16]
	cmp	r3, #0
	cmpne	r2, r3
	bne	.L5
	ldr	r3, [r5, #4]
	ldr	r2, [r4]
	cmp	r3, #0
	cmpne	r2, r3
	bne	.L5
	ldr	r3, [r4, #4]
	ldr	r2, [r5, #8]
	cmp	r3, r2
	bne	.L5
	ldr	r2, [r5, #24]
	cmp	r2, #0
	bne	.L6
	ldr	r2, [r5, #12]
	ldr	r1, [r4, #8]
	asr	r2, r2, r1
	tst	r2, #1
	beq	.L18
.L6:
	ldr	r2, .L19
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L7
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	xfrm_state_addr_cmp
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, [r5, #28]
	cmp	r3, #0
	beq	.L5
	mov	r1, r4
	mov	r0, r5
	ldrh	r2, [r5]
	bl	xfrm_state_addr_cmp
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r3, .L19+4
	ldr	r1, [r3]
	bl	xfrm_id_proto_match
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r4, #4]
	b	.L6
.L20:
	.align	2
.L19:
	.word	XFRM_MODE_TRANSPORT
	.word	IPSEC_PROTO_ANY
	.size	xfrm_state_ok, .-xfrm_state_ok
	.comm	XFRM_MODE_TRANSPORT,4,4
	.comm	IPSEC_PROTO_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
