	.file	"extr_mic_x100.c_mic_x100_program_msi_to_src_map.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mic_x100_program_msi_to_src_map, @function
mic_x100_program_msi_to_src_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	sal	esi, 2
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movsx	rsi, esi
	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
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR MIC_X100_SBOX_MXAR0[rip]
	add	r12, QWORD PTR MIC_X100_SBOX_BASE_ADDRESS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	add	r12, rsi
	mov	rsi, r12
	call	mic_mmio_read@PLT
	mov	rsi, rsp
	mov	edi, r13d
	mov	QWORD PTR [rsp], rax
	test	ebx, ebx
	je	.L2
	call	__set_bit@PLT
.L3:
	mov	rsi, QWORD PTR [rsp]
	mov	rdx, r12
	mov	rdi, rbp
	call	mic_mmio_write@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	call	__clear_bit@PLT
	jmp	.L3
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mic_x100_program_msi_to_src_map, .-mic_x100_program_msi_to_src_map
	.comm	MIC_X100_SBOX_MXAR0,8,8
	.comm	MIC_X100_SBOX_BASE_ADDRESS,8,8
	.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_mic_x100.c_mic_x100_program_msi_to_src_map.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mic_x100_program_msi_to_src_map, %function
mic_x100_program_msi_to_src_map:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	ip, .L8
	ldr	lr, .L8+4
	ldr	ip, [ip]
	ldr	r4, [lr]
	mov	r7, r3
	add	ip, ip, r4
	ldr	r3, .L8+8
	add	r4, ip, r1, lsl #2
	sub	sp, sp, #12
	mov	r1, r4
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	mic_mmio_read
	cmp	r7, #0
	str	r0, [sp]
	mov	r1, sp
	mov	r0, r6
	beq	.L2
	bl	__set_bit
.L3:
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [sp]
	bl	mic_mmio_write
	ldr	r3, .L8+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	bl	__clear_bit
	b	.L3
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	MIC_X100_SBOX_BASE_ADDRESS
	.word	MIC_X100_SBOX_MXAR0
	.word	.LC0
	.size	mic_x100_program_msi_to_src_map, .-mic_x100_program_msi_to_src_map
	.comm	MIC_X100_SBOX_MXAR0,4,4
	.comm	MIC_X100_SBOX_BASE_ADDRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
