	.file	"extr_manage.c_request_nmi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	request_nmi
	.type	request_nmi, @function
request_nmi:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12d, DWORD PTR ENOTCONN[rip]
	neg	r12d
	cmp	DWORD PTR IRQ_NOTCONNECTED[rip], edi
	je	.L1
	mov	rax, QWORD PTR IRQF_SHARED[rip]
	or	rax, QWORD PTR IRQF_COND_SUSPEND[rip]
	mov	rbx, rdx
	or	rax, QWORD PTR IRQF_IRQPOLL[rip]
	test	rax, rdx
	jne	.L25
	test	QWORD PTR IRQF_PERCPU[rip], rdx
	je	.L25
	mov	r12, rsi
	test	rsi, rsi
	jne	.L27
.L25:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L27:
	.cfi_restore_state
	mov	ebp, edi
	mov	r14, rcx
	mov	r13, r8
	call	irq_to_desc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L25
	mov	rdi, rax
	call	irq_settings_can_autoenable@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, r15
	call	irq_settings_can_request@PLT
	test	eax, eax
	je	.L25
	mov	rdi, r15
	call	irq_settings_is_per_cpu_devid@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, r15
	call	irq_supports_nmi@PLT
	test	eax, eax
	je	.L25
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 32
	call	kzalloc@PLT
	mov	r8, rax
	test	rax, rax
	je	.L28
	mov	QWORD PTR 24[rax], r12
	mov	rax, QWORD PTR IRQF_NO_THREAD[rip]
	mov	rdi, r15
	or	rax, QWORD PTR IRQF_NOBALANCING[rip]
	mov	QWORD PTR 8[r8], r14
	or	rbx, rax
	mov	QWORD PTR 16[r8], r13
	mov	QWORD PTR [r8], rbx
	mov	QWORD PTR 8[rsp], r8
	call	irq_chip_pm_get@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	js	.L9
	mov	rdx, r8
	mov	rsi, r15
	mov	edi, ebp
	call	__setup_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L29
	lea	r13, 4[r15]
	xor	esi, esi
	mov	rdi, r13
	call	raw_spin_lock_irqsave@PLT
	mov	eax, DWORD PTR IRQS_NMI[rip]
	or	DWORD PTR 8[r15], eax
	mov	rdi, r15
	call	irq_nmi_setup@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L30
	xor	esi, esi
	mov	rdi, r13
	call	raw_spin_unlock_irqrestore@PLT
	jmp	.L1
.L29:
	mov	rdi, r15
	call	irq_chip_pm_put@PLT
	mov	r8, QWORD PTR 8[rsp]
.L9:
	mov	rdi, r8
	call	kfree@PLT
	jmp	.L1
.L28:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L30:
	mov	rsi, r15
	mov	edi, ebp
	call	__cleanup_nmi@PLT
	xor	esi, esi
	mov	rdi, r13
	call	raw_spin_unlock_irqrestore@PLT
	jmp	.L25
	.cfi_endproc
.LFE0:
	.size	request_nmi, .-request_nmi
	.comm	IRQ_NOTCONNECTED,4,4
	.comm	IRQS_NMI,4,4
	.comm	IRQF_SHARED,8,8
	.comm	IRQF_PERCPU,8,8
	.comm	IRQF_NO_THREAD,8,8
	.comm	IRQF_NOBALANCING,8,8
	.comm	IRQF_IRQPOLL,8,8
	.comm	IRQF_COND_SUSPEND,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOTCONN,4,4
	.comm	ENOMEM,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_manage.c_request_nmi.c"
	.text
	.align	2
	.global	request_nmi
	.syntax unified
	.arm
	.fpu softvfp
	.type	request_nmi, %function
request_nmi:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L32
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	ldr	r1, [ip]
	cmp	r1, r0
	beq	.L27
	mov	r4, r2
	ldr	r1, .L32+4
	ldr	r2, .L32+8
	mov	r8, r3
	ldr	r3, .L32+12
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	ip, ip, r2
	orr	ip, ip, r3
	tst	ip, r4
	bne	.L25
	ldr	r3, .L32+16
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L25
	cmp	r6, #0
	bne	.L28
.L25:
	ldr	r3, .L32+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L27:
	ldr	r3, .L32+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	mov	r5, r0
	bl	irq_to_desc
	subs	r7, r0, #0
	beq	.L25
	bl	irq_settings_can_autoenable
	cmp	r0, #0
	bne	.L25
	mov	r0, r7
	bl	irq_settings_can_request
	cmp	r0, #0
	beq	.L25
	mov	r0, r7
	bl	irq_settings_is_per_cpu_devid
	bl	WARN_ON
	cmp	r0, #0
	bne	.L25
	mov	r0, r7
	bl	irq_supports_nmi
	cmp	r0, #0
	beq	.L25
	ldr	r3, .L32+28
	mov	r0, #16
	ldr	r1, [r3]
	bl	kzalloc
	subs	r9, r0, #0
	beq	.L29
	ldr	r3, .L32+32
	ldr	r2, .L32+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r7
	orr	r3, r3, r2
	orr	r4, r3, r4
	ldr	r3, [sp, #32]
	str	r4, [r9]
	str	r6, [r9, #12]
	str	r8, [r9, #4]
	str	r3, [r9, #8]
	bl	irq_chip_pm_get
	subs	r4, r0, #0
	blt	.L9
	mov	r2, r9
	mov	r1, r7
	mov	r0, r5
	bl	__setup_irq
	subs	r4, r0, #0
	bne	.L30
	add	r6, r7, #4
	mov	r1, #0
	mov	r0, r6
	bl	raw_spin_lock_irqsave
	ldr	r2, .L32+40
	ldr	r3, [r7, #8]
	ldr	r2, [r2]
	mov	r0, r7
	orr	r3, r3, r2
	str	r3, [r7, #8]
	bl	irq_nmi_setup
	subs	r4, r0, #0
	bne	.L31
	mov	r0, r6
	mov	r1, #0
	bl	raw_spin_unlock_irqrestore
	b	.L1
.L30:
	mov	r0, r7
	bl	irq_chip_pm_put
.L9:
	mov	r0, r9
	bl	kfree
	b	.L1
.L29:
	ldr	r3, .L32+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L31:
	mov	r1, r7
	mov	r0, r5
	bl	__cleanup_nmi
	mov	r0, r6
	mov	r1, #0
	bl	raw_spin_unlock_irqrestore
	b	.L25
.L33:
	.align	2
.L32:
	.word	IRQ_NOTCONNECTED
	.word	IRQF_SHARED
	.word	IRQF_COND_SUSPEND
	.word	IRQF_IRQPOLL
	.word	IRQF_PERCPU
	.word	EINVAL
	.word	ENOTCONN
	.word	GFP_KERNEL
	.word	IRQF_NO_THREAD
	.word	IRQF_NOBALANCING
	.word	IRQS_NMI
	.word	ENOMEM
	.size	request_nmi, .-request_nmi
	.comm	IRQ_NOTCONNECTED,4,4
	.comm	IRQS_NMI,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IRQF_PERCPU,4,4
	.comm	IRQF_NO_THREAD,4,4
	.comm	IRQF_NOBALANCING,4,4
	.comm	IRQF_IRQPOLL,4,4
	.comm	IRQF_COND_SUSPEND,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOTCONN,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
