	.file	"extr_socket.c___sock_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s uses obsolete (PF_INET,SOCK_PACKET)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"socket: no more sockets\n"
	.text
	.p2align 4
	.globl	__sock_create
	.type	__sock_create, @function
__sock_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	test	esi, esi
	js	.L2
	cmp	DWORD PTR NPROTO[rip], esi
	mov	ebp, esi
	jle	.L2
	mov	r15d, edx
	test	edx, edx
	js	.L5
	cmp	DWORD PTR SOCK_MAX[rip], edx
	jle	.L5
	cmp	DWORD PTR PF_INET[rip], esi
	mov	r13, rdi
	mov	r14d, ecx
	mov	rbx, r8
	je	.L21
.L7:
	mov	ecx, r9d
	mov	edx, r14d
	mov	esi, r15d
	mov	edi, ebp
	mov	DWORD PTR 8[rsp], r9d
	call	security_socket_create@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	xor	eax, eax
	call	sock_alloc@PLT
	mov	r9d, DWORD PTR 8[rsp]
	test	rax, rax
	mov	QWORD PTR [rsp], rax
	je	.L22
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR 8[rsp], r9d
	mov	DWORD PTR [rax], r15d
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	rdx, QWORD PTR net_families[rip]
	movsx	rax, ebp
	mov	edi, DWORD PTR [rdx+rax*4]
	call	rcu_dereference@PLT
	mov	r12d, DWORD PTR EAFNOSUPPORT[rip]
	test	rax, rax
	je	.L9
	mov	edi, DWORD PTR 8[rax]
	mov	QWORD PTR 16[rsp], rax
	call	try_module_get@PLT
	test	eax, eax
	jne	.L23
.L9:
	xor	eax, eax
	neg	r12d
	call	rcu_read_unlock@PLT
