	.file	"extr_moxtet.c_moxtet_irq_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not add IRQ domain\n"
.LC1:
	.string	"moxtet"
	.text
	.p2align 4
	.type	moxtet_irq_setup, @function
moxtet_irq_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r8, rdi
	mov	esi, DWORD PTR MOXTET_NIRQS[rip]
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rcx, moxtet_irq_domain[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 32[rdi]
	mov	edi, DWORD PTR [rax]
	call	irq_domain_add_simple@PLT
	mov	QWORD PTR 24[rbp], rax
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR MOXTET_NIRQS[rip]
	xor	ebx, ebx
	test	eax, eax
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	add	ebx, 1
	cmp	DWORD PTR MOXTET_NIRQS[rip], ebx
	jle	.L4
.L3:
	mov	r12d, DWORD PTR 8[rbp]
	mov	edi, ebx
	call	BIT@PLT
	test	r12d, eax
	je	.L6
	mov	rdi, QWORD PTR 24[rbp]
	mov	esi, ebx
	add	ebx, 1
	call	irq_create_mapping@PLT
	cmp	DWORD PTR MOXTET_NIRQS[rip], ebx
	jg	.L3
.L4:
	mov	eax, DWORD PTR moxtet_irq_chip[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	r9, rbp
	xor	esi, esi
	mov	DWORD PTR 12[rbp], -1
	mov	ecx, DWORD PTR IRQF_ONESHOT[rip]
	lea	r8, .LC1[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	edx, DWORD PTR moxtet_irq_thread_fn[rip]
	call	request_threaded_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L16
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	call	moxtet_irq_free@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	moxtet_irq_setup, .-moxtet_irq_setup
	.comm	moxtet_irq_thread_fn,4,4
	.comm	moxtet_irq_domain,4,4
	.comm	moxtet_irq_chip,4,4
	.comm	MOXTET_NIRQS,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	ENOMEM,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_moxtet.c_moxtet_irq_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not add IRQ domain\012\000"
	.align	2
.LC1:
	.ascii	"moxtet\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	moxtet_irq_setup, %function
moxtet_irq_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	ldr	r3, [r0, #20]
	ldr	r7, .L16
	sub	sp, sp, #12
	ldr	r0, [r3]
	mov	r2, #0
	ldr	r1, [r7]
	ldr	r3, .L16+4
	str	r5, [sp]
	bl	irq_domain_add_simple
	cmp	r0, #0
	str	r0, [r5, #16]
	beq	.L2
	ldr	r3, [r7]
	cmp	r3, #0
	movgt	r4, #0
	bgt	.L3
	b	.L4
.L6:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L3:
	mov	r0, r4
	ldr	r6, [r5, #4]
	bl	BIT
	tst	r6, r0
	beq	.L6
	mov	r1, r4
	ldr	r0, [r5, #16]
	bl	irq_create_mapping
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L4:
	mvn	r0, #0
	ldr	r2, .L16+8
	ldr	r1, .L16+12
	ldr	ip, [r2]
	ldr	r3, .L16+16
	ldr	r2, .L16+20
	str	r5, [sp, #4]
	ldr	r3, [r3]
	str	r0, [r5, #8]
	ldr	r2, [r2]
	str	ip, [r5, #12]
	str	r1, [sp]
	ldr	r0, [r5]
	mov	r1, #0
	bl	request_threaded_irq
	subs	r4, r0, #0
	movge	r4, #0
	blt	.L15
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	mov	r0, r5
	bl	moxtet_irq_free
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r0, [r5, #20]
	ldr	r1, .L16+24
	bl	dev_err
	ldr	r3, .L16+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L17:
	.align	2
.L16:
	.word	MOXTET_NIRQS
	.word	moxtet_irq_domain
	.word	moxtet_irq_chip
	.word	.LC1
	.word	IRQF_ONESHOT
	.word	moxtet_irq_thread_fn
	.word	.LC0
	.word	ENOMEM
	.size	moxtet_irq_setup, .-moxtet_irq_setup
	.comm	moxtet_irq_thread_fn,4,4
	.comm	moxtet_irq_domain,4,4
	.comm	moxtet_irq_chip,4,4
	.comm	MOXTET_NIRQS,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
