	.file	"extr_cudbg_lib.c_cudbg_align_debug_buffer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cudbg_align_debug_buffer
	.type	cudbg_align_debug_buffer, @function
cudbg_align_debug_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm0, xmm0
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	movsx	rdx, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	mov	eax, edx
	sub	eax, DWORD PTR [rsi]
	test	al, 3
	jne	.L9
.L2:
	mov	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ecx, eax
	mov	rbp, rdi
	mov	rsi, rsp
	sar	ecx, 31
	shr	ecx, 30
	add	eax, ecx
	and	eax, 3
	sub	ecx, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	r12d, 4[rcx]
	lea	rdi, [rax+rdx*4]
	mov	edx, r12d
	call	memcpy@PLT
	mov	eax, DWORD PTR 0[rbp]
	add	eax, r12d
	mov	DWORD PTR 0[rbp], eax
	sub	eax, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbx], r12d
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cudbg_align_debug_buffer, .-cudbg_align_debug_buffer
	.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_cudbg_align_debug_buffer.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cudbg_align_debug_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	cudbg_align_debug_buffer, %function
cudbg_align_debug_buffer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r1, #0
	mov	r5, r0
	ldr	r3, [r4]
	ldr	r0, [r0]
	ldr	ip, .L11
	sub	r3, r0, r3
	sub	sp, sp, #24
	ands	r2, r3, #3
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	str	r1, [sp, #4]
	str	r1, [sp, #8]
	str	r1, [sp, #12]
	str	r1, [sp, #16]
	bne	.L9
.L2:
	str	r3, [r4, #8]
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	subs	r3, r1, r3
	and	r3, r3, #3
	rsbpl	r2, r3, #0
	ldr	r3, [r5, #4]
	rsb	r6, r2, #4
	mov	r2, r6
	add	r0, r3, r0, lsl #2
	add	r1, sp, #4
	bl	memcpy
	ldr	r3, [r5]
	ldr	r2, [r4]
	add	r3, r6, r3
	str	r3, [r5]
	sub	r3, r3, r2
	str	r6, [r4, #4]
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	cudbg_align_debug_buffer, .-cudbg_align_debug_buffer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
