	.file	"extr_gic.c_arm_gic_bind_intr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arm_gic_bind_intr, @function
arm_gic_bind_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	device_get_softc@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR GIC_FIRST_SPI[rip]
	cmp	QWORD PTR [rbx], rax
	jge	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	call	CPU_EMPTY@PLT
	test	rax, rax
	jne	.L11
.L4:
	mov	rsi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdx, rbx
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	gic_bind@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR gic_irq_cpu[rip]
	lea	rsi, all_cpus[rip]
	call	intr_irq_next_cpu@PLT
	mov	rsi, rbx
	mov	edi, eax
	mov	DWORD PTR gic_irq_cpu[rip], eax
	call	CPU_SETOF@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	arm_gic_bind_intr, .-arm_gic_bind_intr
	.comm	gic_irq_cpu,4,4
	.comm	all_cpus,4,4
	.comm	GIC_FIRST_SPI,8,8
	.comm	EINVAL,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_gic.c_arm_gic_bind_intr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arm_gic_bind_intr, %function
arm_gic_bind_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	device_get_softc
	ldr	r3, .L12
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L2
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r5, r0
	mov	r0, r4
	bl	CPU_EMPTY
	cmp	r0, #0
	bne	.L11
.L4:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, [r4]
	pop	{r4, r5, r6, lr}
	b	gic_bind
.L11:
	ldr	r6, .L12+8
	ldr	r1, .L12+12
	ldr	r0, [r6]
	bl	intr_irq_next_cpu
	mov	r1, r4
	str	r0, [r6]
	bl	CPU_SETOF
	b	.L4
.L13:
	.align	2
.L12:
	.word	GIC_FIRST_SPI
	.word	EINVAL
	.word	gic_irq_cpu
	.word	all_cpus
	.size	arm_gic_bind_intr, .-arm_gic_bind_intr
	.comm	gic_irq_cpu,4,4
	.comm	all_cpus,4,4
	.comm	GIC_FIRST_SPI,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
