	.file	"extr_cudbg_lib.c_collect_ulptx_la.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	collect_ulptx_la, @function
collect_ulptx_la:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rax, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r12, QWORD PTR [rdi]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rsi
	lea	rdx, 32[rsp]
	mov	esi, 32
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rcx
	xor	ecx, ecx
	mov	QWORD PTR 24[rsp], rdx
	call	get_scratch_buff@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR CUDBG_NUM_ULPTX[rip], 0
	mov	r13, QWORD PTR 32[rsp]
	je	.L3
	mov	QWORD PTR 8[rsp], 0
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR A_ULP_TX_LA_RDPTR_0[rip]
	mov	rdi, r12
	mov	r15, QWORD PTR 24[r13]
	mov	rbx, rax
	lea	rbp, 0[0+rax*8]
	sal	rbx, 4
	add	r15, rbp
	add	rsi, rbx
	call	t4_read_reg@PLT
	mov	rsi, QWORD PTR A_ULP_TX_LA_WRPTR_0[rip]
	mov	rdi, r12
	mov	QWORD PTR [r15], rax
	mov	r15, QWORD PTR 16[r13]
	add	rsi, rbx
	add	r15, rbp
	call	t4_read_reg@PLT
	mov	rsi, QWORD PTR A_ULP_TX_LA_RDDATA_0[rip]
	mov	rdi, r12
	mov	QWORD PTR [r15], rax
	mov	r15, QWORD PTR 8[r13]
	add	rsi, rbx
	add	r15, rbp
	call	t4_read_reg@PLT
	cmp	QWORD PTR CUDBG_NUM_ULPTX_READ[rip], 0
	mov	QWORD PTR [r15], rax
	je	.L4
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 0[r13]
	mov	rsi, QWORD PTR A_ULP_TX_LA_RDDATA_0[rip]
	mov	rdi, r12
	mov	rax, QWORD PTR [rax+rbp]
	add	rsi, rbx
	lea	r14, [rax+r15*8]
	add	r15, 1
	call	t4_read_reg@PLT
	cmp	QWORD PTR CUDBG_NUM_ULPTX_READ[rip], r15
	mov	QWORD PTR [r14], rax
	ja	.L5
.L4:
	add	QWORD PTR 8[rsp], 1
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR CUDBG_NUM_ULPTX[rip], rax
	ja	.L6
.L3:
	mov	r14, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR 24[rsp]
	mov	rsi, r14
	mov	rdi, rbx
	call	write_compression_hdr@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L14
.L7:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	release_scratch_buff@PLT
.L2:
	endbr64
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	rsi, r14
	mov	rdi, rbx
	call	compress_buff@PLT
	mov	r13d, eax
	jmp	.L7
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	collect_ulptx_la, .-collect_ulptx_la
	.comm	CUDBG_NUM_ULPTX_READ,8,8
	.comm	CUDBG_NUM_ULPTX,8,8
	.comm	A_ULP_TX_LA_WRPTR_0,8,8
	.comm	A_ULP_TX_LA_RDPTR_0,8,8
	.comm	A_ULP_TX_LA_RDDATA_0,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_cudbg_lib.c_collect_ulptx_la.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	collect_ulptx_la, %function
collect_ulptx_la:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r3]
	sub	sp, sp, #20
	ldr	r3, .L21
	str	r1, [sp, #4]
	mov	r0, r1
	add	r2, sp, #8
	mov	r1, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	get_scratch_buff
	subs	r7, r0, #0
	bne	.L1
	ldr	r3, .L21+4
	ldr	r5, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r9, .L21+8
	ldr	r8, .L21+12
.L6:
	ldr	r3, .L21+16
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r6, [r5, #12]
	add	r1, r1, r7, lsl #4
	bl	t4_read_reg
	ldr	r3, .L21+20
	lsl	r10, r7, #4
	ldr	r1, [r3]
	str	r0, [r6, r7, lsl #2]
	add	r1, r10, r1
	mov	r0, r4
	ldr	r6, [r5, #8]
	bl	t4_read_reg
	ldr	r1, [r9]
	str	r0, [r6, r7, lsl #2]
	add	r1, r10, r1
	mov	r0, r4
	ldr	r6, [r5, #4]
	bl	t4_read_reg
	ldr	r3, [r8]
	str	r0, [r6, r7, lsl #2]
	cmp	r3, #0
	lsl	r3, r7, #2
	beq	.L4
	str	r7, [sp]
	mov	r6, #0
	mov	r7, r5
	mov	r5, r4
	mov	r4, r3
.L5:
	ldr	r1, [r9]
	ldr	r3, [r7]
	mov	r0, r5
	add	r1, r10, r1
	ldr	fp, [r3, r4]
	bl	t4_read_reg
	ldr	r3, [r8]
	str	r0, [fp, r6, lsl #2]
	add	r6, r6, #1
	cmp	r3, r6
	bhi	.L5
	mov	r4, r5
	mov	r5, r7
	ldr	r7, [sp]
.L4:
	ldr	r3, .L21+4
	add	r7, r7, #1
	ldr	r3, [r3]
	cmp	r3, r7
	bhi	.L6
.L3:
	ldr	r4, [sp, #4]
	add	r0, sp, #8
	mov	r1, r4
	bl	write_compression_hdr
	subs	r7, r0, #0
	beq	.L19
.L7:
	ldr	r1, [sp, #4]
	add	r0, sp, #8
	bl	release_scratch_buff
.L2:
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r1, r4
	add	r0, sp, #8
	bl	compress_buff
	mov	r7, r0
	b	.L7
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	CUDBG_NUM_ULPTX
	.word	A_ULP_TX_LA_RDDATA_0
	.word	CUDBG_NUM_ULPTX_READ
	.word	A_ULP_TX_LA_RDPTR_0
	.word	A_ULP_TX_LA_WRPTR_0
	.size	collect_ulptx_la, .-collect_ulptx_la
	.comm	CUDBG_NUM_ULPTX_READ,4,4
	.comm	CUDBG_NUM_ULPTX,4,4
	.comm	A_ULP_TX_LA_WRPTR_0,4,4
	.comm	A_ULP_TX_LA_RDPTR_0,4,4
	.comm	A_ULP_TX_LA_RDDATA_0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
