	.file	"extr_intr_remapping.c_set_msi_sid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	set_msi_sid
	.type	set_msi_sid, @function
set_msi_sid:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L7
	mov	rbx, rsi
	test	rsi, rsi
	je	.L7
	mov	rbp, rdi
	mov	rdi, rsi
	call	pci_is_pcie@PLT
	test	rax, rax
	mov	rax, QWORD PTR 8[rbx]
	jne	.L4
	mov	edx, DWORD PTR 4[rax]
	test	edx, edx
	jne	.L5
.L4:
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR SQ_ALL_16[rip]
	mov	rdi, rbp
	xor	r13d, r13d
	mov	esi, DWORD PTR SVT_VERIFY_SID_SQ[rip]
	sal	ecx, 8
	or	ecx, DWORD PTR [rbx]
	call	set_irte_sid@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L5:
	.cfi_restore_state
	mov	rdi, rbx
	xor	r13d, r13d
	call	pci_find_upstream_pcie_bridge@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	pci_is_pcie@PLT
	test	rax, rax
	mov	rax, QWORD PTR 8[r12]
	mov	ecx, DWORD PTR [rax]
	je	.L6
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR SQ_ALL_16[rip]
	mov	rdi, rbp
	sal	ecx, 8
	mov	esi, DWORD PTR SVT_VERIFY_BUS[rip]
	or	ecx, DWORD PTR [rax]
	call	set_irte_sid@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR SQ_ALL_16[rip]
	mov	esi, DWORD PTR SVT_VERIFY_SID_SQ[rip]
	mov	rdi, rbp
	sal	ecx, 8
	or	ecx, DWORD PTR [r12]
	call	set_irte_sid@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L7:
	.cfi_restore_state
	mov	r13d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	set_msi_sid, .-set_msi_sid
	.comm	SVT_VERIFY_SID_SQ,4,4
	.comm	SVT_VERIFY_BUS,4,4
	.comm	SQ_ALL_16,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_intr_remapping.c_set_msi_sid.c"
	.text
	.align	2
	.global	set_msi_sid
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_msi_sid, %function
set_msi_sid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	push	{r4, r5, r6, r7, r8, lr}
	beq	.L7
	mov	r6, r0
	mov	r0, r1
	mov	r4, r1
	bl	pci_is_pcie
	subs	r5, r0, #0
	ldr	r3, [r4, #4]
	bne	.L4
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L5
.L4:
	ldr	r0, [r3]
	ldr	r2, .L13
	ldr	r3, [r4]
	ldr	r1, .L13+4
	orr	r3, r3, r0, lsl #8
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r1, [r1]
	bl	set_irte_sid
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	bl	pci_find_upstream_pcie_bridge
	subs	r7, r0, #0
	beq	.L1
	bl	pci_is_pcie
	cmp	r0, #0
	ldr	r2, [r7, #4]
	beq	.L6
	ldr	r3, [r4, #4]
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, .L13
	ldr	r1, .L13+8
	orr	r3, r3, r0, lsl #8
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r1, [r1]
	bl	set_irte_sid
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	ip, [r2]
	ldr	r3, [r7]
	ldr	r2, .L13
	ldr	r1, .L13+4
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, ip, lsl #8
	bl	set_irte_sid
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mvn	r5, #0
	b	.L1
.L14:
	.align	2
.L13:
	.word	SQ_ALL_16
	.word	SVT_VERIFY_SID_SQ
	.word	SVT_VERIFY_BUS
	.size	set_msi_sid, .-set_msi_sid
	.comm	SVT_VERIFY_SID_SQ,4,4
	.comm	SVT_VERIFY_BUS,4,4
	.comm	SQ_ALL_16,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
