	.file	"extr_t4_hw.c_t4_get_tx_sched.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	t4_get_tx_sched
	.type	t4_get_tx_sched, @function
t4_get_tx_sched:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	je	.L2
	mov	eax, esi
	mov	ecx, DWORD PTR TP_TX_MOD_Q1_Q0_RATE_LIMIT_A[rip]
	mov	r13, rdx
	lea	rsi, 4[rsp]
	shr	eax
	mov	edx, 1
	sub	ecx, eax
	call	t4_tp_tm_pio_read@PLT
	test	bl, 1
	jne	.L3
	mov	ecx, DWORD PTR 4[rsp]
	mov	esi, ecx
	and	esi, 255
	jne	.L5
.L19:
	mov	DWORD PTR 0[r13], 0
.L2:
	test	r12, r12
	je	.L1
	mov	ecx, DWORD PTR TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A[rip]
	mov	eax, ebx
	lea	rsi, 4[rsp]
	mov	r8d, r14d
	shr	eax
	mov	edx, 1
	mov	rdi, rbp
	sub	ecx, eax
	call	t4_tp_tm_pio_read@PLT
	and	ebx, 1
	jne	.L7
	movzx	ebx, WORD PTR 4[rsp]
.L8:
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], ebx
	call	core_ticks_per_usec@PLT
	xor	edx, edx
	mov	r8d, eax
	imul	eax, ebx, 10000
	div	r8d
	mov	DWORD PTR [r12], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movzx	ebx, WORD PTR 6[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movzx	ecx, WORD PTR 6[rsp]
	mov	esi, ecx
	mov	DWORD PTR 4[rsp], ecx
	and	esi, 255
	je	.L19
.L5:
	imul	eax, DWORD PTR 0[rbp], 1000
	xor	edx, edx
	movzx	ecx, ch
	div	esi
	imul	ecx, eax
	mov	DWORD PTR 4[rsp], eax
	imul	rcx, rcx, 274877907
	shr	rcx, 35
	mov	DWORD PTR 0[r13], ecx
	jmp	.L2
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	t4_get_tx_sched, .-t4_get_tx_sched
	.comm	TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A,4,4
	.comm	TP_TX_MOD_Q1_Q0_RATE_LIMIT_A,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_t4_hw.c_t4_get_tx_sched.c"
	.text
	.global	__aeabi_uidiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	t4_get_tx_sched
	.syntax unified
	.arm
	.fpu softvfp
	.type	t4_get_tx_sched, %function
t4_get_tx_sched:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r3
	ldr	r3, .L20
	sub	sp, sp, #20
	subs	r7, r2, #0
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r8, r0
	ldr	r9, [sp, #48]
	beq	.L2
	mov	r2, #1
	ldr	r3, .L20+4
	str	r9, [sp]
	ldr	r3, [r3]
	sub	r3, r3, r1, lsr r2
	add	r1, sp, #8
	bl	t4_tp_tm_pio_read
	tst	r4, #1
	ldrhne	r5, [sp, #10]
	ldreq	r5, [sp, #8]
	strne	r5, [sp, #8]
	ands	r1, r5, #255
	bne	.L5
.L17:
	str	r1, [r7]
.L2:
	cmp	r6, #0
	beq	.L1
	mov	r2, #1
	ldr	r3, .L20+8
	str	r9, [sp]
	ldr	r3, [r3]
	add	r1, sp, #8
	sub	r3, r3, r4, lsr r2
	mov	r0, r8
	bl	t4_tp_tm_pio_read
	tst	r4, #1
	ldrheq	r4, [sp, #8]
	ldrhne	r4, [sp, #10]
	mov	r0, r8
	str	r4, [sp, #8]
	bl	core_ticks_per_usec
	mov	r1, r0
	rsb	r0, r4, r4, lsl #5
	add	r4, r4, r0, lsl #2
	add	r4, r4, r4, lsl #2
	lsl	r0, r4, #4
	bl	__aeabi_uidiv
	str	r0, [r6]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r0, [r8]
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	bl	__aeabi_uidiv
	lsr	r1, r5, #8
	and	r1, r1, #255
	mul	r1, r0, r1
	ldr	r5, .L20+12
	str	r0, [sp, #8]
	umull	r3, r1, r5, r1
	lsr	r1, r1, #3
	b	.L17
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	TP_TX_MOD_Q1_Q0_RATE_LIMIT_A
	.word	TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A
	.word	274877907
	.size	t4_get_tx_sched, .-t4_get_tx_sched
	.comm	TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A,4,4
	.comm	TP_TX_MOD_Q1_Q0_RATE_LIMIT_A,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
