	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function backend_ctx_find_alias_devices
_backend_ctx_find_alias_devices:        ## @backend_ctx_find_alias_devices
	.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), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.1:
	movl	$32, %edi
	movl	$2, %ebx
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	%eax, %rcx
	addq	$32, %rdi
	incl	%ebx
	cmpq	%rcx, %rdx
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	16(%r13), %r14
	movq	%rdx, %rcx
	shlq	$5, %rcx
	cmpl	$1, (%r14,%rcx)
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, 4(%r14,%rcx)
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	%eax, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rcx), %rax
	addq	$24, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	movq	%rdi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$1, (%r14,%r15)
	je	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, 4(%r14,%r15)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r15), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_is_same_device
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r14,%r15), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	movq	-16(%rsi), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movq	%rdx, -16(%rsi)
	movl	-4(%rsi), %eax
	movq	8(%r14,%r15), %rcx
	movq	24(%r14,%r15), %rdx
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	movq	%rcx, 8(%r14,%r15)
	cmpl	$1, 16(%r14,%r15)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r14,%r15)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r14,%r15)
	decl	8(%r13)
	decl	4(%r13)
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	cmpl	%r12d, %eax
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	16(%r13), %r14
	addq	$32, %r15
	incl	%r12d
	cmpl	$1, (%r14,%r15)
	jne	LBB0_7
	jmp	LBB0_12
LBB0_15:
	movl	$-1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_backend_ctx_find_alias_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function backend_ctx_find_alias_devices
_backend_ctx_find_alias_devices:        ; @backend_ctx_find_alias_devices
	.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]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x21, #0
	mov	w24, #2
	mov	w26, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x26, x26, #32
	add	w24, w24, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x25, [x20, #16]
	add	x19, x25, x21, lsl #5
	ldr	w9, [x19]
	cmp	w9, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x21, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, x21, lsl #5
	add	x9, x8, #24
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	add	x27, x8, #8
	add	x28, x8, #20
	mov	x22, x24
	mov	x23, x26
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x25, x23
	ldr	w8, [x1]
	cmp	w8, #1
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x1, #4]
	cmp	w8, #1
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	bl	_is_same_device
	cbz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x25, x23
	ldr	w9, [x8, #20]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x10, [x10]
	ldr	x11, [x27]
	str	w9, [x10, x11, lsl #2]
	add	x9, x11, #1
	str	x9, [x27]
	ldr	w9, [x28]
	ldr	x10, [x8, #24]
	ldr	x11, [x8, #8]
	str	w9, [x10, x11, lsl #2]
	add	x9, x11, #1
	str	x9, [x8, #8]
	ldr	w8, [x8, #16]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25, x23]
	cbnz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #1
	str	w8, [x25, x23]
	ldur	d0, [x20, #4]
	movi.2d	v1, #0xffffffffffffffff
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x20]
	cmp	w8, w22
	b.le	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x25, [x20, #16]
	add	x23, x23, #32
	add	w22, w22, #1
	b	LBB0_7
LBB0_15:
	mov	w0, #-1
	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
	.no_dead_strip	_backend_ctx_find_alias_devices
.subsections_via_symbols
