	.file	"extr_tws_hdm.c_tws_init_obfl_q.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"entry"
.LC1:
	.string	"OBFL Overrun\n"
	.text
	.p2align 4
	.globl	tws_init_obfl_q
	.type	tws_init_obfl_q, @function
tws_init_obfl_q:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	edx, edx
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ecx, DWORD PTR [rdi]
	call	TWS_TRACE_DEBUG@PLT
	mov	eax, DWORD PTR tws_queue_depth[rip]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR tws_queue_depth[rip]
	lea	r13d, 1[rbx]
	add	rbx, 1
	cmp	eax, ebx
	jle	.L2
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR TWS_I2O0_HOBQPH[rip]
	mov	rdi, rbp
	mov	r13d, ebx
	mov	ecx, 32
	mov	r12d, DWORD PTR [rax+rbx*4]
	mov	edx, r12d
	sar	edx, cl
	mov	ecx, 4
	call	tws_write_reg@PLT
	mov	edx, r12d
	mov	rdi, rbp
	mov	ecx, 4
	mov	esi, DWORD PTR TWS_I2O0_HOBQPL[rip]
	call	tws_write_reg@PLT
	mov	esi, DWORD PTR TWS_I2O0_STATUS[rip]
	mov	edx, 4
	mov	rdi, rbp
	call	tws_read_reg@PLT
	test	DWORD PTR TWS_BIT13[rip], eax
	je	.L3
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	eax, DWORD PTR tws_queue_depth[rip]
.L2:
	cmp	r13d, eax
	jne	.L1
	mov	DWORD PTR 0[rbp], 0
.L1:
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	tws_init_obfl_q, .-tws_init_obfl_q
	.comm	tws_queue_depth,4,4
	.comm	TWS_I2O0_STATUS,4,4
	.comm	TWS_I2O0_HOBQPL,4,4
	.comm	TWS_I2O0_HOBQPH,4,4
	.comm	TWS_BIT13,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_tws_hdm.c_tws_init_obfl_q.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"entry\000"
	.align	2
.LC1:
	.ascii	"OBFL Overrun\012\000"
	.text
	.align	2
	.global	tws_init_obfl_q
	.syntax unified
	.arm
	.fpu softvfp
	.type	tws_init_obfl_q, %function
tws_init_obfl_q:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L10
	ldr	r3, [r0]
	mov	r2, #0
	ldr	r1, .L10+4
	mov	r4, r0
	bl	TWS_TRACE_DEBUG
	ldr	r3, [r7]
	mov	r5, #0
	cmp	r3, #0
	ble	.L2
	mov	fp, #32
	ldr	r10, .L10+8
	ldr	r9, .L10+12
	ldr	r8, .L10+16
	b	.L4
.L3:
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L2
.L4:
	ldr	r2, [r4, #8]
	mov	r3, #4
	ldr	r6, [r2, r5, lsl #2]
	ldr	r1, [r10]
	asr	r2, r6, fp
	mov	r0, r4
	bl	tws_write_reg
	mov	r2, r6
	mov	r3, #4
	ldr	r1, [r9]
	mov	r0, r4
	bl	tws_write_reg
	ldr	r3, .L10+20
	mov	r2, #4
	ldr	r1, [r3]
	mov	r0, r4
	bl	tws_read_reg
	ldr	r3, [r8]
	tst	r0, r3
	beq	.L3
	ldr	r1, .L10+24
	ldr	r0, [r4, #4]
	bl	device_printf
	mov	r2, #1
	ldr	r3, [r7]
	str	r2, [r4]
.L2:
	cmp	r5, r3
	moveq	r3, #0
	streq	r3, [r4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	tws_queue_depth
	.word	.LC0
	.word	TWS_I2O0_HOBQPH
	.word	TWS_I2O0_HOBQPL
	.word	TWS_BIT13
	.word	TWS_I2O0_STATUS
	.word	.LC1
	.size	tws_init_obfl_q, .-tws_init_obfl_q
	.comm	tws_queue_depth,4,4
	.comm	TWS_I2O0_STATUS,4,4
	.comm	TWS_I2O0_HOBQPL,4,4
	.comm	TWS_I2O0_HOBQPH,4,4
	.comm	TWS_BIT13,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
