	.file	"extr_8250_port.c_serial8250_em485_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	serial8250_em485_init
	.type	serial8250_em485_init, @function
serial8250_em485_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR [rdi], 0
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	rbp, rdi
	mov	edi, 4
	call	kmalloc@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L8
	mov	edx, DWORD PTR HRTIMER_MODE_REL[rip]
	mov	esi, DWORD PTR CLOCK_MONOTONIC[rip]
	lea	rdi, 24[rax]
	call	hrtimer_init@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR HRTIMER_MODE_REL[rip]
	mov	esi, DWORD PTR CLOCK_MONOTONIC[rip]
	lea	rdi, 16[rax]
	call	hrtimer_init@PLT
	mov	rax, QWORD PTR 0[rbp]
	lea	rcx, serial8250_em485_handle_stop_tx[rip]
	mov	rdi, rbp
	lea	rdx, serial8250_em485_handle_start_tx[rip]
	mov	QWORD PTR 8[rax], rbp
	mov	QWORD PTR 24[rax], rcx
	mov	QWORD PTR 16[rax], rdx
	mov	QWORD PTR [rax], 0
	call	serial8250_em485_rts_after_send@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	serial8250_em485_init, .-serial8250_em485_init
	.comm	serial8250_em485_handle_stop_tx,4,4
	.comm	serial8250_em485_handle_start_tx,4,4
	.comm	HRTIMER_MODE_REL,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	CLOCK_MONOTONIC,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_8250_port.c_serial8250_em485_init.c"
	.text
	.align	2
	.global	serial8250_em485_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	serial8250_em485_init, %function
serial8250_em485_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	cmp	r5, #0
	beq	.L7
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, #4
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L8
	ldr	r7, .L9+4
	ldr	r6, .L9+8
	ldr	r2, [r7]
	ldr	r1, [r6]
	add	r0, r0, #12
	bl	hrtimer_init
	ldr	r0, [r4]
	ldr	r2, [r7]
	ldr	r1, [r6]
	add	r0, r0, #8
	bl	hrtimer_init
	ldr	r3, [r4]
	ldr	r1, .L9+12
	ldr	r2, .L9+16
	mov	r0, r4
	str	r4, [r3, #4]
	str	r5, [r3]
	str	r1, [r3, #12]
	str	r2, [r3, #8]
	bl	serial8250_em485_rts_after_send
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	GFP_ATOMIC
	.word	HRTIMER_MODE_REL
	.word	CLOCK_MONOTONIC
	.word	serial8250_em485_handle_stop_tx
	.word	serial8250_em485_handle_start_tx
	.word	ENOMEM
	.size	serial8250_em485_init, .-serial8250_em485_init
	.comm	serial8250_em485_handle_stop_tx,4,4
	.comm	serial8250_em485_handle_start_tx,4,4
	.comm	HRTIMER_MODE_REL,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	CLOCK_MONOTONIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
