	.file	"extr_msi.c_rtas_query_irq_number.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rtas_msi: error (%d) querying source number\n"
	.text
	.p2align 4
	.type	rtas_query_irq_number, @function
rtas_query_irq_number:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	edx, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR 8[rdi]
	mov	edi, DWORD PTR 12[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	call	rtas_config_addr@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR [rbx]
	mov	rbx, QWORD PTR [rax]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbx
	call	BUID_LO@PLT
	mov	rdi, rbx
	mov	r12d, eax
	call	BUID_HI@PLT
	push	r13
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR query_token[rip]
	mov	rcx, r14
	push	r12
	.cfi_def_cfa_offset 80
	mov	edx, 3
	mov	r9d, eax
	mov	r8d, ebp
	mov	esi, 4
	call	rtas_call@PLT
	mov	edi, eax
	mov	r12d, eax
	call	rtas_busy_delay@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	jne	.L2
	test	r12d, r12d
	jne	.L9
	mov	r12d, DWORD PTR [rsp]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtas_query_irq_number, .-rtas_query_irq_number
	.comm	query_token,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_msi.c_rtas_query_irq_number.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rtas_msi: error (%d) querying source number\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtas_query_irq_number, %function
rtas_query_irq_number:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	ldr	r3, .L11
	sub	sp, sp, #36
	mov	r7, r1
	mov	r2, #0
	ldr	r0, [r0, #8]
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	rtas_config_addr
	mov	r6, r0
	ldr	r3, [r4]
	ldr	r8, .L11+4
	ldr	r5, [r3]
.L2:
	mov	r0, r5
	ldr	r9, [r8]
	bl	BUID_HI
	mov	r4, r0
	mov	r0, r5
	bl	BUID_LO
	mov	r2, #3
	mov	r1, #4
	str	r4, [sp, #4]
	str	r0, [sp, #8]
	add	r3, sp, #20
	mov	r0, r9
	str	r7, [sp, #12]
	str	r6, [sp]
	bl	rtas_call
	mov	r4, r0
	bl	rtas_busy_delay
	cmp	r0, #0
	bne	.L2
	cmp	r4, #0
	ldreq	r4, [sp, #20]
	bne	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r1, r4
	ldr	r0, .L11+8
	bl	pr_debug
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	query_token
	.word	.LC0
	.size	rtas_query_irq_number, .-rtas_query_irq_number
	.comm	query_token,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
