	.file	"extr_owc_gpiobus.c_owc_gpiobus_read_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	owc_gpiobus_read_data, @function
owc_gpiobus_read_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	device_get_softc@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	GETBUS@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L11:
	.cfi_restore_state
	xor	eax, eax
	lea	r13, 20[rsp]
	call	critical_enter@PLT
	xor	eax, eax
	call	sbinuptime@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	OUTPIN@PLT
	mov	rdi, rbp
	call	LOW@PLT
	mov	edi, DWORD PTR 12[r15]
	call	DELAY@PLT
	mov	rdi, rbp
	call	INPIN@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	jne	.L3
.L4:
	xor	eax, eax
	call	sbinuptime@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	ebx, eax
	call	GETPIN@PLT
	mov	eax, DWORD PTR [r15]
	sub	ebx, r12d
	add	eax, 2
	imul	eax, DWORD PTR SBT_1US[rip]
	cmp	ebx, eax
	jl	.L13
.L3:
	xor	eax, eax
	call	critical_exit@PLT
	mov	eax, DWORD PTR [r15]
	imul	eax, DWORD PTR SBT_1US[rip]
	mov	rcx, QWORD PTR 8[rsp]
	cmp	ebx, eax
	setl	al
	movzx	eax, al
	mov	DWORD PTR [rcx], eax
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	call	sbinuptime@PLT
	mov	edx, DWORD PTR 8[r15]
	add	edx, DWORD PTR 4[r15]
	imul	edx, DWORD PTR SBT_1US[rip]
	sub	eax, r12d
	cmp	eax, edx
	jl	.L5
	mov	rdi, rbp
	call	RELBUS@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	owc_gpiobus_read_data, .-owc_gpiobus_read_data
	.comm	SBT_1US,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_owc_gpiobus.c_owc_gpiobus_read_data.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	owc_gpiobus_read_data, %function
owc_gpiobus_read_data:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L15
	sub	sp, sp, #8
	mov	r4, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	device_get_softc
	mov	r6, r0
	bl	GETBUS
	subs	r7, r0, #0
	beq	.L12
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	bl	critical_enter
	bl	sbinuptime
	mov	r5, r0
	mov	r0, r6
	bl	OUTPIN
	mov	r0, r6
	bl	LOW
	ldr	r0, [r4, #12]
	bl	DELAY
	mov	r0, r6
	bl	INPIN
	ldr	r9, .L15+4
	b	.L4
.L14:
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L3
.L4:
	bl	sbinuptime
	mov	r10, r0
	mov	r1, sp
	mov	r0, r6
	bl	GETPIN
	ldr	r3, [r4]
	ldr	r2, [r9]
	add	r3, r3, #2
	mul	r3, r2, r3
	sub	r10, r10, r5
	cmp	r10, r3
	blt	.L14
.L3:
	bl	critical_exit
	ldr	r3, [r4]
	ldr	r2, [r9]
	mul	r3, r2, r3
	cmp	r10, r3
	movge	r10, #0
	movlt	r10, #1
	str	r10, [r8]
.L5:
	bl	sbinuptime
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r2, [r9]
	add	r3, r3, r1
	mul	r3, r2, r3
	sub	r0, r0, r5
	cmp	r0, r3
	blt	.L5
	mov	r0, r6
	bl	RELBUS
	b	.L1
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	SBT_1US
	.size	owc_gpiobus_read_data, .-owc_gpiobus_read_data
	.comm	SBT_1US,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
