	.file	"extr_if_malohal.c_malo_hal_getisr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	malo_hal_getisr
	.type	malo_hal_getisr, @function
malo_hal_getisr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, DWORD PTR MALO_REG_A2H_INTERRUPT_CAUSE[rip]
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	esi, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR 8[rdi]
	call	bus_space_read_4@PLT
	lea	edx, 1[rax]
	cmp	edx, 1
	ja	.L7
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	DWORD PTR [r12], eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	ebp, eax
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR MALO_REG_A2H_INTERRUPT_CAUSE[rip]
	not	ecx
	and	ecx, eax
	call	bus_space_write_4@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR MALO_REG_INT_CODE[rip]
	call	bus_space_read_4@PLT
	mov	eax, DWORD PTR [rbx]
	pop	rbx
	.cfi_def_cfa_offset 24
	and	eax, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	DWORD PTR [r12], eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	malo_hal_getisr, .-malo_hal_getisr
	.comm	MALO_REG_INT_CODE,4,4
	.comm	MALO_REG_A2H_INTERRUPT_CAUSE,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_if_malohal.c_malo_hal_getisr.c"
	.text
	.align	2
	.global	malo_hal_getisr
	.syntax unified
	.arm
	.fpu softvfp
	.type	malo_hal_getisr, %function
malo_hal_getisr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L7
	mov	r5, r0
	mov	r7, r1
	ldr	r2, [r6]
	ldr	r1, [r0, #4]
	ldr	r0, [r0, #8]
	bl	bus_space_read_4
	add	r3, r0, #1
	cmp	r3, #1
	movls	r4, #0
	bhi	.L6
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r4, r0
	ldr	r3, [r5]
	ldr	r2, [r6]
	bic	r3, r0, r3
	ldr	r1, [r5, #4]
	ldr	r0, [r5, #8]
	bl	bus_space_write_4
	ldr	r3, .L7+4
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	ldr	r0, [r5, #8]
	bl	bus_space_read_4
	ldr	r0, [r5]
	and	r4, r4, r0
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	MALO_REG_A2H_INTERRUPT_CAUSE
	.word	MALO_REG_INT_CODE
	.size	malo_hal_getisr, .-malo_hal_getisr
	.comm	MALO_REG_INT_CODE,4,4
	.comm	MALO_REG_A2H_INTERRUPT_CAUSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
