	.file	"extr_af_phonet.c_pn_socket_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"net-pf-%d-proto-%d"
	.text
	.p2align 4
	.type	pn_socket_create, @function
pn_socket_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	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
	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 CAP_SYS_ADMIN[rip]
	call	capable@PLT
	test	eax, eax
	je	.L18
	test	ebx, ebx
	jne	.L4
	mov	rax, QWORD PTR [r12]
	cmp	rax, 128
	je	.L5
	mov	ebx, DWORD PTR PN_PROTO_PHONET[rip]
	cmp	rax, 129
	je	.L4
.L9:
	mov	r12d, 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	r12d
	mov	eax, r12d
	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	ebx, DWORD PTR PN_PROTO_PIPE[rip]
.L4:
	mov	edi, ebx
	call	phonet_proto_get@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L19
.L7:
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR [r12], rax
	je	.L10
	mov	r12d, DWORD PTR EPROTONOSUPPORT[rip]
	neg	r12d
.L11:
	mov	rdi, rbp
	call	phonet_proto_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L18:
	.cfi_restore_state
	mov	r12d, 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	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, DWORD PTR PF_PHONET[rip]
	mov	edx, ebx
	lea	rdi, .LC0[rip]
	call	request_module@PLT
	test	rax, rax
	jne	.L9
	mov	edi, ebx
	call	phonet_proto_get@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L9
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r13
	mov	esi, DWORD PTR PF_PHONET[rip]
	call	sk_alloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L20
	mov	rsi, rax
	mov	rdi, r12
	call	sock_init_data@PLT
	mov	eax, DWORD PTR SS_UNCONNECTED[rip]
	mov	rdi, r13
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 8[r12], eax
	mov	rax, QWORD PTR 8[r13]
	xor	r12d, r12d
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 0[r13], ebx
	mov	DWORD PTR 16[r13], eax
	call	pn_sk@PLT
	mov	rdi, r13
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR 8[r13]
	call	[QWORD PTR [rax]]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	pn_socket_create, .-pn_socket_create
	.comm	SS_UNCONNECTED,4,4
	.comm	PN_PROTO_PIPE,4,4
	.comm	PN_PROTO_PHONET,4,4
	.comm	PF_PHONET,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROTONOSUPPORT,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	CAP_SYS_ADMIN,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_af_phonet.c_pn_socket_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"net-pf-%d-proto-%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pn_socket_create, %function
pn_socket_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r3]
	mov	r5, r1
	mov	r4, r2
	bl	capable
	cmp	r0, #0
	beq	.L18
	cmp	r4, #0
	bne	.L4
	ldr	r3, [r5]
	cmp	r3, #128
	beq	.L5
	cmp	r3, #129
	bne	.L9
	ldr	r3, .L21+4
	ldr	r4, [r3]
.L4:
	mov	r0, r4
	bl	phonet_proto_get
	subs	r6, r0, #0
	beq	.L19
.L7:
	ldr	r2, [r5]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L10
	ldr	r3, .L21+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L11:
	mov	r0, r6
	bl	phonet_proto_put
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L21+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, .L21+16
	mov	r2, r4
	ldr	r1, [r3]
	ldr	r0, .L21+20
	bl	request_module
	cmp	r0, #0
	bne	.L9
	mov	r0, r4
	bl	phonet_proto_get
	subs	r6, r0, #0
	bne	.L7
.L9:
	ldr	r3, .L21+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L21+24
	ldr	r4, [r3]
	mov	r0, r4
	bl	phonet_proto_get
	subs	r6, r0, #0
	bne	.L7
	b	.L19
.L10:
	ldr	r3, .L21+16
	ldr	r2, .L21+28
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6, #8]
	bl	sk_alloc
	subs	r7, r0, #0
	beq	.L20
	mov	r1, r7
	mov	r0, r5
	bl	sock_init_data
	ldr	r3, [r7, #4]
	ldr	r2, .L21+32
	ldr	r3, [r3, #4]
	ldr	r1, [r2]
	ldr	r2, [r6, #4]
	mov	r0, r7
	str	r1, [r5, #8]
	str	r2, [r5, #4]
	str	r3, [r7, #8]
	str	r4, [r7]
	bl	pn_sk
	mov	r4, #0
	ldr	r3, [r7, #4]
	str	r4, [r0, #4]
	str	r4, [r0]
	ldr	r3, [r3]
	mov	r0, r7
	blx	r3
	b	.L11
.L20:
	ldr	r3, .L21+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L11
.L22:
	.align	2
.L21:
	.word	CAP_SYS_ADMIN
	.word	PN_PROTO_PHONET
	.word	EPROTONOSUPPORT
	.word	EPERM
	.word	PF_PHONET
	.word	.LC0
	.word	PN_PROTO_PIPE
	.word	GFP_KERNEL
	.word	SS_UNCONNECTED
	.word	ENOMEM
	.size	pn_socket_create, .-pn_socket_create
	.comm	SS_UNCONNECTED,4,4
	.comm	PN_PROTO_PIPE,4,4
	.comm	PN_PROTO_PHONET,4,4
	.comm	PF_PHONET,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROTONOSUPPORT,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	CAP_SYS_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
