	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_idoms
_calc_idoms:                            ## @calc_idoms
	.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, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_ENTRY_BLOCK_PTR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_EXIT_BLOCK_PTR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%r14), %r15d
	cmpl	$2, %r15d
	jl	LBB0_20
## %bb.4:
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%rax,%r13,4)
	leal	-1(%r15), %eax
	cmpl	$2, %r15d
	movl	%eax, %r15d
	jle	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	8(%r14), %rax
	movq	64(%r14), %rcx
	movl	%r15d, %edx
	movq	(%rcx,%rdx,8), %rbx
	movslq	(%rax,%rdx,4), %r13
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%rbx), %edi
	callq	_ei_start
	movq	%rax, %r12
	movl	56(%r14), %edi
	movq	(%rbx), %rsi
	callq	_bitmap_bit_p
	testq	%rax, %rax
	je	LBB0_8
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, -56(%rbp)
	movq	%r15, %rdx
	movq	_last_basic_block@GOTPCREL(%rip), %r15
	movl	%edx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rbx), %edi
	callq	_ei_start
	movq	%rax, %r12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_ei_end_p
	testl	%eax, %eax
	je	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r14), %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%ebx, (%rax,%r12,4)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_link_roots
	movq	32(%r14), %rcx
	movq	40(%r14), %rax
	movslq	%ebx, %rdx
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%r12,4)
	movl	%r15d, (%rax,%rdx,4)
	movl	(%rax,%r13,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_eval
	cltq
	movq	24(%r14), %rcx
	movq	48(%r14), %rdx
	movl	(%rcx,%rax,4), %esi
	movslq	%ebx, %rdi
	cmpl	(%rcx,%rdi,4), %esi
	cmovgel	%r13d, %eax
	movl	%eax, (%rdx,%rdi,4)
	movq	32(%r14), %rax
	movl	(%rax,%rdi,4), %ebx
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r14), %rax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%r15b
	movq	%r12, %rdi
	callq	_ei_edge
	movq	(%rax,%r15,8), %r15
	movq	%r12, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_ei_next
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_last_basic_block@GOTPCREL(%rip), %r15
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	cmpl	%edx, %esi
	movq	%rdx, %r15
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r12
	movq	24(%r14), %r15
	movq	%r14, %rdi
	callq	_eval
	movl	(%r15,%rax,4), %esi
	movq	%r12, %r15
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ebx, %esi
	cmovll	%esi, %ebx
	movq	-56(%rbp), %r12
	jmp	LBB0_9
LBB0_20:
	movq	48(%r14), %rax
	movl	$0, 4(%rax)
	movl	(%r14), %ecx
	cmpl	$2, %ecx
	jge	LBB0_21
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	24(%r14), %rdx
	movl	$1, %esi
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	movslq	%ecx, %rdi
	incq	%rsi
	cmpq	%rdi, %rsi
	jge	LBB0_25
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movslq	4(%rax,%rsi,4), %rdi
	cmpl	4(%rdx,%rsi,4), %edi
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%rax,%rdi,4), %ecx
	movl	%ecx, 4(%rax,%rsi,4)
	movl	(%r14), %ecx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_BLOCK_PTR,8,3             ## @EXIT_BLOCK_PTR
	.comm	_ENTRY_BLOCK_PTR,8,3            ## @ENTRY_BLOCK_PTR
	.comm	_last_basic_block,8,3           ## @last_basic_block
	.no_dead_strip	_calc_idoms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_idoms
_calc_idoms:                            ; @calc_idoms
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ENTRY_BLOCK_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTRY_BLOCK_PTR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EXIT_BLOCK_PTR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EXIT_BLOCK_PTR@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w21, [x0]
	cmp	w21, #2
	b.lt	LBB0_16
; %bb.1:
	mov	x20, x1
	ldr	x24, [x8]
Lloh4:
	adrp	x25, _last_basic_block@GOTPAGE
Lloh5:
	ldr	x25, [x25, _last_basic_block@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x8, x22, lsl #2]
	sub	w8, w21, #1
	cmp	w21, #2
	mov	x21, x8
	b.le	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x19, #64]
	mov	w26, w21
	ldr	x27, [x8, w21, uxtw #3]
	ldr	x8, [x19, #8]
	ldrsw	x22, [x8, w21, uxtw #2]
	cbz	w20, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27, #12]
	bl	_ei_start
	mov	x23, x0
	ldr	w0, [x19, #56]
	ldr	x1, [x27]
	bl	_bitmap_bit_p
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [sp, #8]
	mov	x8, x25
	mov	x27, x21
	b	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27, #8]
	bl	_ei_start
	mov	x23, x0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x21
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ei_end_p
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	lsl	x23, x26, #2
	str	w27, [x8, x23]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_link_roots
	sbfiz	x9, x27, #2, #32
	ldp	x10, x8, [x19, #32]
	ldr	w11, [x8, x9]
	str	w11, [x10, x23]
	str	w21, [x8, x9]
	ldr	w23, [x8, x22, lsl #2]
	cbz	w23, LBB0_2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_eval
	sbfiz	x8, x0, #2, #32
	ldp	x9, x10, [x19, #24]
	ldr	w8, [x9, x8]
	sbfiz	x11, x23, #2, #32
	ldr	w9, [x9, x11]
	cmp	w8, w9
	csel	w8, w0, w22, lt
	ldr	x9, [x19, #48]
	str	w8, [x9, x11]
	ldr	w23, [x10, x11]
	cbnz	w23, LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #40]
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #0
	cset	w28, ne
	mov	x0, x23
	bl	_ei_edge
	ldr	x28, [x0, w28, uxtw #3]
	str	x23, [sp, #8]
	add	x0, sp, #8
	bl	_ei_next
	cmp	x28, x24
	csel	x8, x25, x28, eq
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #16]
	ldr	x8, [x8]
	ldr	w1, [x9, x8, lsl #2]
	cmp	w1, w21
	b.le	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x19, #24]
	mov	x0, x19
	bl	_eval
	ldr	w1, [x23, x0, lsl #2]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, w27
	csel	w27, w1, w27, lt
	ldr	x23, [sp, #8]
	b	LBB0_8
LBB0_16:
	ldr	x8, [x19, #48]
	str	wzr, [x8, #4]
	ldr	w9, [x19]
	cmp	w9, #2
	b.ge	LBB0_18
LBB0_17:
	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
LBB0_18:
	ldr	x10, [x19, #24]
	mov	w11, #2
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	x11, w9, sxtw
	add	x11, x11, #1
	b.ge	LBB0_17
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	lsl	x13, x11, #2
	ldrsw	x12, [x8, x13]
	ldr	w13, [x10, x13]
	cmp	w12, w13
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [x8, x12, lsl #2]
	str	w9, [x8, x11, lsl #2]
	ldr	w9, [x19]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_BLOCK_PTR,8,3             ; @EXIT_BLOCK_PTR
	.comm	_ENTRY_BLOCK_PTR,8,3            ; @ENTRY_BLOCK_PTR
	.comm	_last_basic_block,8,3           ; @last_basic_block
	.no_dead_strip	_calc_idoms
.subsections_via_symbols
