	.file	"extr_samsung.c_s3c24xx_serial_resetport.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s3c24xx_serial_resetport, @function
s3c24xx_serial_resetport:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	s3c24xx_port_to_info@PLT
	mov	esi, DWORD PTR S3C2410_UCON[rip]
	mov	rdi, rbp
	mov	r12, rax
	call	rd_regl@PLT
	mov	edx, DWORD PTR [r12]
	mov	rcx, QWORD PTR PORT_S3C2440[rip]
	cmp	QWORD PTR 8[r12], rcx
	jne	.L2
	or	edx, DWORD PTR S3C2440_UCON0_DIVMASK[rip]
.L2:
	mov	esi, DWORD PTR S3C2410_UCON[rip]
	mov	rdi, rbp
	and	edx, eax
	or	rdx, QWORD PTR [rbx]
	call	wr_regl@PLT
	mov	esi, DWORD PTR S3C2410_UFCON[rip]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rdi, rbp
	or	rdx, QWORD PTR S3C2410_UFCON_RESETBOTH[rip]
	call	wr_regl@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR S3C2410_UFCON[rip]
	mov	rdi, rbp
	call	wr_regl@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	edi, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	udelay@PLT
	.cfi_endproc
.LFE0:
	.size	s3c24xx_serial_resetport, .-s3c24xx_serial_resetport
	.comm	S3C2440_UCON0_DIVMASK,4,4
	.comm	S3C2410_UFCON_RESETBOTH,8,8
	.comm	S3C2410_UFCON,4,4
	.comm	S3C2410_UCON,4,4
	.comm	PORT_S3C2440,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_samsung.c_s3c24xx_serial_resetport.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3c24xx_serial_resetport, %function
s3c24xx_serial_resetport:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	bl	s3c24xx_port_to_info
	mov	r6, r0
	ldr	r7, .L5
	mov	r0, r4
	ldr	r1, [r7]
	bl	rd_regl
	ldr	r3, .L5+4
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	ldr	r1, [r7]
	cmp	r2, r3
	ldreq	r2, .L5+8
	ldr	r3, [r6]
	ldreq	r2, [r2]
	ldr	r6, .L5+12
	orreq	r3, r3, r2
	ldr	r2, [r5]
	and	r3, r3, r0
	orr	r2, r3, r2
	mov	r0, r4
	bl	wr_regl
	ldr	r3, .L5+16
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r2, r2, r3
	mov	r0, r4
	bl	wr_regl
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [r5, #4]
	bl	wr_regl
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #1
	b	udelay
.L6:
	.align	2
.L5:
	.word	S3C2410_UCON
	.word	PORT_S3C2440
	.word	S3C2440_UCON0_DIVMASK
	.word	S3C2410_UFCON
	.word	S3C2410_UFCON_RESETBOTH
	.size	s3c24xx_serial_resetport, .-s3c24xx_serial_resetport
	.comm	S3C2440_UCON0_DIVMASK,4,4
	.comm	S3C2410_UFCON_RESETBOTH,4,4
	.comm	S3C2410_UFCON,4,4
	.comm	S3C2410_UCON,4,4
	.comm	PORT_S3C2440,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
