	.file	"extr_backend.c_run_cuda_kernel_memset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	run_cuda_kernel_memset
	.type	run_cuda_kernel_memset, @function
run_cuda_kernel_memset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	lea	esi, 15[r8]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	r8d, r8d
	cmovns	esi, r8d
	sar	esi, 4
	mov	r13d, esi
	jne	.L2
.L7:
	test	bl, 15
	jne	.L3
.L14:
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 40[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, ebx
	mov	esi, r13d
	lea	rdx, 16[rsp]
	mov	rdi, r12
	sar	eax, 31
	sal	esi, 4
	mov	DWORD PTR 16[rsp], ebp
	shr	eax, 28
	movsx	rsi, esi
	add	rsi, QWORD PTR 8[rsp]
	mov	DWORD PTR 20[rsp], ebp
	lea	ecx, [rbx+rax]
	mov	DWORD PTR 24[rsp], ebp
	and	ecx, 15
	mov	DWORD PTR 28[rsp], ebp
	sub	ecx, eax
	call	hc_cuMemcpyHtoD@PLT
	cmp	eax, -1
	jne	.L14
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 16[r14]
	lea	rdx, 8[rsp]
	mov	edi, r13d
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR 32[r14]
	mov	DWORD PTR 4[rax], ecx
	mov	rax, QWORD PTR [r14]
	mov	DWORD PTR 8[rax], esi
	mov	r15d, DWORD PTR 8[r14]
	mov	esi, r15d
	call	CEILDIV@PLT
	push	0
	.cfi_def_cfa_offset 120
	mov	esi, DWORD PTR 24[r14]
	mov	r9d, r15d
	mov	edx, eax
	mov	eax, DWORD PTR 12[r14]
	push	QWORD PTR 16[r14]
	.cfi_def_cfa_offset 128
	mov	r8d, 1
	mov	ecx, 1
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 136
	push	0
	.cfi_def_cfa_offset 144
	push	1
	.cfi_def_cfa_offset 152
	push	1
	.cfi_def_cfa_offset 160
	call	hc_cuLaunchKernel@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 112
	cmp	eax, -1
	je	.L6
	mov	esi, DWORD PTR 12[r14]
	mov	rdi, r12
	call	hc_cuStreamSynchronize@PLT
	cmp	eax, -1
	jne	.L7
.L6:
	mov	eax, -1
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	run_cuda_kernel_memset, .-run_cuda_kernel_memset
	.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_backend.c_run_cuda_kernel_memset.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run_cuda_kernel_memset
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_cuda_kernel_memset, %function
run_cuda_kernel_memset:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #68
	ldr	r4, [sp, #96]
	mov	r8, r3
	cmp	r4, #0
	add	ip, r4, #15
	movge	ip, r4
	ldr	r3, .L16
	str	r2, [sp, #36]
	asrs	r6, ip, #4
	mov	r7, r0
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	bne	.L2
.L7:
	ands	r0, r4, #15
	bne	.L3
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r3, [r1, #12]
	add	r2, sp, #36
	str	r2, [r3]
	ldr	r2, [r1, #20]
	ldr	r3, [r1]
	str	r8, [r2, #4]
	str	r6, [r3, #8]
	mov	r5, r1
	ldr	r9, [r1, #4]
	mov	r0, r6
	mov	r1, r9
	bl	CEILDIV
	mov	r3, #1
	mov	ip, #0
	ldr	lr, [r5, #12]
	str	r9, [sp, #4]
	ldr	r1, [r5, #8]
	str	ip, [sp, #28]
	str	ip, [sp, #16]
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r3, [sp]
	str	lr, [sp, #24]
	str	r1, [sp, #20]
	mov	r2, r0
	ldr	r1, [r5, #16]
	mov	r0, r7
	bl	hc_cuLaunchKernel
	cmn	r0, #1
	beq	.L6
	mov	r0, r7
	ldr	r1, [r5, #8]
	bl	hc_cuStreamSynchronize
	cmn	r0, #1
	bne	.L7
.L6:
	mvn	r0, #0
	b	.L1
.L3:
	rsbs	r4, r4, #0
	ldr	r1, [sp, #36]
	and	r4, r4, #15
	mov	r3, r0
	add	r1, r1, r6, lsl #4
	rsbpl	r3, r4, #0
	mov	r0, r7
	add	r2, sp, #44
	str	r8, [sp, #44]
	str	r8, [sp, #48]
	str	r8, [sp, #52]
	str	r8, [sp, #56]
	bl	hc_cuMemcpyHtoD
	cmn	r0, #1
	movne	r0, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	run_cuda_kernel_memset, .-run_cuda_kernel_memset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
