	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_restore
_insert_restore:                        ## @insert_restore
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_regno_save_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %r13
	movq	(%rax,%r13,8), %rax
	movq	8(%rax), %rdi
	callq	_gcc_assert
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movl	%r14d, %r14d
	movl	%ebx, %r15d
	movq	_hard_regs_saved@GOTPCREL(%rip), %r12
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%r14), %rax
	cmpq	$1, %r14
	movq	%rax, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_regno_save_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %edi
	leal	(%r15,%r13), %esi
	callq	_TEST_HARD_REG_BIT
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_5
## %bb.7:
	movl	%r14d, %ecx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_18:
	xorl	%r14d, %r14d
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movq	_regno_save_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %r15d
	movq	_VOIDmode@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	callq	_GET_MODE
	cmpq	%r15, %rax
	je	LBB0_13
## %bb.11:
	movq	_hard_regno_nregs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r13,4), %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax,%rsi,8), %ecx
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_adjust_address
	jmp	LBB0_14
LBB0_13:
	movq	%r12, %rdi
	callq	_copy_rtx
LBB0_14:
	movq	%rax, %r15
	movq	_VOIDmode@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_GET_MODE
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_gen_rtx_REG
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_gen_rtx_SET
	movq	%rax, %r12
	movq	_reg_restore_code@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %r13
	movq	%r15, %rdi
	callq	_GET_MODE
	movl	(%r13,%rax,4), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_insert_one_insn
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.15:
	movq	%rax, %r15
	movq	_hard_regs_saved@GOTPCREL(%rip), %r12
	movq	_n_regs_saved@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_CLEAR_HARD_REG_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_SET_REGNO_REG_SET
	decl	(%r13)
	incl	%ebx
	decl	%r14d
	jne	LBB0_16
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NULL_RTX,8,3                   ## @NULL_RTX
	.comm	_regno_save_mem,8,3             ## @regno_save_mem
	.comm	_hard_regs_saved,4,2            ## @hard_regs_saved
	.comm	_VOIDmode,4,2                   ## @VOIDmode
	.comm	_hard_regno_nregs,8,3           ## @hard_regno_nregs
	.comm	_reg_restore_code,8,3           ## @reg_restore_code
	.comm	_n_regs_saved,4,2               ## @n_regs_saved
	.no_dead_strip	_insert_restore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_restore
_insert_restore:                        ; @insert_restore
	.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	x23, x4
	mov	x20, x3
	mov	x19, x2
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x22, x0
	sxtw	x26, w19
Lloh0:
	adrp	x24, _regno_save_mem@GOTPAGE
Lloh1:
	ldr	x24, [x24, _regno_save_mem@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8, w2, sxtw #3]
	ldr	x0, [x8, #8]
	bl	_gcc_assert
Lloh2:
	adrp	x25, _hard_regs_saved@GOTPAGE
Lloh3:
	ldr	x25, [x25, _hard_regs_saved@GOTPAGEOFF]
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w20, w20
	mov	w27, w19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	x20, x20, #1
	b.le	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x24]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25]
	add	w1, w27, w28
	bl	_TEST_HARD_REG_BIT
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x28, x28, #1
	cmp	x20, x28
	b.ne	LBB0_5
; %bb.7:
	mov	x27, x20
	b	LBB0_10
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	w27, #0
LBB0_10:
	ldr	x8, [x24]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x24, [x8, w27, uxtw #3]
	ldr	w21, [x23, x26, lsl #2]
Lloh4:
	adrp	x28, _VOIDmode@GOTPAGE
Lloh5:
	ldr	x28, [x28, _VOIDmode@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w21, w8
	b.eq	LBB0_14
; %bb.11:
	mov	x0, x24
	bl	_GET_MODE
	cmp	x0, x21
	b.eq	LBB0_14
; %bb.12:
Lloh6:
	adrp	x8, _hard_regno_nregs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hard_regno_nregs@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w1, [x23, x26, lsl #2]
	ldr	x8, [x8, x1, lsl #3]
	cmp	w27, w8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_adjust_address
	b	LBB0_15
LBB0_14:
	mov	x0, x24
	bl	_copy_rtx
LBB0_15:
	mov	x23, x0
	ldr	w24, [x28]
	bl	_GET_MODE
	mov	x1, x19
	bl	_gen_rtx_REG
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_gen_rtx_SET
	mov	x24, x0
Lloh9:
	adrp	x8, _reg_restore_code@GOTPAGE
Lloh10:
	ldr	x8, [x8, _reg_restore_code@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x21, [x8, x26, lsl #3]
	mov	x0, x23
	bl	_GET_MODE
	ldr	w2, [x21, x0, lsl #2]
	mov	x0, x22
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x24
	bl	_insert_one_insn
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x21, x0
Lloh12:
	adrp	x22, _n_regs_saved@GOTPAGE
Lloh13:
	ldr	x22, [x22, _n_regs_saved@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x19
	bl	_CLEAR_HARD_REG_BIT
	mov	x0, x21
	mov	x1, x19
	bl	_SET_REGNO_REG_SET
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	add	w19, w19, #1
	subs	w20, w20, #1
	b.ne	LBB0_17
LBB0_18:
	sub	w0, w27, #1
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NULL_RTX,8,3                   ; @NULL_RTX
	.comm	_regno_save_mem,8,3             ; @regno_save_mem
	.comm	_hard_regs_saved,4,2            ; @hard_regs_saved
	.comm	_VOIDmode,4,2                   ; @VOIDmode
	.comm	_hard_regno_nregs,8,3           ; @hard_regno_nregs
	.comm	_reg_restore_code,8,3           ; @reg_restore_code
	.comm	_n_regs_saved,4,2               ; @n_regs_saved
	.no_dead_strip	_insert_restore
.subsections_via_symbols
