	.file	"extr_pxa-ssp.c_pxa_ssp_set_scr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pxa_ssp_set_scr, @function
pxa_ssp_set_scr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR SSCR0[rip]
	call	pxa_ssp_read_reg@PLT
	mov	edx, eax
	mov	rax, QWORD PTR PXA25x_SSP[rip]
	cmp	QWORD PTR 0[rbp], rax
	mov	eax, edx
	je	.L6
	lea	edx, -1[rbx]
	and	eax, -1048321
	sal	edx, 8
	or	edx, eax
.L3:
	mov	esi, DWORD PTR SSCR0[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pxa_ssp_write_reg@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	sub	ebx, 2
	xor	ah, dh
	mov	edx, ebx
	shr	edx, 31
	add	edx, ebx
	sar	edx
	sal	edx, 8
	or	edx, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pxa_ssp_set_scr, .-pxa_ssp_set_scr
	.comm	SSCR0,4,4
	.comm	PXA25x_SSP,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_pxa-ssp.c_pxa_ssp_set_scr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pxa_ssp_set_scr, %function
pxa_ssp_set_scr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r6, .L6
	mov	r4, r1
	ldr	r1, [r6]
	bl	pxa_ssp_read_reg
	ldr	r3, .L6+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r1, [r6]
	cmp	r2, r3
	subeq	r4, r4, #2
	addeq	r4, r4, r4, lsr #31
	bicne	r2, r0, #1044480
	asreq	r4, r4, #1
	biceq	r2, r0, #65280
	subne	r4, r4, #1
	bicne	r2, r2, #3840
	mov	r0, r5
	orr	r2, r2, r4, lsl #8
	pop	{r4, r5, r6, lr}
	b	pxa_ssp_write_reg
.L7:
	.align	2
.L6:
	.word	SSCR0
	.word	PXA25x_SSP
	.size	pxa_ssp_set_scr, .-pxa_ssp_set_scr
	.comm	SSCR0,4,4
	.comm	PXA25x_SSP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
