	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BrotliCreateZopfliBackwardReferences ## -- Begin function BrotliCreateZopfliBackwardReferences
	.p2align	4, 0x90
_BrotliCreateZopfliBackwardReferences:  ## @BrotliCreateZopfliBackwardReferences
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	64(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	56(%rbp), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	48(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r13
	movl	(%r13), %edi
	callq	_BROTLI_MAX_BACKWARD_LIMIT
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ZopfliNode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	1(%r15), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_BROTLI_ALLOC
	movq	_nodes@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_BROTLI_IS_OOM
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_nodes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_BrotliInitZopfliNodes
	movq	_nodes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	pushq	%rax
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_BrotliZopfliComputeShortestPath
	addq	$48, %rsp
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_BROTLI_IS_OOM
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_nodes@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_BrotliZopfliCreateCommands
	addq	$32, %rsp
	movl	(%r14), %esi
	movq	%rbx, %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BROTLI_FREE                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ZopfliNode,4,2                 ## @ZopfliNode
	.comm	_nodes,4,2                      ## @nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BrotliCreateZopfliBackwardReferences ; -- Begin function BrotliCreateZopfliBackwardReferences
	.p2align	2
_BrotliCreateZopfliBackwardReferences:  ; @BrotliCreateZopfliBackwardReferences
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x22, x7
	mov	x19, x6
	mov	x27, x5
	mov	x28, x4
	str	x3, [sp, #56]                   ; 8-byte Folded Spill
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x8, [x29, #48]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldp	x8, x26, [x29, #32]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x8, [x29, #24]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x29, #16]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w0, [x6]
	bl	_BROTLI_MAX_BACKWARD_LIMIT
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _ZopfliNode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZopfliNode@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x21, x23, #1
	mov	x0, x20
	mov	x2, x21
	bl	_BROTLI_ALLOC
Lloh3:
	adrp	x25, _nodes@GOTPAGE
Lloh4:
	ldr	x25, [x25, _nodes@GOTPAGEOFF]
	str	w0, [x25]
	mov	x0, x20
	bl	_BROTLI_IS_OOM
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x25]
	mov	x1, x21
	bl	_BrotliInitZopfliNodes
	ldr	w8, [x25]
	stp	w22, w8, [sp, #8]
	ldp	x8, x3, [sp, #48]               ; 16-byte Folded Reload
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x4, x28
	mov	x5, x27
	mov	x6, x19
	ldr	x7, [sp, #40]                   ; 8-byte Folded Reload
	bl	_BrotliZopfliComputeShortestPath
	ldr	x8, [x26]
	add	x8, x8, x0
	str	x8, [x26]
	mov	x0, x20
	bl	_BROTLI_IS_OOM
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_3:
	ldr	w3, [x25]
	ldp	x8, x5, [sp, #16]               ; 16-byte Folded Reload
	str	x8, [sp]
	mov	x0, x23
	ldp	x4, x1, [sp, #48]               ; 16-byte Folded Reload
	ldp	x7, x2, [sp, #32]               ; 16-byte Folded Reload
	mov	x6, x19
	bl	_BrotliZopfliCreateCommands
	ldr	w1, [x25]
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_BROTLI_FREE
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ZopfliNode,4,2                 ; @ZopfliNode
	.comm	_nodes,4,2                      ; @nodes
.subsections_via_symbols
