	.file	"extr_psample.c_psample_sample_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not create psample log message\n"
	.text
	.p2align 4
	.globl	psample_sample_packet
	.type	psample_sample_packet, @function
psample_sample_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 16[rsp], rdi
	mov	DWORD PTR 12[rsp], r9d
	test	ecx, ecx
	jne	.L26
.L2:
	test	r13d, r13d
	jne	.L27
.L3:
	mov	edi, 4
	call	nla_total_size@PLT
	mov	edi, 4
	add	r12d, eax
	call	nla_total_size@PLT
	mov	edi, 4
	add	r12d, eax
	call	nla_total_size@PLT
	mov	edi, 4
	add	r12d, eax
	call	nla_total_size@PLT
	mov	edi, DWORD PTR [r15]
	mov	esi, ebp
	lea	ebx, [r12+rax]
	call	min@PLT
	mov	edi, eax
	mov	r12d, eax
	call	nla_total_size@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR PSAMPLE_MAX_PACKET_SIZE[rip]
	lea	ecx, [r8+rbx]
	cmp	ecx, eax
	jle	.L4
	sub	eax, ebx
	mov	r12d, eax
	sub	r12d, DWORD PTR NLA_HDRLEN[rip]
	sub	r12d, DWORD PTR NLA_ALIGNTO[rip]
.L4:
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	lea	edi, [r12+rbx]
	call	genlmsg_new@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L28
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	r9d, DWORD PTR PSAMPLE_CMD_SAMPLE[rip]
	xor	r8d, r8d
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	lea	rcx, psample_nl_family[rip]
	call	genlmsg_put@PLT
	xor	edi, edi
	test	rax, rax
	mov	QWORD PTR 24[rsp], rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
	test	r14d, r14d
	jne	.L7
