	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decide_frame_length
_decide_frame_length:                   ## @decide_frame_length
	.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
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	movq	16(%rbx), %r15
	movq	16(%r15), %r13
	movl	12(%rdi), %esi
	movq	%rbx, %rdi
	callq	_queue_length
	xorl	%r14d, %r14d
	cmpl	$4, %eax
	jl	LBB0_26
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rbx
	movl	12(%r12), %esi
	movq	%rbx, %rdi
	callq	_queue_length
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.2:
	movl	%eax, %r14d
	leal	-3(%r14), %r13d
	decl	%r14d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_compute_affinity
	movq	16(%rbx), %rbx
	incl	%r15d
	cmpl	%r15d, %r14d
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, %r15d
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_compute_breaks
	jmp	LBB0_5
LBB0_6:
	movl	$1, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$-1, (%rbx)
	je	LBB0_26
## %bb.7:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_find_first_break
	cmpl	$3, %eax
	je	LBB0_20
## %bb.8:
	cmpl	$2, %eax
	je	LBB0_14
## %bb.9:
	cmpl	$1, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_21
## %bb.10:
	cmpq	$0, (%r12)
	js	LBB0_21
## %bb.11:
	jne	LBB0_26
## %bb.12:
	cmpl	$1, (%rbx)
	jne	LBB0_26
## %bb.13:
	xorl	%r14d, %r14d
	cmpl	$-1, (%rax)
	sete	%r14b
	incl	%r14d
	jmp	LBB0_26
LBB0_21:
	movl	(%rax), %r14d
	cmpl	$1, %r14d
	je	LBB0_26
## %bb.22:
	cmpl	$-1, %r14d
	jne	LBB0_24
## %bb.23:
	movl	$2, %r14d
	jmp	LBB0_26
LBB0_20:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$1, (%rax)
	sete	%r14b
	xorl	$3, %r14d
	jmp	LBB0_26
LBB0_14:
	cmpl	$0, 8(%r12)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_19
## %bb.15:
	movq	8(%rbx), %rax
	movq	_BREAK_RIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.16:
	movq	_BREAK_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rsi)
	je	LBB0_19
## %bb.17:
	cmpl	$1, (%rbx)
	jne	LBB0_26
## %bb.18:
	cmpl	$-1, (%rdx)
	jne	LBB0_26
LBB0_19:
	xorl	%eax, %eax
	cmpl	$1, (%rdx)
	sete	%al
	movl	$2, %r14d
	subl	%eax, %r14d
	jmp	LBB0_26
LBB0_24:
	movl	$2, %r14d
	cmpl	$-1, (%rcx)
	jne	LBB0_26
## %bb.25:
	xorl	%eax, %eax
	cmpl	$1, (%rbx)
	sete	%al
	leal	(%rax,%rax), %r14d
	incl	%r14d
LBB0_26:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BREAK_RIGHT,4,2                ## @BREAK_RIGHT
	.comm	_BREAK_LEFT,4,2                 ## @BREAK_LEFT
	.no_dead_strip	_decide_frame_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decide_frame_length
_decide_frame_length:                   ; @decide_frame_length
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	x22, [x19, #16]
	ldr	x23, [x22, #16]
	ldr	w1, [x0, #12]
	mov	x0, x19
	bl	_queue_length
	cmp	w0, #4
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_27
LBB0_2:
	ldr	x21, [x20, #16]
	ldr	w1, [x20, #12]
	mov	x0, x21
	bl	_queue_length
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.3:
	mov	w24, #0
	sub	w25, w0, #3
	sub	w26, w0, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_compute_affinity
	ldr	x21, [x21, #16]
	add	w24, w24, #1
	cmp	w26, w24
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, w25
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_compute_breaks
	b	LBB0_4
LBB0_7:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_25
; %bb.8:
	mov	x0, x19
	mov	w1, #3
	bl	_find_first_break
	cmp	w0, #3
	b.eq	LBB0_19
; %bb.9:
	cmp	w0, #2
	b.eq	LBB0_20
; %bb.10:
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.11:
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_15
; %bb.12:
	cbnz	x8, LBB0_25
; %bb.13:
	ldr	w8, [x19]
	mov	w0, #1
	cmp	w8, #1
	b.ne	LBB0_27
; %bb.14:
	ldr	w8, [x22]
	cmn	w8, #1
	cinc	w0, w0, eq
	b	LBB0_27
LBB0_15:
	ldr	w0, [x22]
	cmp	w0, #1
	b.eq	LBB0_27
; %bb.16:
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.17:
	ldr	w8, [x23]
	cmn	w8, #1
	b.eq	LBB0_28
LBB0_18:
	mov	w0, #2
	b	LBB0_27
LBB0_19:
	ldr	w8, [x23]
	cmp	w8, #1
	mov	w8, #2
	cinc	w0, w8, ne
	b	LBB0_27
LBB0_20:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_26
; %bb.21:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _BREAK_RIGHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BREAK_RIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.22:
	ldr	w8, [x23, #4]
Lloh3:
	adrp	x9, _BREAK_LEFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BREAK_LEFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.23:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.24:
	ldr	w8, [x22]
	cmn	w8, #1
	b.eq	LBB0_26
LBB0_25:
	mov	w0, #1
	b	LBB0_27
LBB0_26:
	ldr	w8, [x22]
	cmp	w8, #1
	mov	w8, #1
	cinc	w0, w8, ne
LBB0_27:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
	ldr	w8, [x19]
	cmp	w8, #1
	mov	w8, #3
	csinc	w0, w8, wzr, eq
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BREAK_RIGHT,4,2                ; @BREAK_RIGHT
	.comm	_BREAK_LEFT,4,2                 ; @BREAK_LEFT
	.no_dead_strip	_decide_frame_length
.subsections_via_symbols
