	.file	"extr_ptp_clock.c_ptp_find_pin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ptp_find_pin
	.type	ptp_find_pin, @function
ptp_find_pin:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mutex_lock@PLT
	mov	rdx, QWORD PTR 8[r13]
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	jle	.L2
	lea	esi, -1[rax]
	mov	r8, QWORD PTR 8[rdx]
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rcx, 1[rax]
	cmp	rax, rsi
	je	.L2
	mov	rax, rcx
.L5:
	mov	r12d, eax
	cmp	ebx, DWORD PTR [r8+rax*8]
	jne	.L3
	cmp	DWORD PTR 4[r8+rax*8], ebp
	jne	.L3
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	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
.L2:
	.cfi_restore_state
	mov	rdi, r13
	mov	r12d, -1
	call	mutex_unlock@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ptp_find_pin, .-ptp_find_pin
	.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_ptp_clock.c_ptp_find_pin.c"
	.text
	.align	2
	.global	ptp_find_pin
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptp_find_pin, %function
ptp_find_pin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r5, r1
	mov	r6, r2
	bl	mutex_lock
	ldr	r3, [r7, #4]
	ldr	ip, [r3]
	cmp	ip, #0
	ble	.L2
	ldr	r1, [r3, #4]
	mov	r4, #0
	add	r2, r1, #4
	b	.L5
.L3:
	add	r4, r4, #1
	cmp	r4, ip
	beq	.L2
.L5:
	ldr	r3, [r1, r4, lsl #3]
	cmp	r5, r3
	bne	.L3
	ldr	r3, [r2, r4, lsl #3]
	cmp	r3, r6
	bne	.L3
	mov	r0, r7
	bl	mutex_unlock
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r7
	bl	mutex_unlock
	mvn	r4, #0
	b	.L1
	.size	ptp_find_pin, .-ptp_find_pin
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
