	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_op_chain                 ## -- Begin function build_op_chain
	.p2align	4, 0x90
_build_op_chain:                        ## @build_op_chain
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	xorl	%edi, %edi
	cmpl	$2, %edx
	setge	%dil
	callq	_assert
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_new_qnode
	movq	%rax, %rbx
	movslq	%r14d, %r14
	movq	-16(%r15,%r14,8), %rax
	movq	%rax, 16(%rbx)
	movq	-8(%r15,%r14,8), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_relax_max_res
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r14d
	je	LBB0_3
## %bb.1:
	leaq	-2(%r14), %rax
	movl	$2, %r13d
	subl	%r14d, %r13d
	leaq	(%r15,%rax,8), %r15
	addq	$-8, %r15
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_new_qnode
	movq	%rax, %rbx
	movq	(%r15,%r14,8), %rax
	movq	%rax, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	%rbx, %rdi
	callq	_relax_max_res
	decq	%r14
	movq	%rbx, %r12
	cmpl	%r14d, %r13d
	jne	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	%rbx, %rax
	addq	$24, %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	_build_op_chain                 ; -- Begin function build_op_chain
	.p2align	2
_build_op_chain:                        ; @build_op_chain
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w2, #1
	cset	w0, gt
	bl	_assert
	mov	x0, x19
	mov	w1, #0
	bl	_new_qnode
	mov	x20, x0
	sxtw	x8, w22
	sub	x23, x8, #2
	ldr	x8, [x21, x23, lsl #3]
	str	x8, [x0, #16]
	add	x8, x21, w22, sxtw #3
	ldur	x8, [x8, #-8]
	str	x8, [x0, #8]
	bl	_relax_max_res
	mov	x22, x20
	cbz	w23, LBB0_3
; %bb.1:
	add	x8, x21, x23, lsl #3
	sub	x21, x8, #8
	mov	x24, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_new_qnode
	mov	x22, x0
	ldr	x8, [x21], #-8
	stp	x24, x8, [x0, #8]
	bl	_relax_max_res
	mov	x24, x22
	subs	w23, w23, #1
	b.ne	LBB0_2
LBB0_3:
	str	x20, [x22]
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
