	.file	"extr_ti_sci_inta_msi.c_ti_sci_inta_msi_domain_alloc_irqs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to allocate IRQs %d\n"
	.text
	.p2align 4
	.globl	ti_sci_inta_msi_domain_alloc_irqs
	.type	ti_sci_inta_msi_domain_alloc_irqs, @function
ti_sci_inta_msi_domain_alloc_irqs:
.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	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_platform_device@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	dev_get_msi_domain@PLT
	test	rax, rax
	je	.L10
	cmp	QWORD PTR [rbx], 0
	js	.L11
	mov	rsi, r12
	mov	rdi, rbp
	mov	r13, rax
	call	ti_sci_inta_msi_alloc_descs@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L1
	mov	edx, eax
	mov	rsi, rbp
	mov	rdi, r13
	call	msi_domain_alloc_irqs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[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	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, 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	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	lea	rdi, 8[rbx]
	call	ti_sci_inta_msi_free_descs@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ti_sci_inta_msi_domain_alloc_irqs, .-ti_sci_inta_msi_domain_alloc_irqs
	.comm	ENODEV,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_ti_sci_inta_msi.c_ti_sci_inta_msi_domain_alloc_irqs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate IRQs %d\012\000"
	.text
	.align	2
	.global	ti_sci_inta_msi_domain_alloc_irqs
	.syntax unified
	.arm
	.fpu softvfp
	.type	ti_sci_inta_msi_domain_alloc_irqs, %function
ti_sci_inta_msi_domain_alloc_irqs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r4, r0
	mov	r6, r1
	bl	to_platform_device
	mov	r7, r0
	mov	r0, r4
	bl	dev_get_msi_domain
	subs	r5, r0, #0
	beq	.L10
	ldr	r3, [r7]
	cmp	r3, #0
	blt	.L11
	mov	r1, r6
	mov	r0, r4
	bl	ti_sci_inta_msi_alloc_descs
	subs	r2, r0, #0
	ble	.L1
	mov	r0, r5
	mov	r1, r4
	bl	msi_domain_alloc_irqs
	subs	r2, r0, #0
	bne	.L12
.L1:
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r3, .L13
	ldr	r2, [r3]
	rsb	r2, r2, #0
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	rsb	r2, r2, #0
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	ldr	r1, .L13+8
	mov	r0, r4
	str	r2, [sp, #4]
	bl	dev_err
	add	r0, r7, #4
	bl	ti_sci_inta_msi_free_descs
	ldr	r2, [sp, #4]
	b	.L1
.L14:
	.align	2
.L13:
	.word	ENODEV
	.word	EINVAL
	.word	.LC0
	.size	ti_sci_inta_msi_domain_alloc_irqs, .-ti_sci_inta_msi_domain_alloc_irqs
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
