	.file	"extr_acpi_hpet.c_hpet_find_irq_rid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hpet_find_irq_rid, @function
hpet_find_irq_rid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR [rsp]
	cmp	rax, rbp
	jg	.L7
	cmp	rax, r14
	jge	.L1
.L7:
	add	r12d, 1
.L5:
	mov	esi, DWORD PTR SYS_RES_IRQ[rip]
	xor	r8d, r8d
	mov	rcx, r13
	mov	edx, r12d
	mov	edi, ebx
	call	bus_get_resource@PLT
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hpet_find_irq_rid, .-hpet_find_irq_rid
	.comm	SYS_RES_IRQ,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_acpi_hpet.c_hpet_find_irq_rid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpet_find_irq_rid, %function
hpet_find_irq_rid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, #0
	ldr	r3, .L10
	sub	sp, sp, #20
	mov	r5, r0
	mov	r7, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r9, r4
	ldr	r8, .L10+4
	b	.L4
.L8:
	ldr	r3, [sp, #8]
	cmp	r3, r6
	movgt	r2, #0
	movle	r2, #1
	cmp	r3, r7
	movlt	r2, #0
	cmp	r2, #0
	bne	.L1
	add	r4, r4, #1
.L4:
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r8]
	str	r9, [sp]
	add	r3, sp, #8
	bl	bus_get_resource
	cmp	r0, #0
	beq	.L8
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	SYS_RES_IRQ
	.size	hpet_find_irq_rid, .-hpet_find_irq_rid
	.comm	SYS_RES_IRQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
