	.file	"extr_xsk.c_xsk_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xsk_create, @function
xsk_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR CAP_NET_RAW[rip]
	call	ns_capable@PLT
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR SOCK_RAW[rip]
	cmp	QWORD PTR [r12], rax
	je	.L4
	mov	eax, DWORD PTR ESOCKTNOSUPPORT[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	test	ebx, ebx
	je	.L5
	mov	eax, DWORD PTR EPROTONOSUPPORT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR EPERM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR SS_UNCONNECTED[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	r8d, r13d
	mov	rdi, rbp
	mov	esi, DWORD PTR PF_XDP[rip]
	lea	rcx, xsk_proto[rip]
	mov	DWORD PTR 16[r12], eax
	call	sk_alloc@PLT
	mov	r13, rax
	mov	eax, DWORD PTR ENOBUFS[rip]
	neg	eax
	test	r13, r13
	je	.L1
	lea	rax, xsk_proto_ops[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	QWORD PTR 8[r12], rax
	call	sock_init_data@PLT
	mov	eax, DWORD PTR PF_XDP[rip]
	mov	rdi, r13
	mov	DWORD PTR 4[r13], eax
	mov	eax, DWORD PTR xsk_destruct[rip]
	mov	DWORD PTR 0[r13], eax
	call	sk_refcnt_debug_inc@PLT
	mov	esi, DWORD PTR SOCK_RCU_FREE[rip]
	mov	rdi, r13
	call	sock_set_flag@PLT
	mov	rdi, r13
	call	xdp_sk@PLT
	mov	r12, rax
	mov	eax, DWORD PTR XSK_READY[rip]
	lea	rdi, 16[r12]
	mov	DWORD PTR 20[r12], eax
	call	mutex_init@PLT
	lea	rdi, 12[r12]
	call	spin_lock_init@PLT
	lea	rdi, 8[r12]
	call	spin_lock_init@PLT
	lea	rdi, 4[r12]
	call	INIT_LIST_HEAD@PLT
	mov	rdi, r12
	call	spin_lock_init@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	lea	rsi, 4[rbp]
	mov	rdi, r13
	call	sk_add_node_rcu@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	xor	eax, eax
	call	local_bh_disable@PLT
	mov	rdi, rbp
	mov	edx, 1
	lea	rsi, xsk_proto[rip]
	call	sock_prot_inuse_add@PLT
	xor	eax, eax
	call	local_bh_enable@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xsk_create, .-xsk_create
	.comm	xsk_proto_ops,4,4
	.comm	xsk_proto,4,4
	.comm	xsk_destruct,4,4
	.comm	XSK_READY,4,4
	.comm	SS_UNCONNECTED,4,4
	.comm	SOCK_RCU_FREE,4,4
	.comm	SOCK_RAW,8,8
	.comm	PF_XDP,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ESOCKTNOSUPPORT,4,4
	.comm	EPROTONOSUPPORT,4,4
	.comm	EPERM,4,4
	.comm	ENOBUFS,4,4
	.comm	CAP_NET_RAW,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_xsk.c_xsk_create.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xsk_create, %function
xsk_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	ldr	r1, .L11
	mov	r6, r0
	ldr	r1, [r1]
	ldr	r0, [r0, #8]
	sub	sp, sp, #8
	mov	r5, r2
	mov	r4, r3
	bl	ns_capable
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L11+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	cmp	r5, #0
	beq	.L5
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L11+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, .L11+20
	ldr	r3, .L11+24
	ldr	r2, [r2]
	ldr	r8, .L11+28
	str	r4, [sp]
	mov	r0, r6
	str	r2, [r7, #8]
	ldr	r1, [r8]
	ldr	r2, [r3]
	ldr	r3, .L11+32
	bl	sk_alloc
	subs	r4, r0, #0
	beq	.L10
	ldr	r3, .L11+36
	mov	r1, r4
	str	r3, [r7, #4]
	mov	r0, r7
	bl	sock_init_data
	ldr	r3, .L11+40
	ldr	r2, [r8]
	ldr	r3, [r3]
	str	r2, [r4, #4]
	str	r3, [r4]
	mov	r0, r4
	bl	sk_refcnt_debug_inc
	ldr	r3, .L11+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	sock_set_flag
	mov	r0, r4
	bl	xdp_sk
	mov	r7, r0
	ldr	r3, .L11+48
	add	r0, r0, #16
	ldr	r3, [r3]
	str	r3, [r7, #20]
	bl	mutex_init
	add	r0, r7, #12
	bl	spin_lock_init
	add	r0, r7, #8
	bl	spin_lock_init
	add	r0, r7, #4
	bl	INIT_LIST_HEAD
	mov	r0, r7
	bl	spin_lock_init
	mov	r0, r6
	bl	mutex_lock
	add	r1, r6, #4
	mov	r0, r4
	bl	sk_add_node_rcu
	mov	r0, r6
	bl	mutex_unlock
	bl	local_bh_disable
	mov	r2, #1
	ldr	r1, .L11+32
	mov	r0, r6
	bl	sock_prot_inuse_add
	bl	local_bh_enable
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L11+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	CAP_NET_RAW
	.word	SOCK_RAW
	.word	ESOCKTNOSUPPORT
	.word	EPROTONOSUPPORT
	.word	EPERM
	.word	SS_UNCONNECTED
	.word	GFP_KERNEL
	.word	PF_XDP
	.word	xsk_proto
	.word	xsk_proto_ops
	.word	xsk_destruct
	.word	SOCK_RCU_FREE
	.word	XSK_READY
	.word	ENOBUFS
	.size	xsk_create, .-xsk_create
	.comm	xsk_proto_ops,4,4
	.comm	xsk_proto,4,4
	.comm	xsk_destruct,4,4
	.comm	XSK_READY,4,4
	.comm	SS_UNCONNECTED,4,4
	.comm	SOCK_RCU_FREE,4,4
	.comm	SOCK_RAW,4,4
	.comm	PF_XDP,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ESOCKTNOSUPPORT,4,4
	.comm	EPROTONOSUPPORT,4,4
	.comm	EPERM,4,4
	.comm	ENOBUFS,4,4
	.comm	CAP_NET_RAW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
