	.file	"extr_sock_diag.c_sock_diag_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sock_diag_register
	.type	sock_diag_register, @function
sock_diag_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR AF_MAX[rip]
	cmp	QWORD PTR [rdi], rax
	jb	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rdi
	lea	rdi, sock_diag_table_mutex[rip]
	call	mutex_lock@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR sock_diag_handlers[rip]
	lea	rax, [rax+rdx*8]
	cmp	QWORD PTR [rax], 0
	je	.L4
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L5:
	lea	rdi, sock_diag_table_mutex[rip]
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	QWORD PTR [rax], rbx
	xor	r12d, r12d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	sock_diag_register, .-sock_diag_register
	.comm	sock_diag_table_mutex,4,4
	.comm	sock_diag_handlers,8,8
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	AF_MAX,8,8
	.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_sock_diag.c_sock_diag_register.c"
	.text
	.align	2
	.global	sock_diag_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	sock_diag_register, %function
sock_diag_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	bcc	.L2
	ldr	r3, .L8+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r5, r0
	ldr	r0, .L8+8
	bl	mutex_lock
	ldr	r3, .L8+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r0, .L8+8
	ldr	r4, [r3, r2, lsl #2]
	cmp	r4, #0
	ldrne	r3, .L8+16
	streq	r5, [r3, r2, lsl #2]
	ldrne	r4, [r3]
	rsbne	r4, r4, #0
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	AF_MAX
	.word	EINVAL
	.word	sock_diag_table_mutex
	.word	sock_diag_handlers
	.word	EBUSY
	.size	sock_diag_register, .-sock_diag_register
	.comm	sock_diag_table_mutex,4,4
	.comm	sock_diag_handlers,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	AF_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
