	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_init                       ## -- Begin function key_init
	.p2align	4, 0x90
_key_init:                              ## @key_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_hi@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_lo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_key_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_new_key_handler@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	__go32_my_cs
	movl	%eax, 4(%rbx)
	movq	_old_key_handler@GOTPCREL(%rip), %rsi
	movl	$9, %edi
	callq	__go32_dpmi_get_protected_mode_interrupt_vector
	movq	%rbx, %rdi
	callq	__go32_dpmi_allocate_iret_wrapper
	movl	$9, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__go32_dpmi_set_protected_mode_interrupt_vector ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hi,8,3                         ## @hi
	.comm	_lo,8,3                         ## @lo
	.comm	_key_handler,8,3                ## @key_handler
	.comm	_new_key_handler,8,2            ## @new_key_handler
	.comm	_old_key_handler,4,2            ## @old_key_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_init                       ; -- Begin function key_init
	.p2align	2
_key_init:                              ; @key_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _hi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hi@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _lo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lo@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x8, _key_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _key_handler@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x19, _new_key_handler@GOTPAGE
Lloh10:
	ldr	x19, [x19, _new_key_handler@GOTPAGEOFF]
	str	w8, [x19]
	bl	__go32_my_cs
	str	w0, [x19, #4]
Lloh11:
	adrp	x1, _old_key_handler@GOTPAGE
Lloh12:
	ldr	x1, [x1, _old_key_handler@GOTPAGEOFF]
	mov	w0, #9
	bl	__go32_dpmi_get_protected_mode_interrupt_vector
	mov	x0, x19
	bl	__go32_dpmi_allocate_iret_wrapper
	mov	w0, #9
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__go32_dpmi_set_protected_mode_interrupt_vector
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hi,8,3                         ; @hi
	.comm	_lo,8,3                         ; @lo
	.comm	_key_handler,8,3                ; @key_handler
	.comm	_new_key_handler,8,2            ; @new_key_handler
	.comm	_old_key_handler,4,2            ; @old_key_handler
.subsections_via_symbols
