	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetInsert
_SetInsert:                             ## @SetInsert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_STD_INPUT_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStdHandle
	movl	%eax, %ebx
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	callq	_GetConsoleMode
	movq	_ENABLE_EXTENDED_FLAGS@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -20(%rbp)
	movq	_ENABLE_INSERT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ecx, %esi
	orl	%r14d, %esi
	movl	%ebx, %edi
	callq	_SetConsoleMode
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STD_INPUT_HANDLE,4,2           ## @STD_INPUT_HANDLE
	.comm	_ENABLE_EXTENDED_FLAGS,4,2      ## @ENABLE_EXTENDED_FLAGS
	.comm	_ENABLE_INSERT_MODE,4,2         ## @ENABLE_INSERT_MODE
	.no_dead_strip	_SetInsert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetInsert
_SetInsert:                             ; @SetInsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _STD_INPUT_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STD_INPUT_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetStdHandle
	mov	x20, x0
	add	x1, sp, #12
	bl	_GetConsoleMode
Lloh3:
	adrp	x8, _ENABLE_EXTENDED_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENABLE_EXTENDED_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
Lloh6:
	adrp	x9, _ENABLE_INSERT_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENABLE_INSERT_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w8, w8, w9
	orr	w1, w8, w19
	mov	x0, x20
	bl	_SetConsoleMode
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STD_INPUT_HANDLE,4,2           ; @STD_INPUT_HANDLE
	.comm	_ENABLE_EXTENDED_FLAGS,4,2      ; @ENABLE_EXTENDED_FLAGS
	.comm	_ENABLE_INSERT_MODE,4,2         ; @ENABLE_INSERT_MODE
	.no_dead_strip	_SetInsert
.subsections_via_symbols
