	.file	"extr_octeon-irq.c_octeon_irq_gpio_map.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	octeon_irq_gpio_map, @function
octeon_irq_gpio_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	rdi, QWORD PTR octeon_irq_ciu_to_irq[rip]
	mov	ebx, DWORD PTR [rax]
	add	ebx, edx
	mov	r13d, ebx
	sar	r13d, 6
	call	ARRAY_SIZE@PLT
	cmp	eax, r13d
	jbe	.L2
	mov	rsi, QWORD PTR octeon_irq_ciu_to_irq[rip]
	mov	edx, ebx
	mov	eax, r13d
	and	edx, 63
	mov	rax, QWORD PTR [rsi+rax*8]
	mov	ecx, edx
	cmp	QWORD PTR [rax+rcx*8], 0
	je	.L3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r9d, DWORD PTR handle_level_irq[rip]
	mov	ecx, r12d
	mov	esi, r13d
	mov	edi, ebp
	mov	r8d, DWORD PTR octeon_irq_gpio_chip[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	octeon_irq_set_ciu_mapping@PLT
	.cfi_endproc
.LFE0:
	.size	octeon_irq_gpio_map, .-octeon_irq_gpio_map
	.comm	octeon_irq_gpio_chip,4,4
	.comm	octeon_irq_ciu_to_irq,8,8
	.comm	handle_level_irq,4,4
	.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_octeon-irq.c_octeon_irq_gpio_map.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	octeon_irq_gpio_map, %function
octeon_irq_gpio_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	ldr	r6, .L7
	ldr	r4, [r3]
	ldr	r0, [r6]
	sub	sp, sp, #12
	mov	r7, r1
	add	r4, r2, r4
	mov	r5, r2
	bl	ARRAY_SIZE
	asr	r1, r4, #6
	cmp	r0, r1
	bls	.L2
	ldr	r3, [r6]
	and	r2, r4, #63
	ldr	r3, [r3, r1, lsl #2]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L3
.L2:
	ldr	r3, .L7+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r0, .L7+8
	ldr	r3, .L7+12
	ldr	lr, [r0]
	ldr	ip, [r3]
	mov	r0, r7
	mov	r3, r5
	stm	sp, {ip, lr}
	bl	octeon_irq_set_ciu_mapping
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	octeon_irq_ciu_to_irq
	.word	EINVAL
	.word	handle_level_irq
	.word	octeon_irq_gpio_chip
	.size	octeon_irq_gpio_map, .-octeon_irq_gpio_map
	.comm	octeon_irq_gpio_chip,4,4
	.comm	octeon_irq_ciu_to_irq,4,4
	.comm	handle_level_irq,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
