	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function backend_session_update_mp
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_backend_session_update_mp
	.p2align	4, 0x90
_backend_session_update_mp:             ## @backend_session_update_mp
	.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	8(%rdi), %r13
	xorl	%ecx, %ecx
	cmpl	$0, (%r13)
	je	LBB0_19
## %bb.1:
	movq	(%rdi), %rax
	cmpl	$1, (%rax)
	je	LBB0_19
## %bb.2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r13)
	jle	LBB0_19
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	movl	$72, %ebx
	xorl	%r12d, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	4(%r13), %rax
	addq	$80, %rbx
	cmpq	%rax, %r12
	jge	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r14
	cmpl	$1, -72(%r14,%rbx)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, -68(%r14,%rbx)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14,%rbx), %rax
	movq	$0, 24(%rax)
	movl	8(%r15), %eax
	movq	-8(%r14,%rbx), %rcx
	movl	%eax, 16(%rcx)
	cmpl	$1, -64(%r14,%rbx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%r14,%rbx), %ecx
	movl	-16(%r14,%rbx), %esi
	movl	4(%r15), %edx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_hc_cuMemcpyHtoD
	movl	$-1, %ecx
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-56(%r14,%rbx), %ecx
	movl	-20(%r14,%rbx), %esi
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	_hc_cuMemcpyHtoD
	movl	$-1, %ecx
	cmpl	$-1, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, -60(%r14,%rbx)
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-24(%r14,%rbx), %esi
	movq	-32(%r14,%rbx), %rax
	movl	12(%rax), %r8d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$3, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	movl	$-1, %ecx
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-24(%r14,%rbx), %esi
	movq	-32(%r14,%rbx), %rax
	movl	16(%rax), %r8d
	movq	%r15, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-24(%r14,%rbx), %esi
	movq	-32(%r14,%rbx), %rax
	movl	20(%rax), %r8d
	movq	%r15, %rdi
	movl	$5, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-24(%r14,%rbx), %esi
	movq	-32(%r14,%rbx), %rax
	movl	24(%rax), %r8d
	movq	%r15, %rdi
	movl	$6, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-24(%r14,%rbx), %esi
	movq	-32(%r14,%rbx), %rax
	movl	28(%rax), %r8d
	movq	%r15, %rdi
	movl	$7, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-40(%r14,%rbx), %edx
	movq	_CL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-48(%r14,%rbx), %esi
	movl	-44(%r14,%rbx), %r9d
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movl	%eax, (%rsp)
	movl	$0, 8(%rsp)
	xorl	%r8d, %r8d
	callq	_hc_clEnqueueWriteBuffer
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%r14,%rbx), %esi
	movl	-56(%r14,%rbx), %r9d
	movl	-52(%r14,%rbx), %edx
	movq	_CL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movl	%eax, (%rsp)
	movl	$0, 8(%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_hc_clEnqueueWriteBuffer
	cmpl	$-1, %eax
	movl	$-1, %ecx
	jne	LBB0_4
	jmp	LBB0_19
LBB0_18:
	xorl	%ecx, %ecx
	jmp	LBB0_19
LBB0_20:
	movl	$-1, %ecx
LBB0_19:
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_TRUE,4,2                    ## @CL_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backend_session_update_mp      ; -- Begin function backend_session_update_mp
	.p2align	2
_backend_session_update_mp:             ; @backend_session_update_mp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_18
; %bb.2:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.3:
	mov	x21, #0
	ldr	x22, [x19, #16]
	mov	w23, #72
Lloh0:
	adrp	x24, _CL_TRUE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CL_TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	add	x23, x23, #80
	cmp	x21, x8
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x20, #8]
	add	x8, x25, x23
	ldur	w9, [x8, #-72]
	cmp	w9, #1
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x8, #-68]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x25, x23
	ldr	x8, [x26]
	str	xzr, [x8, #24]
	ldr	w8, [x22, #8]
	ldur	x9, [x26, #-8]
	str	w8, [x9, #16]
	ldur	w8, [x26, #-64]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w1, [x26, #-16]
	ldr	w2, [x22, #4]
	ldur	w3, [x26, #-44]
	mov	x0, x19
	bl	_hc_cuMemcpyHtoD
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x25, x23
	ldur	w1, [x8, #-20]
	ldr	w2, [x22]
	ldur	w3, [x8, #-56]
	mov	x0, x19
	bl	_hc_cuMemcpyHtoD
	cmn	w0, #1
	b.eq	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x26, #-60]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x25, x23
	ldur	w1, [x26, #-24]
	ldur	x8, [x26, #-32]
	ldr	w4, [x8, #12]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w1, [x26, #-24]
	ldur	x8, [x26, #-32]
	ldr	w4, [x8, #16]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w1, [x26, #-24]
	ldur	x8, [x26, #-32]
	ldr	w4, [x8, #20]
	mov	x0, x19
	mov	w2, #5
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w1, [x26, #-24]
	ldur	x8, [x26, #-32]
	ldr	w4, [x8, #24]
	mov	x0, x19
	mov	w2, #6
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w1, [x26, #-24]
	ldur	x8, [x26, #-32]
	ldr	w4, [x8, #28]
	mov	x0, x19
	mov	w2, #7
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, x23
	ldp	w5, w2, [x25, #-44]
	ldr	w3, [x24]
	ldur	w1, [x25, #-48]
	ldr	w6, [x22, #4]
	stp	xzr, xzr, [sp]
	mov	x0, x19
	mov	w4, #0
	mov	w7, #0
	bl	_hc_clEnqueueWriteBuffer
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w1, [x25, #-52]
	ldr	w3, [x24]
	ldur	w5, [x25, #-56]
	ldr	w6, [x22]
	stp	xzr, xzr, [sp]
	mov	x0, x19
	mov	w4, #0
	mov	w7, #0
	bl	_hc_clEnqueueWriteBuffer
	cmn	w0, #1
	b.ne	LBB0_4
	b	LBB0_19
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_TRUE,4,2                    ; @CL_TRUE
.subsections_via_symbols
