	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hc_cuMemcpyHtoD                ## -- Begin function hc_cuMemcpyHtoD
	.p2align	4, 0x90
_hc_cuMemcpyHtoD:                       ## @hc_cuMemcpyHtoD
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movl	%esi, %edi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	*(%r15)
	movq	%rax, %rbx
	movq	_CUDA_SUCCESS@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	cmpq	(%r12), %rbx
	je	LBB0_5
## %bb.1:
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*8(%r15)
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	movq	-40(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
LBB0_4:
	callq	_event_log_error
	movl	$-1, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CUDA_SUCCESS,8,3               ## @CUDA_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cuMemcpyHtoD(): %s"

L_.str.1:                               ## @.str.1
	.asciz	"cuMemcpyHtoD(): %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hc_cuMemcpyHtoD                ; -- Begin function hc_cuMemcpyHtoD
	.p2align	2
_hc_cuMemcpyHtoD:                       ; @hc_cuMemcpyHtoD
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x8, [x21]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	blr	x8
Lloh0:
	adrp	x22, _CUDA_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CUDA_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	x8, [x21, #8]
	add	x1, sp, #8
	blr	x8
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x2, [sp, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_5:
	bl	_event_log_error
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CUDA_SUCCESS,8,3               ; @CUDA_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cuMemcpyHtoD(): %s"

l_.str.1:                               ; @.str.1
	.asciz	"cuMemcpyHtoD(): %d"

.subsections_via_symbols
