	.file	"extr_htc_drv_beacon.c_ath9k_htc_set_tsfadjust.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"tsfadjust is: %llu for bslot: %d\n"
	.text
	.p2align 4
	.globl	ath9k_htc_set_tsfadjust
	.type	ath9k_htc_set_tsfadjust, @function
ath9k_htc_set_tsfadjust:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 4[rdi]
	mov	rbx, rsi
	call	ath9k_hw_common@PLT
	mov	rbx, QWORD PTR [rbx]
	mov	rbp, rax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	imul	eax, DWORD PTR [r12]
	cdq
	idiv	DWORD PTR ATH9K_HTC_MAX_BCN_VIF[rip]
	mov	edi, eax
	mov	r12d, eax
	call	TU_TO_USEC@PLT
	mov	edi, eax
	call	cpu_to_le64@PLT
	mov	r8d, DWORD PTR [rbx]
	movsx	rcx, r12d
	mov	rdi, rbp
	mov	DWORD PTR 4[rbx], eax
	mov	esi, DWORD PTR CONFIG[rip]
	lea	rdx, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ath_dbg@PLT
	.cfi_endproc
.LFE0:
	.size	ath9k_htc_set_tsfadjust, .-ath9k_htc_set_tsfadjust
	.comm	CONFIG,4,4
	.comm	ATH9K_HTC_MAX_BCN_VIF,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_htc_drv_beacon.c_ath9k_htc_set_tsfadjust.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tsfadjust is: %llu for bslot: %d\012\000"
	.text
	.align	2
	.global	ath9k_htc_set_tsfadjust
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_htc_set_tsfadjust, %function
ath9k_htc_set_tsfadjust:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	sub	sp, sp, #16
	ldr	r0, [r0, #4]
	bl	ath9k_hw_common
	ldr	r6, [r5]
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L1
	ldr	r2, .L8
	mov	r5, r0
	ldr	r0, [r4]
	ldr	r1, [r2]
	mul	r0, r3, r0
	bl	__aeabi_idiv
	mov	r4, r0
	bl	TU_TO_USEC
	bl	cpu_to_le64
	mov	r2, r4
	asr	r3, r4, #31
	str	r0, [r6, #4]
	ldr	ip, [r6]
	stm	sp, {r2-r3}
	ldr	r1, .L8+4
	str	ip, [sp, #8]
	mov	r0, r5
	ldr	r1, [r1]
	ldr	r2, .L8+8
	bl	ath_dbg
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	ATH9K_HTC_MAX_BCN_VIF
	.word	CONFIG
	.word	.LC0
	.size	ath9k_htc_set_tsfadjust, .-ath9k_htc_set_tsfadjust
	.comm	CONFIG,4,4
	.comm	ATH9K_HTC_MAX_BCN_VIF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
