	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backend_ctx_devices_sync_tuning ## -- Begin function backend_ctx_devices_sync_tuning
	.p2align	4, 0x90
_backend_ctx_devices_sync_tuning:       ## @backend_ctx_devices_sync_tuning
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_14
## %bb.1:
	movl	4(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.2:
	movl	$32, %edi
	movl	$2, %r13d
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movslq	%eax, %rcx
	addq	$32, %rdi
	incl	%r13d
	cmpq	%rcx, %rsi
	jge	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	8(%rdx), %r14
	movq	%rsi, %rcx
	shlq	$5, %rcx
	cmpl	$1, (%r14,%rcx)
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, 4(%r14,%rcx)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rsi), %rbx
	movslq	%eax, %rsi
	cmpq	%rsi, %rbx
	jge	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rcx), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r12d
	movq	%rdi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$1, (%r14,%r15)
	je	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, 4(%r14,%r15)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r15), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %rbx
	callq	_is_same_device_type
	movq	%rbx, %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	movl	%eax, 8(%r14,%r15)
	movl	20(%rsi), %ecx
	movl	%ecx, 28(%r14,%r15)
	movl	4(%rsi), %ecx
	movl	%ecx, 12(%r14,%r15)
	imull	16(%r14,%r15), %ecx
	movl	%ecx, 20(%r14,%r15)
	imull	%eax, %ecx
	movl	%ecx, 24(%r14,%r15)
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rdx), %eax
	cmpl	%r12d, %eax
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%rdx), %r14
	addq	$32, %r15
	incl	%r12d
	cmpl	$1, (%r14,%r15)
	jne	LBB0_8
	jmp	LBB0_11
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backend_ctx_devices_sync_tuning ; -- Begin function backend_ctx_devices_sync_tuning
	.p2align	2
_backend_ctx_devices_sync_tuning:       ; @backend_ctx_devices_sync_tuning
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x20, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_14
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.2:
	mov	x21, #0
	mov	w22, #2
	mov	w25, #32
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	x25, x25, #32
	add	w22, w22, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x24, [x20, #8]
	add	x19, x24, x21, lsl #5
	ldr	w9, [x19]
	cmp	w9, #1
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x21, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x24, x21, lsl #5
	add	x9, x8, #8
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	add	x26, x8, #28
	add	x27, x8, #12
	mov	x28, x22
	mov	x23, x25
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x24, x23
	ldr	w8, [x1]
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x1, #4]
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x19
	bl	_is_same_device_type
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8]
	add	x9, x24, x23
	ldr	w10, [x26]
	str	w10, [x9, #28]
	ldr	w10, [x27]
	stp	w8, w10, [x9, #8]
	ldr	w11, [x9, #16]
	mul	w10, w11, w10
	mul	w8, w10, w8
	stp	w10, w8, [x9, #20]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x20, #4]
	cmp	w8, w28
	b.le	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x24, [x20, #8]
	add	x23, x23, #32
	add	w28, w28, #1
	b	LBB0_8
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
