	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cuda_transfer_data_to
_cuda_transfer_data_to:                 ## @cuda_transfer_data_to
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movq	8(%r15), %rax
	movq	(%rax), %r12
	movl	4(%r15), %edi
	callq	*16(%r12)
	movl	%eax, %edi
	callq	_CHECK_CU
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	16(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%eax, -88(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	movq	8(%r14), %rax
	movl	(%rax,%r13,4), %esi
	callq	_FFMIN
	movl	%eax, -84(%rbp)
	movq	8(%r14), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -80(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -76(%rbp)
	movq	16(%r14), %rax
	movl	(%rax,%r13,8), %eax
	movl	%eax, -72(%rbp)
	movq	16(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movq	%rax, -64(%rbp)
	movq	_CU_MEMORYTYPE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_CU_MEMORYTYPE_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%r15), %esi
	leaq	-88(%rbp), %rdi
	callq	*8(%r12)
	movl	%eax, %edi
	callq	_CHECK_CU
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	16(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r13
	jl	LBB0_4
LBB0_9:
	leaq	-88(%rbp), %rdi
	callq	*(%r12)
	movl	%eax, %edi
	callq	_CHECK_CU
	xorl	%eax, %eax
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CU_MEMORYTYPE_DEVICE,4,2       ## @CU_MEMORYTYPE_DEVICE
	.comm	_CU_MEMORYTYPE_HOST,4,2         ## @CU_MEMORYTYPE_HOST
	.no_dead_strip	_cuda_transfer_data_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cuda_transfer_data_to
_cuda_transfer_data_to:                 ; @cuda_transfer_data_to
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	ldp	x9, x8, [x0]
	ldr	x21, [x8]
	ldr	x22, [x9]
	ldr	x8, [x22, #8]
	ldr	x23, [x8]
	ldr	x8, [x23, #16]
	ldr	w0, [x22, #4]
	blr	x8
	bl	_CHECK_CU
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	x0, [x19, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x25, _CU_MEMORYTYPE_DEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CU_MEMORYTYPE_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _CU_MEMORYTYPE_HOST@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CU_MEMORYTYPE_HOST@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x24, lsl #3]
	cbz	x8, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x24, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19]
	asr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	x8, [x19, #8]
	lsl	x27, x24, #2
	ldr	w0, [x8, x27]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x27]
	bl	_FFMIN
	str	w0, [sp, #12]
	ldp	x8, x9, [x20, #8]
	ldr	w8, [x8, x27]
	str	w8, [sp, #16]
	ldp	x8, x10, [x19, #8]
	ldr	w8, [x8, x27]
	str	w8, [sp, #20]
	lsl	x8, x24, #3
	ldr	x9, [x9, x8]
	str	w9, [sp, #24]
	ldr	x8, [x10, x8]
	str	x8, [sp, #32]
	ldr	w8, [x25]
	ldr	w9, [x26]
	stp	w8, w9, [sp, #40]
	ldr	x8, [x23, #8]
	ldr	w1, [x22]
	add	x0, sp, #8
	blr	x8
	bl	_CHECK_CU
	tbnz	w0, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x0, [x19, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	x24, w0, sxtw
	b.lt	LBB0_3
LBB0_9:
	ldr	x8, [x23]
	add	x0, sp, #8
	blr	x8
	bl	_CHECK_CU
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CU_MEMORYTYPE_DEVICE,4,2       ; @CU_MEMORYTYPE_DEVICE
	.comm	_CU_MEMORYTYPE_HOST,4,2         ; @CU_MEMORYTYPE_HOST
	.no_dead_strip	_cuda_transfer_data_to
.subsections_via_symbols
