	.file	"extr_mpc52xx_uart.c_mpc52xx_uart_shutdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mpc52xx_uart_shutdown, @function
mpc52xx_uart_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR psc_ops[rip]
	mov	esi, DWORD PTR MPC52xx_PSC_RST_RX[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	[QWORD PTR 24[rax]]
	mov	rdi, rbx
	call	uart_console@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR psc_ops[rip]
	mov	esi, DWORD PTR MPC52xx_PSC_RST_TX[rip]
	mov	rdi, rbx
	call	[QWORD PTR 24[rax]]
.L2:
	mov	rax, QWORD PTR psc_ops[rip]
	mov	QWORD PTR 8[rbx], 0
	xor	esi, esi
	mov	rdi, rbx
	call	[QWORD PTR 16[rax]]
	mov	rax, QWORD PTR psc_ops[rip]
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L3
	xor	esi, esi
	mov	rdi, rbx
	call	rdx
	mov	rax, QWORD PTR psc_ops[rip]
.L3:
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbx
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	free_irq@PLT
	.cfi_endproc
.LFE0:
	.size	mpc52xx_uart_shutdown, .-mpc52xx_uart_shutdown
	.comm	psc_ops,8,8
	.comm	MPC52xx_PSC_RST_TX,4,4
	.comm	MPC52xx_PSC_RST_RX,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_mpc52xx_uart.c_mpc52xx_uart_shutdown.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpc52xx_uart_shutdown, %function
mpc52xx_uart_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L9
	ldr	r2, .L9+4
	ldr	r3, [r5]
	ldr	r1, [r2]
	ldr	r3, [r3, #12]
	blx	r3
	mov	r0, r4
	bl	uart_console
	cmp	r0, #0
	bne	.L2
	ldr	r2, .L9+8
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, [r3, #12]
	blx	r3
.L2:
	mov	r6, #0
	ldr	r3, [r5]
	mov	r1, r6
	ldr	r3, [r3, #8]
	mov	r0, r4
	str	r6, [r4, #4]
	blx	r3
	ldr	r3, [r5]
	ldr	r2, [r3, #4]
	cmp	r2, r6
	beq	.L3
	mov	r1, r6
	mov	r0, r4
	blx	r2
	ldr	r3, [r5]
.L3:
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	mov	r1, r4
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	free_irq
.L10:
	.align	2
.L9:
	.word	psc_ops
	.word	MPC52xx_PSC_RST_RX
	.word	MPC52xx_PSC_RST_TX
	.size	mpc52xx_uart_shutdown, .-mpc52xx_uart_shutdown
	.comm	psc_ops,4,4
	.comm	MPC52xx_PSC_RST_TX,4,4
	.comm	MPC52xx_PSC_RST_RX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