.L10:
	test	r13d, r13d
	je	.L9
	mov	esi, DWORD PTR PSAMPLE_ATTR_OIFINDEX[rip]
	mov	rdi, rbp
	mov	edx, r13d
	call	nla_put_u16@PLT
	shr	eax, 31
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
.L9:
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR PSAMPLE_ATTR_SAMPLE_RATE[rip]
	mov	rdi, rbp
	call	nla_put_u32@PLT
	shr	eax, 31
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L29
.L6:
	lea	rdi, .LC0[rip]
	call	pr_err_ratelimited@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	nlmsg_free@PLT
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edi, 4
	call	nla_total_size@PLT
	add	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, 4
	call	nla_total_size@PLT
	mov	r12d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edx, DWORD PTR [r15]
	mov	esi, DWORD PTR PSAMPLE_ATTR_ORIGSIZE[rip]
	mov	rdi, rbp
	call	nla_put_u32@PLT
	shr	eax, 31
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
	mov	rbx, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR PSAMPLE_ATTR_SAMPLE_GROUP[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR 8[rbx]
	call	nla_put_u32@PLT
	shr	eax, 31
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR PSAMPLE_ATTR_GROUP_SEQ[rip]
	mov	rdi, rbp
	lea	eax, 1[rdx]
	mov	DWORD PTR 4[rbx], eax
	call	nla_put_u32@PLT
	shr	eax, 31
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
	test	r12d, r12d
	je	.L13
	mov	edi, r12d
	call	nla_total_size@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	skb_put@PLT
	mov	edi, r12d
	mov	r13, rax
	mov	eax, DWORD PTR PSAMPLE_ATTR_DATA[rip]
	mov	DWORD PTR 4[r13], eax
	call	nla_attr_size@PLT
	mov	rdi, r13
	mov	DWORD PTR 0[r13], eax
	call	nla_data@PLT
	xor	esi, esi
	mov	ecx, r12d
	mov	rdi, r15
	mov	edx, eax
	call	skb_copy_bits@PLT
	test	rax, rax
	jne	.L6
.L13:
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, rbp
	call	genlmsg_end@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, rbp
	xor	ecx, ecx
	mov	r9d, DWORD PTR GFP_ATOMIC[rip]
	mov	r8d, DWORD PTR PSAMPLE_NL_MCGRP_SAMPLE[rip]
	lea	rdi, psample_nl_family[rip]
	mov	esi, DWORD PTR [rax]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	genlmsg_multicast_netns@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR PSAMPLE_ATTR_IIFINDEX[rip]
	mov	rdi, rbp
	mov	edx, r14d
	call	nla_put_u16@PLT
	shr	eax, 31
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L10
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	psample_sample_packet, .-psample_sample_packet
	.comm	psample_nl_family,4,4
	.comm	PSAMPLE_NL_MCGRP_SAMPLE,4,4
	.comm	PSAMPLE_MAX_PACKET_SIZE,4,4
	.comm	PSAMPLE_CMD_SAMPLE,4,4
	.comm	PSAMPLE_ATTR_SAMPLE_RATE,4,4
	.comm	PSAMPLE_ATTR_SAMPLE_GROUP,4,4
	.comm	PSAMPLE_ATTR_ORIGSIZE,4,4
	.comm	PSAMPLE_ATTR_OIFINDEX,4,4
	.comm	PSAMPLE_ATTR_IIFINDEX,4,4
	.comm	PSAMPLE_ATTR_GROUP_SEQ,4,4
	.comm	PSAMPLE_ATTR_DATA,4,4
	.comm	NLA_HDRLEN,4,4
	.comm	NLA_ALIGNTO,4,4
	.comm	GFP_ATOMIC,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_psample.c_psample_sample_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not create psample log message\012\000"
	.text
	.align	2
	.global	psample_sample_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	psample_sample_packet, %function
psample_sample_packet:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r6, r3, #0
	sub	sp, sp, #20
	mov	r8, r0
	mov	r7, r1
	mov	r5, r2
	moveq	r10, r6
	ldr	r9, [sp, #56]
	ldr	fp, [sp, #60]
	bne	.L24
.L2:
	cmp	r9, #0
	bne	.L25
.L3:
	mov	r0, #4
	bl	nla_total_size
	mov	r4, r0
	mov	r0, #4
	bl	nla_total_size
	mov	r3, r0
	add	r4, r4, r10
	mov	r0, #4
	add	r4, r4, r3
	bl	nla_total_size
	mov	r3, r0
	mov	r0, #4
	add	r4, r4, r3
	bl	nla_total_size
	mov	r3, r0
	mov	r1, r5
	ldr	r0, [r7]
	add	r4, r4, r3
	bl	min
	mov	r5, r0
	bl	nla_total_size
	ldr	r3, .L28
	add	r0, r0, r4
	ldr	r3, [r3]
	cmp	r0, r3
	ble	.L4
	ldr	r1, .L28+4
	ldr	r2, .L28+8
	ldr	r0, [r1]
	ldr	r5, [r2]
	sub	r3, r3, r4
	sub	r3, r3, r0
	sub	r5, r3, r5
.L4:
	ldr	r10, .L28+12
	add	r0, r5, r4
	ldr	r1, [r10]
	bl	genlmsg_new
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r2, r0, #0
	beq	.L26
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r3, .L28+16
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L28+20
	str	r1, [sp, #4]
	mov	r1, r2
	bl	genlmsg_put
	mov	r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	str	r3, [sp, #12]
	bl	unlikely
	cmp	r0, #0
	bne	.L6
	cmp	r6, #0
	bne	.L7
.L10:
	cmp	r9, #0
	beq	.L9
	ldr	r3, .L28+24
	mov	r2, r9
	ldr	r1, [r3]
	mov	r0, r4
	bl	nla_put_u16
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	bne	.L6
.L9:
	ldr	r3, .L28+28
	mov	r2, fp
	ldr	r1, [r3]
	mov	r0, r4
	bl	nla_put_u32
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	beq	.L27
.L6:
	ldr	r0, .L28+32
	bl	pr_err_ratelimited
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	nlmsg_free
.L25:
	mov	r0, #4
	bl	nla_total_size
	add	r10, r10, r0
	b	.L3
.L24:
	mov	r0, #4
	bl	nla_total_size
	mov	r10, r0
	b	.L2
.L27:
	ldr	r3, .L28+36
	ldr	r2, [r7]
	ldr	r1, [r3]
	mov	r0, r4
	bl	nla_put_u32
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L28+40
	ldr	r2, [r8, #8]
	ldr	r1, [r3]
	mov	r0, r4
	bl	nla_put_u32
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	bne	.L6
	ldr	r2, [r8, #4]
	ldr	r3, .L28+44
	add	r1, r2, #1
	str	r1, [r8, #4]
	mov	r0, r4
	ldr	r1, [r3]
	bl	nla_put_u32
	lsr	r0, r0, #31
	bl	unlikely
	subs	r6, r0, #0
	bne	.L6
	cmp	r5, #0
	beq	.L13
	mov	r0, r5
	bl	nla_total_size
	mov	r1, r0
	mov	r0, r4
	bl	skb_put
	mov	r9, r0
	ldr	r3, .L28+48
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r9, #4]
	bl	nla_attr_size
	str	r0, [r9]
	mov	r0, r9
	bl	nla_data
	mov	r3, r5
	mov	r2, r0
	mov	r1, r6
	mov	r0, r7
	bl	skb_copy_bits
	cmp	r0, #0
	bne	.L6
.L13:
	ldr	r1, [sp, #12]
	mov	r0, r4
	bl	genlmsg_end
	ldr	r3, .L28+52
	ldr	r2, [r10]
	ldr	r3, [r3]
	str	r2, [sp, #60]
	ldr	r1, [r8]
	mov	r2, r4
	str	r3, [sp, #56]
	mov	r3, #0
	ldr	r0, .L28+20
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	genlmsg_multicast_netns
.L7:
	ldr	r3, .L28+56
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	nla_put_u16
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	beq	.L10
	b	.L6
.L29:
	.align	2
.L28:
	.word	PSAMPLE_MAX_PACKET_SIZE
	.word	NLA_HDRLEN
	.word	NLA_ALIGNTO
	.word	GFP_ATOMIC
	.word	PSAMPLE_CMD_SAMPLE
	.word	psample_nl_family
	.word	PSAMPLE_ATTR_OIFINDEX
	.word	PSAMPLE_ATTR_SAMPLE_RATE
	.word	.LC0
	.word	PSAMPLE_ATTR_ORIGSIZE
	.word	PSAMPLE_ATTR_SAMPLE_GROUP
	.word	PSAMPLE_ATTR_GROUP_SEQ
	.word	PSAMPLE_ATTR_DATA
	.word	PSAMPLE_NL_MCGRP_SAMPLE
	.word	PSAMPLE_ATTR_IIFINDEX
	.size	psample_sample_packet, .-psample_sample_packet
	.comm	psample_nl_family,4,4
	.comm	PSAMPLE_NL_MCGRP_SAMPLE,4,4
	.comm	PSAMPLE_MAX_PACKET_SIZE,4,4
	.comm	PSAMPLE_CMD_SAMPLE,4,4
	.comm	PSAMPLE_ATTR_SAMPLE_RATE,4,4
	.comm	PSAMPLE_ATTR_SAMPLE_GROUP,4,4
	.comm	PSAMPLE_ATTR_ORIGSIZE,4,4
	.comm	PSAMPLE_ATTR_OIFINDEX,4,4
	.comm	PSAMPLE_ATTR_IIFINDEX,4,4
	.comm	PSAMPLE_ATTR_GROUP_SEQ,4,4
	.comm	PSAMPLE_ATTR_DATA,4,4
	.comm	NLA_HDRLEN,4,4
	.comm	NLA_ALIGNTO,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
