	.file	"extr_cvmx-helper-jtag.c_cvmx_helper_qlm_jtag_shift.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cvmx_helper_qlm_jtag_shift
	.type	cvmx_helper_qlm_jtag_shift, @function
cvmx_helper_qlm_jtag_shift:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR OCTEON_CN56XX_PASS1_X[rip]
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	ebp, -1[rsi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sal	rbp, 32
	mov	ebx, edx
	or	rbp, 1
	call	OCTEON_IS_MODEL@PLT
	mov	edi, DWORD PTR CVMX_CIU_QLM_JTGD[rip]
	mov	rsi, rbp
	call	cvmx_write_csr@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR CVMX_CIU_QLM_JTGD[rip]
	call	cvmx_read_csr@PLT
	test	eax, eax
	jne	.L2
	mov	ecx, 32
	mov	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	sub	ecx, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	sar	eax, cl
	ret
	.cfi_endproc
.LFE0:
	.size	cvmx_helper_qlm_jtag_shift, .-cvmx_helper_qlm_jtag_shift
	.comm	OCTEON_CN56XX_PASS1_X,4,4
	.comm	CVMX_CIU_QLM_JTGD,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_cvmx-helper-jtag.c_cvmx_helper_qlm_jtag_shift.c"
	.text
	.align	2
	.global	cvmx_helper_qlm_jtag_shift
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvmx_helper_qlm_jtag_shift, %function
cvmx_helper_qlm_jtag_shift:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, r5, r6, lr}
	ldr	r4, .L6+4
	ldr	r0, [r3]
	mov	r5, r1
	mov	r6, r2
	bl	OCTEON_IS_MODEL
	mov	r1, #1
	ldr	r0, [r4]
	bl	cvmx_write_csr
.L2:
	ldr	r0, [r4]
	bl	cvmx_read_csr
	cmp	r0, #0
	bne	.L2
	rsb	r0, r5, #32
	asr	r0, r6, r0
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	OCTEON_CN56XX_PASS1_X
	.word	CVMX_CIU_QLM_JTGD
	.size	cvmx_helper_qlm_jtag_shift, .-cvmx_helper_qlm_jtag_shift
	.comm	OCTEON_CN56XX_PASS1_X,4,4
	.comm	CVMX_CIU_QLM_JTGD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
