	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ComputeShortestPathFromNodes
_ComputeShortestPathFromNodes:          ## @ComputeShortestPathFromNodes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	(%rdi,%rdi,2), %rax
	cmpq	$0, (%rsi,%rax,8)
	jne	LBB0_4
## %bb.1:
	leaq	(%r14,%rax,8), %rax
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rax)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	cmpq	$0, -32(%rax)
	leaq	-24(%rax), %rax
	je	LBB0_2
LBB0_4:
	movq	_BROTLI_UINT32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rbx,2), %rcx
	movq	%rax, 16(%r14,%rcx,8)
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%r14,%rax,8), %rdi
	callq	_ZopfliNodeCommandLength
	subq	%rax, %rbx
	leaq	(%rbx,%rbx,2), %rcx
	movq	%rax, 16(%r14,%rcx,8)
	incq	%r15
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_7:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BROTLI_UINT32_MAX,8,3          ## @BROTLI_UINT32_MAX
	.no_dead_strip	_ComputeShortestPathFromNodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ComputeShortestPathFromNodes
_ComputeShortestPathFromNodes:          ; @ComputeShortestPathFromNodes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	mov	w8, #24
	mul	x8, x0, x8
	ldr	x8, [x1, x8]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	w8, #24
	madd	x8, x20, x8, x19
	add	x8, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x20, x20, #1
	ldur	x9, [x8, #-32]
	sub	x8, x8, #24
	cbz	x9, LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _BROTLI_UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BROTLI_UINT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x9, x20, x9, x19
	str	x8, [x9, #16]
	mov	x21, #0
	cbz	x20, LBB0_7
; %bb.5:
	mov	w22, #24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	madd	x0, x20, x22, x19
	bl	_ZopfliNodeCommandLength
	add	x21, x21, #1
	subs	x20, x20, x0
	madd	x8, x20, x22, x19
	str	x0, [x8, #16]
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BROTLI_UINT32_MAX,8,3          ; @BROTLI_UINT32_MAX
	.no_dead_strip	_ComputeShortestPathFromNodes
.subsections_via_symbols
