	.file	"extr_irq-vf610-mscm-ir.c_vf610_mscm_ir_domain_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vf610_mscm_ir_domain_alloc, @function
vf610_mscm_ir_domain_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rdi, QWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	irq_domain_get_of_node@PLT
	test	eax, eax
	je	.L4
	cmp	DWORD PTR 0[rbp], 2
	je	.L16
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rdi, QWORD PTR 40[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L17
	add	rsp, 56
	.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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR [rax]
	test	r12d, r12d
	je	.L5
	mov	r14d, DWORD PTR 12[rsp]
	lea	eax, -1[r12]
	lea	r15, 1[rbx+rax]
	sub	r14d, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, DWORD PTR 8[r13]
	lea	esi, [r14+rbx]
	mov	rdx, rbx
	mov	rdi, r13
	lea	rcx, vf610_mscm_ir_irq_chip[rip]
	add	rbx, 1
	call	irq_domain_set_hwirq_and_chip@PLT
	cmp	rbx, r15
	jne	.L6
	mov	rax, QWORD PTR 8[rbp]
.L5:
	mov	rdx, QWORD PTR 0[r13]
	mov	rcx, QWORD PTR mscm_ir_data[rip]
	mov	edx, DWORD PTR [rdx]
	cmp	QWORD PTR [rcx], 0
	mov	DWORD PTR 32[rsp], edx
	mov	rdx, QWORD PTR 24[rsp]
	jne	.L18
	mov	rcx, QWORD PTR GIC_SPI[rip]
	mov	DWORD PTR 16[rsp], 3
	mov	QWORD PTR [rdx], rcx
	mov	rcx, QWORD PTR [rax]
	mov	QWORD PTR 8[rdx], rcx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 16[rdx], rax
.L8:
	mov	esi, DWORD PTR 12[rsp]
	lea	rcx, 16[rsp]
	mov	edx, r12d
	mov	rdi, r13
	call	irq_domain_alloc_irqs_parent@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 16[rsp], 1
	mov	QWORD PTR [rdx], rax
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vf610_mscm_ir_domain_alloc, .-vf610_mscm_ir_domain_alloc
	.comm	vf610_mscm_ir_irq_chip,4,4
	.comm	mscm_ir_data,8,8
	.comm	GIC_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_irq-vf610-mscm-ir.c_vf610_mscm_ir_domain_alloc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vf610_mscm_ir_domain_alloc, %function
vf610_mscm_ir_domain_alloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	ldr	r3, .L19
	sub	sp, sp, #28
	mov	r5, r0
	ldr	r0, [r0]
	mov	r7, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	irq_domain_get_of_node
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r6]
	cmp	r3, #2
	beq	.L16
.L4:
	ldr	r3, .L19+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, [r6, #4]
	cmp	r8, #0
	ldr	r9, [r3]
	beq	.L5
	mov	r4, r7
	ldr	fp, .L19+8
	sub	r9, r9, r7
	add	r10, r8, r7
.L6:
	ldr	r0, [r5, #4]
	mov	r1, r4
	str	r0, [sp]
	add	r2, r9, r4
	mov	r3, fp
	mov	r0, r5
	add	r4, r4, #1
	bl	irq_domain_set_hwirq_and_chip
	cmp	r10, r4
	bne	.L6
	ldr	r3, [r6, #4]
.L5:
	ldr	r2, .L19+12
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [sp, #16]
	cmp	r2, #0
	ldr	r2, [sp, #12]
	bne	.L18
	mov	r0, #3
	ldr	r1, .L19+16
	str	r0, [sp, #8]
	ldr	r1, [r1]
	str	r1, [r2]
	ldr	r1, [r3]
	str	r1, [r2, #4]
	ldr	r3, [r3, #4]
	str	r3, [r2, #8]
.L8:
	mov	r2, r8
	mov	r1, r7
	mov	r0, r5
	add	r3, sp, #8
	bl	irq_domain_alloc_irqs_parent
	b	.L1
.L18:
	mov	r1, #1
	ldr	r3, [r3]
	str	r1, [sp, #8]
	str	r3, [r2]
	b	.L8
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	EINVAL
	.word	vf610_mscm_ir_irq_chip
	.word	mscm_ir_data
	.word	GIC_SPI
	.size	vf610_mscm_ir_domain_alloc, .-vf610_mscm_ir_domain_alloc
	.comm	vf610_mscm_ir_irq_chip,4,4
	.comm	mscm_ir_data,4,4
	.comm	GIC_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