.L12:
	mov	rdi, QWORD PTR [rsp]
	call	sock_release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR EAFNOSUPPORT[rip]
	neg	r12d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	DWORD PTR SOCK_PACKET[rip], edx
	jne	.L7
	mov	rax, QWORD PTR current[rip]
	lea	rdi, .LC0[rip]
	mov	DWORD PTR [rsp], r9d
	mov	esi, DWORD PTR [rax]
	call	pr_info_once@PLT
	mov	ebp, DWORD PTR PF_PACKET[rip]
	mov	r9d, DWORD PTR [rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	xor	eax, eax
	call	rcu_read_unlock@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	edx, r14d
	mov	rdi, r13
	mov	r8, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR [rsp]
	mov	DWORD PTR 28[rsp], r9d
	mov	ecx, r9d
	mov	QWORD PTR 8[rsp], r8
	call	[QWORD PTR [r8]]
	mov	r8, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	js	.L10
	mov	rax, QWORD PTR [rsp]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	call	try_module_get@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L11
	mov	r12d, DWORD PTR EAFNOSUPPORT[rip]
	neg	r12d
.L10:
	mov	rax, QWORD PTR [rsp]
	mov	edi, DWORD PTR 8[r8]
	mov	QWORD PTR 8[rax], 0
	call	module_put@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC1[rip]
	call	net_warn_ratelimited@PLT
	mov	r12d, DWORD PTR ENFILE[rip]
	neg	r12d
	jmp	.L1
.L11:
	mov	edi, DWORD PTR 8[r8]
	mov	DWORD PTR 8[rsp], r9d
	call	module_put@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	ecx, r14d
	mov	edx, r15d
	mov	r14, QWORD PTR [rsp]
	mov	esi, ebp
	mov	r8d, r9d
	mov	rdi, r14
	call	security_socket_post_create@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	QWORD PTR [rbx], r14
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__sock_create, .-__sock_create
	.comm	net_families,8,8
	.comm	current,8,8
	.comm	SOCK_PACKET,4,4
	.comm	SOCK_MAX,4,4
	.comm	PF_PACKET,4,4
	.comm	PF_INET,4,4
	.comm	NPROTO,4,4
	.comm	ENFILE,4,4
	.comm	EINVAL,4,4
	.comm	EAFNOSUPPORT,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_socket.c___sock_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s uses obsolete (PF_INET,SOCK_PACKET)\012\000"
	.align	2
.LC1:
	.ascii	"socket: no more sockets\012\000"
	.text
	.align	2
	.global	__sock_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	__sock_create, %function
__sock_create:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r4, r1, #0
	sub	sp, sp, #12
	blt	.L2
	mov	r7, r3
	ldr	r3, .L24
	ldr	r3, [r3]
	cmp	r3, r4
	ble	.L2
	cmp	r2, #0
	mov	r6, r2
	blt	.L5
	ldr	r3, .L24+4
	ldr	r3, [r3]
	cmp	r3, r2
	ble	.L5
	ldr	r3, .L24+8
	mov	r8, r0
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L21
.L7:
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	ldr	r3, [sp, #52]
	bl	security_socket_create
	subs	r5, r0, #0
	bne	.L1
	bl	sock_alloc
	subs	r9, r0, #0
	beq	.L22
	str	r6, [r9]
	bl	rcu_read_lock
	ldr	r3, .L24+12
	ldr	fp, .L24+16
	ldr	r3, [r3]
	ldr	r0, [r3, r4, lsl #2]
	bl	rcu_dereference
	subs	r10, r0, #0
	ldr	r5, [fp]
	beq	.L9
	ldr	r0, [r10, #4]
	bl	try_module_get
	cmp	r0, #0
	bne	.L23
.L9:
	rsb	r5, r5, #0
	bl	rcu_read_unlock
.L12:
	mov	r0, r9
	bl	sock_release
	b	.L1
.L2:
	ldr	r3, .L24+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L24+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, .L24+24
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L7
	ldr	r3, .L24+28
	ldr	r0, .L24+32
	ldr	r3, [r3]
	ldr	r1, [r3]
	bl	pr_info_once
	ldr	r3, .L24+36
	ldr	r4, [r3]
	b	.L7
.L23:
	bl	rcu_read_unlock
	ldr	r5, [r10]
	mov	r0, r8
	mov	r2, r7
	mov	r1, r9
	ldr	r3, [sp, #52]
	blx	r5
	subs	r5, r0, #0
	blt	.L10
	ldr	r3, [r9, #4]
	ldr	r0, [r3]
	bl	try_module_get
	cmp	r0, #0
	bne	.L11
	ldr	r5, [fp]
	rsb	r5, r5, #0
.L10:
	mov	r3, #0
	ldr	r0, [r10, #4]
	str	r3, [r9, #4]
	bl	module_put
	b	.L12
.L22:
	ldr	r0, .L24+40
	bl	net_warn_ratelimited
	ldr	r3, .L24+44
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L11:
	ldr	r0, [r10, #4]
	bl	module_put
	ldr	r3, [sp, #52]
	mov	r2, r6
	str	r3, [sp]
	mov	r1, r4
	mov	r3, r7
	mov	r0, r9
	bl	security_socket_post_create
	subs	r5, r0, #0
	bne	.L12
	ldr	r3, [sp, #48]
	str	r9, [r3]
	b	.L1
.L25:
	.align	2
.L24:
	.word	NPROTO
	.word	SOCK_MAX
	.word	PF_INET
	.word	net_families
	.word	EAFNOSUPPORT
	.word	EINVAL
	.word	SOCK_PACKET
	.word	current
	.word	.LC0
	.word	PF_PACKET
	.word	.LC1
	.word	ENFILE
	.size	__sock_create, .-__sock_create
	.comm	net_families,4,4
	.comm	current,4,4
	.comm	SOCK_PACKET,4,4
	.comm	SOCK_MAX,4,4
	.comm	PF_PACKET,4,4
	.comm	PF_INET,4,4
	.comm	NPROTO,4,4
	.comm	ENFILE,4,4
	.comm	EINVAL,4,4
	.comm	EAFNOSUPPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
