	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cuda_test_instruction
_cuda_test_instruction:                 ## @cuda_test_instruction
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, (%rsp)
	leaq	L_.str(%rip), %rax
	xorl	%r14d, %r14d
	leaq	-84(%rbp), %rsi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_hc_nvrtcCreateProgram
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.1:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -80(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -72(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_hc_asprintf
	movq	$0, -56(%rbp)
	movq	(%r15), %r12
	movq	8(%r12), %rax
	movl	-84(%rbp), %edi
	leaq	-80(%rbp), %rdx
	movl	$3, %esi
	callq	*(%rax)
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi
	callq	_hcfree
	movq	$0, -96(%rbp)
	movl	-84(%rbp), %esi
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	callq	_hc_nvrtcGetProgramLogSize
	movq	_NVRTC_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.4:
	movl	-84(%rbp), %esi
	leaq	-104(%rbp), %rdx
	movq	%r15, %rdi
	callq	_hc_nvrtcGetPTXSize
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.5:
	movq	-104(%rbp), %rdi
	callq	_hcmalloc
	movq	%rax, %rbx
	movl	-84(%rbp), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_hc_nvrtcGetPTX
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rax
	xorl	%r14d, %r14d
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movq	%rax, %r12
	movq	_CUDA_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_hcfree
	cmpq	%r13, %r12
	jne	LBB0_10
## %bb.8:
	movl	-88(%rbp), %esi
	movq	%r15, %rdi
	callq	_hc_cuModuleUnload
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.9:
	leaq	-84(%rbp), %rsi
	movq	%r15, %rdi
	callq	_hc_nvrtcDestroyProgram
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	setne	%r14b
	jmp	LBB0_10
LBB0_2:
	movq	-96(%rbp), %rdi
	incq	%rdi
	callq	_hcmalloc
	movq	%rax, %rbx
	movl	-84(%rbp), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_hc_nvrtcGetProgramLog
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.3:
	movq	%rbx, %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_hcfree
	leaq	-84(%rbp), %rsi
	movq	%r15, %rdi
	callq	_hc_nvrtcDestroyProgram
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_hcfree
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_instruction"

L_.str.1:                               ## @.str.1
	.asciz	"--restrict"

L_.str.2:                               ## @.str.2
	.asciz	"--gpu-architecture"

L_.str.3:                               ## @.str.3
	.asciz	"compute_%d%d"

	.comm	_NVRTC_SUCCESS,8,3              ## @NVRTC_SUCCESS
	.comm	_CUDA_SUCCESS,8,3               ## @CUDA_SUCCESS
	.no_dead_strip	_cuda_test_instruction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cuda_test_instruction
_cuda_test_instruction:                 ; @cuda_test_instruction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x8, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #36
	mov	x2, x8
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_hc_nvrtcCreateProgram
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.1:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [sp, #40]
	add	x8, sp, #40
	add	x0, x8, #16
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_hc_asprintf
	str	xzr, [sp, #64]
	ldr	x21, [x19]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [sp, #36]
	add	x2, sp, #40
	mov	w1, #3
	blr	x8
	mov	x20, x0
	ldr	x0, [sp, #56]
	bl	_hcfree
	str	xzr, [sp, #24]
	ldr	w1, [sp, #36]
	add	x2, sp, #24
	mov	x0, x19
	bl	_hc_nvrtcGetProgramLogSize
Lloh11:
	adrp	x8, _NVRTC_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVRTC_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	w1, [sp, #36]
	add	x2, sp, #16
	mov	x0, x19
	bl	_hc_nvrtcGetPTXSize
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.3:
	ldr	x0, [sp, #16]
	bl	_hcmalloc
	mov	x20, x0
	ldr	w1, [sp, #36]
	mov	x0, x19
	mov	x2, x20
	bl	_hc_nvrtcGetPTX
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x0, sp, #12
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	blr	x8
	mov	x21, x0
Lloh14:
	adrp	x8, _CUDA_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CUDA_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	x22, [x8]
	mov	x0, x20
	bl	_hcfree
	mov	w0, #0
	cmp	x21, x22
	b.ne	LBB0_11
; %bb.5:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_hc_cuModuleUnload
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.6:
	add	x1, sp, #36
	mov	x0, x19
	bl	_hc_nvrtcDestroyProgram
	cmn	w0, #1
	cset	w0, ne
	b	LBB0_11
LBB0_7:
	ldr	x8, [sp, #24]
	add	x0, x8, #1
	bl	_hcmalloc
	mov	x20, x0
	ldr	w1, [sp, #36]
	mov	x0, x19
	mov	x2, x20
	bl	_hc_nvrtcGetProgramLog
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_puts
	mov	x0, x20
	bl	_hcfree
	add	x1, sp, #36
	mov	x0, x19
	bl	_hc_nvrtcDestroyProgram
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_hcfree
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_instruction"

l_.str.1:                               ; @.str.1
	.asciz	"--restrict"

l_.str.2:                               ; @.str.2
	.asciz	"--gpu-architecture"

l_.str.3:                               ; @.str.3
	.asciz	"compute_%d%d"

	.comm	_NVRTC_SUCCESS,8,3              ; @NVRTC_SUCCESS
	.comm	_CUDA_SUCCESS,8,3               ; @CUDA_SUCCESS
	.no_dead_strip	_cuda_test_instruction
.subsections_via_symbols
