	.file	"extr_radio-gemtek-pci.c_gemtek_pci_setfrequency.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gemtek_pci_setfrequency, @function
gemtek_pci_setfrequency:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdx, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	shr	rdx, 3
	lea	r14, 16[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movabs	r13, 2951479051793528259
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15d, DWORD PTR [rdi]
	mov	rdi, r14
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, rdx
	lea	r12, 4[rsp]
	mul	r13
	shr	rdx, 2
	lea	r13d, 856[rdx]
	call	mutex_lock@PLT
	mov	QWORD PTR 8[rbx], rbp
	mov	esi, r15d
	mov	edi, 6
	mov	ebx, 9
	call	gemtek_pci_out@PLT
	mov	DWORD PTR 4[rsp], eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, r12
	mov	edi, r15d
	call	gemtek_pci_nil@PLT
	sub	ebx, 1
	jne	.L2
	mov	ebp, 16
	mov	ebx, 32768
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	mov	rdx, r12
	mov	esi, r15d
	sar	ebx
	and	edi, r13d
	call	gemtek_pci_cmd@PLT
	sub	ebp, 1
	jne	.L3
	mov	esi, r15d
	mov	edi, 16
	call	outw@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gemtek_pci_setfrequency, .-gemtek_pci_setfrequency
	.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_radio-gemtek-pci.c_gemtek_pci_setfrequency.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gemtek_pci_setfrequency, %function
gemtek_pci_setfrequency:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	mov	r4, r0
	mov	r5, r1
	ldr	r7, .L10
	ldr	r6, [r8], #8
	umull	r3, r7, r1, r7
	ldr	r3, .L10+4
	sub	sp, sp, #8
	mov	r0, r8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	mutex_lock
	str	r5, [r4, #4]
	mov	r1, r6
	mov	r0, #6
	bl	gemtek_pci_out
	mov	r4, #9
	lsr	r7, r7, #6
	add	r7, r7, #856
	str	r0, [sp]
.L2:
	mov	r1, sp
	mov	r0, r6
	bl	gemtek_pci_nil
	subs	r4, r4, #1
	bne	.L2
	mov	r5, #16
	mov	r4, #32768
.L3:
	and	r0, r4, r7
	mov	r2, sp
	mov	r1, r6
	bl	gemtek_pci_cmd
	subs	r5, r5, #1
	asr	r4, r4, #1
	bne	.L3
	mov	r1, r6
	mov	r0, #16
	bl	outw
	mov	r0, r8
	bl	mutex_unlock
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	1374389535
	.word	.LC0
	.size	gemtek_pci_setfrequency, .-gemtek_pci_setfrequency
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
