	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_invariants_to_move
_find_invariants_to_move:               ## @find_invariants_to_move
	.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	$0, -44(%rbp)
	movq	$0, -56(%rbp)
	movq	_df@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_DF_REG_SIZE
	movl	%eax, %r15d
	movq	_invariant_p@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_invariants@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_VEC_length
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	$2, %r14d
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	je	LBB0_2
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_DF_REGNO_FIRST_DEF
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_DF_REGNO_LAST_USE
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	jmp	LBB0_14
LBB0_2:
	movq	_invariant_p@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r13), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_VEC_iterate
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	xorl	%r15d, %r15d
	movl	$1, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	movl	(%r13), %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_VEC_iterate
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8, %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	(%rax), %r15d
	jmp	LBB0_6
LBB0_7:
	leaq	-56(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_best_gain_for_invariant
	testq	%rax, %rax
	jle	LBB0_10
## %bb.8:
	leaq	-56(%rbp), %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_set_move_mark
	addl	-44(%rbp), %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_best_gain_for_invariant
	testq	%rax, %rax
	jg	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_df,4,2                         ## @df
	.comm	_invariant_p,4,2                ## @invariant_p
	.comm	_invariants,4,2                 ## @invariants
	.no_dead_strip	_find_invariants_to_move
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_invariants_to_move
_find_invariants_to_move:               ; @find_invariants_to_move
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	wzr, [sp, #12]
	str	xzr, [sp]
Lloh0:
	adrp	x24, _df@GOTPAGE
Lloh1:
	ldr	x24, [x24, _df@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_DF_REG_SIZE
	mov	x20, x0
Lloh2:
	adrp	x22, _invariant_p@GOTPAGE
Lloh3:
	ldr	x22, [x22, _invariant_p@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x23, _invariants@GOTPAGE
Lloh5:
	ldr	x23, [x23, _invariants@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_VEC_length
	cbz	w0, LBB0_15
; %bb.1:
	cbz	w20, LBB0_6
; %bb.2:
	mov	w21, #0
	mov	w19, #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w20, w21
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_DF_REGNO_FIRST_DEF
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_DF_REGNO_LAST_USE
	cmp	x0, #0
	cinc	w19, w19, ne
	b	LBB0_3
LBB0_6:
	mov	w19, #2
LBB0_7:
	ldr	w0, [x22]
	ldr	w1, [x23]
	mov	w2, #0
	mov	x3, #0
	bl	_VEC_iterate
	mov	w20, #0
	cbz	x0, LBB0_12
; %bb.8:
	mov	w21, #1
	mov	w24, #8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x22]
	ldr	w1, [x23]
	mov	x2, x21
	mov	x3, #0
	bl	_VEC_iterate
	add	w21, w21, #1
	cbz	x0, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x8]
	add	w20, w20, w8
	b	LBB0_9
LBB0_12:
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #0
	mov	x3, x19
	mov	x4, x20
	bl	_best_gain_for_invariant
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.13:
	mov	w21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldr	w0, [x8]
	bl	_set_move_mark
	ldr	w8, [sp, #12]
	add	w21, w8, w21
	mov	x0, sp
	add	x1, sp, #12
	mov	x2, x21
	mov	x3, x19
	mov	x4, x20
	bl	_best_gain_for_invariant
	cmp	x0, #0
	b.gt	LBB0_14
LBB0_15:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_df,4,2                         ; @df
	.comm	_invariant_p,4,2                ; @invariant_p
	.comm	_invariants,4,2                 ; @invariants
	.no_dead_strip	_find_invariants_to_move
.subsections_via_symbols
