	.file	"extr_bcm63xx_uart.c_bcm_uart_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcm_uart_interrupt, @function
bcm_uart_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rsi
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock@PLT
	mov	esi, DWORD PTR UART_IR_REG[rip]
	mov	rdi, rbp
	call	bcm_uart_readl@PLT
	mov	ebx, eax
	test	DWORD PTR UART_RX_INT_STAT[rip], eax
	jne	.L22
	test	DWORD PTR UART_TX_INT_STAT[rip], ebx
	jne	.L23
.L3:
	mov	edi, DWORD PTR UART_IR_EXTIP[rip]
	call	UART_IR_MASK@PLT
	test	eax, ebx
	jne	.L24
.L5:
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbp
	call	bcm_uart_do_rx@PLT
	test	DWORD PTR UART_TX_INT_STAT[rip], ebx
	je	.L3
.L23:
	mov	rdi, rbp
	call	bcm_uart_do_tx@PLT
	mov	edi, DWORD PTR UART_IR_EXTIP[rip]
	call	UART_IR_MASK@PLT
	test	eax, ebx
	je	.L5
.L24:
	mov	esi, DWORD PTR UART_EXTINP_REG[rip]
	mov	rdi, rbp
	call	bcm_uart_readl@PLT
	mov	edi, DWORD PTR UART_EXTINP_IR_CTS[rip]
	mov	ebx, eax
	call	UART_EXTINP_IRSTAT@PLT
	test	eax, ebx
	jne	.L25
.L6:
	mov	edi, DWORD PTR UART_EXTINP_IR_DCD[rip]
	call	UART_EXTINP_IRSTAT@PLT
	test	eax, ebx
	je	.L5
	and	ebx, DWORD PTR UART_EXTINP_DCD_MASK[rip]
	mov	rdi, rbp
	mov	esi, ebx
	call	uart_handle_dcd_change@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR UART_EXTINP_CTS_MASK[rip]
	mov	rdi, rbp
	and	esi, ebx
	call	uart_handle_cts_change@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bcm_uart_interrupt, .-bcm_uart_interrupt
	.comm	UART_TX_INT_STAT,4,4
	.comm	UART_RX_INT_STAT,4,4
	.comm	UART_IR_REG,4,4
	.comm	UART_IR_EXTIP,4,4
	.comm	UART_EXTINP_REG,4,4
	.comm	UART_EXTINP_IR_DCD,4,4
	.comm	UART_EXTINP_IR_CTS,4,4
	.comm	UART_EXTINP_DCD_MASK,4,4
	.comm	UART_EXTINP_CTS_MASK,4,4
	.comm	IRQ_HANDLED,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_bcm63xx_uart.c_bcm_uart_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm_uart_interrupt, %function
bcm_uart_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r0, r1
	bl	spin_lock
	ldr	r3, .L26
	mov	r0, r4
	ldr	r1, [r3]
	bl	bcm_uart_readl
	ldr	r3, .L26+4
	mov	r5, r0
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L22
	ldr	r3, .L26+8
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L23
.L3:
	ldr	r3, .L26+12
	ldr	r0, [r3]
	bl	UART_IR_MASK
	tst	r0, r5
	bne	.L24
.L5:
	mov	r0, r4
	bl	spin_unlock
	ldr	r3, .L26+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L22:
	mov	r0, r4
	bl	bcm_uart_do_rx
	ldr	r3, .L26+8
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L3
.L23:
	mov	r0, r4
	bl	bcm_uart_do_tx
	b	.L3
.L24:
	ldr	r3, .L26+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	bcm_uart_readl
	ldr	r3, .L26+24
	mov	r5, r0
	ldr	r0, [r3]
	bl	UART_EXTINP_IRSTAT
	tst	r0, r5
	bne	.L25
.L6:
	ldr	r3, .L26+28
	ldr	r0, [r3]
	bl	UART_EXTINP_IRSTAT
	tst	r0, r5
	beq	.L5
	ldr	r3, .L26+32
	mov	r0, r4
	ldr	r1, [r3]
	and	r1, r1, r5
	bl	uart_handle_dcd_change
	b	.L5
.L25:
	ldr	r3, .L26+36
	mov	r0, r4
	ldr	r1, [r3]
	and	r1, r1, r5
	bl	uart_handle_cts_change
	b	.L6
.L27:
	.align	2
.L26:
	.word	UART_IR_REG
	.word	UART_RX_INT_STAT
	.word	UART_TX_INT_STAT
	.word	UART_IR_EXTIP
	.word	IRQ_HANDLED
	.word	UART_EXTINP_REG
	.word	UART_EXTINP_IR_CTS
	.word	UART_EXTINP_IR_DCD
	.word	UART_EXTINP_DCD_MASK
	.word	UART_EXTINP_CTS_MASK
	.size	bcm_uart_interrupt, .-bcm_uart_interrupt
	.comm	UART_TX_INT_STAT,4,4
	.comm	UART_RX_INT_STAT,4,4
	.comm	UART_IR_REG,4,4
	.comm	UART_IR_EXTIP,4,4
	.comm	UART_EXTINP_REG,4,4
	.comm	UART_EXTINP_IR_DCD,4,4
	.comm	UART_EXTINP_IR_CTS,4,4
	.comm	UART_EXTINP_DCD_MASK,4,4
	.comm	UART_EXTINP_CTS_MASK,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
