	.file	"extr_irnet_irda.c_irnet_find_socket.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(self=0x%p)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Socket 0x%p matches rname ``%s''.\n"
	.align 8
.LC2:
	.string	"Socket 0x%p matches daddr %#08x.\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Socket 0x%p is free.\n"
.LC4:
	.string	" - new = 0x%p\n"
	.text
	.p2align 4
	.type	irnet_find_socket, @function
irnet_find_socket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rdi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR IRDA_SERV_TRACE[rip]
	call	DENTER@PLT
	mov	edi, DWORD PTR 36[rbx]
	call	irttp_get_daddr@PLT
	mov	edi, DWORD PTR 36[rbx]
	mov	QWORD PTR [rbx], rax
	call	irttp_get_saddr@PLT
	mov	rdi, rbx
	mov	DWORD PTR 40[rbx], eax
	call	irnet_daddr_to_dname@PLT
	lea	rdi, irnet_server[rip]
	mov	r12d, eax
	call	spin_lock_bh@PLT
	test	r12d, r12d
	jne	.L2
	mov	rdx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR irnet_server[rip+4]
	xor	esi, esi
	call	hashbin_find@PLT
	test	rax, rax
	jne	.L23
.L2:
	mov	edi, DWORD PTR irnet_server[rip+4]
	call	hashbin_get_first@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	rcx, QWORD PTR [r12]
	je	.L5
	mov	edi, DWORD PTR irnet_server[rip+4]
	call	hashbin_get_next@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
.L7:
	mov	rcx, QWORD PTR [rbx]
	cmp	QWORD PTR 16[r12], rcx
	jne	.L24
.L5:
	mov	edi, DWORD PTR IRDA_SERV_INFO[rip]
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	DEBUG@PLT
.L3:
	lea	rdi, irnet_server[rip]
	call	spin_unlock_bh@PLT
	mov	edi, DWORD PTR IRDA_SERV_TRACE[rip]
	mov	rdx, r12
	lea	rsi, .LC4[rip]
	call	DEXIT@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	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	edi, DWORD PTR irnet_server[rip+4]
	call	hashbin_get_first@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR irnet_server[rip+4]
	call	hashbin_get_next@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
.L9:
	xor	edi, edi
	lea	rsi, 32[r12]
	call	test_bit@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR DEV_ADDR_ANY[rip]
	cmp	QWORD PTR 16[r12], rax
	jne	.L8
	mov	rax, QWORD PTR 8[r12]
	cmp	BYTE PTR [rax], 0
	jne	.L8
	cmp	QWORD PTR 24[r12], 0
	je	.L8
	mov	edi, DWORD PTR IRDA_SERV_INFO[rip]
	mov	rdx, r12
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	DEBUG@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rcx, QWORD PTR 8[rax]
	mov	edi, DWORD PTR IRDA_SERV_INFO[rip]
	mov	r12, rax
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	DEBUG@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r12d, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	irnet_find_socket, .-irnet_find_socket
	.comm	irnet_server,8,8
	.comm	IRDA_SERV_TRACE,4,4
	.comm	IRDA_SERV_INFO,4,4
	.comm	DEV_ADDR_ANY,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_irnet_irda.c_irnet_find_socket.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(self=0x%p)\012\000"
	.align	2
.LC1:
	.ascii	"Socket 0x%p matches rname ``%s''.\012\000"
	.align	2
.LC2:
	.ascii	"Socket 0x%p matches daddr %#08x.\012\000"
	.align	2
.LC3:
	.ascii	"Socket 0x%p is free.\012\000"
	.align	2
.LC4:
	.ascii	" - new = 0x%p\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	irnet_find_socket, %function
irnet_find_socket:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r6, .L28
	mov	r2, r0
	ldr	r1, .L28+4
	ldr	r0, [r6]
	bl	DENTER
	ldr	r0, [r7, #20]
	bl	irttp_get_daddr
	mov	r3, r0
	ldr	r0, [r7, #20]
	str	r3, [r7]
	bl	irttp_get_saddr
	mov	r3, r0
	mov	r0, r7
	str	r3, [r7, #24]
	bl	irnet_daddr_to_dname
	mov	r4, r0
	ldr	r5, .L28+8
	mov	r0, r5
	bl	spin_lock_bh
	cmp	r4, #0
	bne	.L2
	mov	r1, r4
	ldr	r2, [r7, #4]
	ldr	r0, [r5, #4]
	bl	hashbin_find
	cmp	r0, #0
	bne	.L26
.L2:
	ldr	r0, [r5, #4]
	bl	hashbin_get_first
	subs	r4, r0, #0
	bne	.L7
	b	.L4
.L27:
	ldr	r2, [r4]
	cmp	r3, r2
	beq	.L5
	ldr	r0, [r5, #4]
	bl	hashbin_get_next
	subs	r4, r0, #0
	beq	.L4
.L7:
	ldr	r3, [r7]
	ldr	r2, [r4, #8]
	cmp	r2, r3
	bne	.L27
.L5:
	ldr	r2, .L28+12
	ldr	r1, .L28+16
	ldr	r0, [r2]
	mov	r2, r4
	bl	DEBUG
.L3:
	ldr	r0, .L28+8
	bl	spin_unlock_bh
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L28+20
	bl	DEXIT
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r0, [r5, #4]
	bl	hashbin_get_first
	subs	r4, r0, #0
	beq	.L10
	ldr	r7, .L28+24
	b	.L9
.L8:
	ldr	r0, [r5, #4]
	bl	hashbin_get_next
	subs	r4, r0, #0
	beq	.L10
.L9:
	mov	r0, #0
	add	r1, r4, #16
	bl	test_bit
	cmp	r0, #0
	bne	.L8
	ldr	r2, [r4, #8]
	ldr	r3, [r7]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [r4, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L28+12
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L28+28
	bl	DEBUG
	b	.L3
.L26:
	ldr	r1, .L28+12
	mov	r4, r0
	mov	r2, r0
	ldr	r3, [r0, #4]
	ldr	r0, [r1]
	ldr	r1, .L28+32
	bl	DEBUG
	b	.L3
.L10:
	mov	r4, #0
	b	.L3
.L29:
	.align	2
.L28:
	.word	IRDA_SERV_TRACE
	.word	.LC0
	.word	irnet_server
	.word	IRDA_SERV_INFO
	.word	.LC2
	.word	.LC4
	.word	DEV_ADDR_ANY
	.word	.LC3
	.word	.LC1
	.size	irnet_find_socket, .-irnet_find_socket
	.comm	irnet_server,8,4
	.comm	IRDA_SERV_TRACE,4,4
	.comm	IRDA_SERV_INFO,4,4
	.comm	DEV_ADDR_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
