	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_go_to_protected_mode           ## -- Begin function go_to_protected_mode
	.p2align	4, 0x90
_go_to_protected_mode:                  ## @go_to_protected_mode
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_realmode_switch_hook
	xorl	%eax, %eax
	callq	_enable_a20
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	xorl	%eax, %eax
	callq	_reset_coprocessor
	xorl	%eax, %eax
	callq	_mask_all_interrupts
	xorl	%eax, %eax
	callq	_setup_idt
	xorl	%eax, %eax
	callq	_setup_gdt
	movq	_boot_params@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	xorl	%eax, %eax
	callq	_ds
	shll	$4, %eax
	movslq	%eax, %rsi
	addq	%r14, %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_protected_mode_jump            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A20 gate not responding, unable to boot...\n"

	.comm	_boot_params,4,2                ## @boot_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_go_to_protected_mode           ; -- Begin function go_to_protected_mode
	.p2align	2
_go_to_protected_mode:                  ; @go_to_protected_mode
	.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
	bl	_realmode_switch_hook
	bl	_enable_a20
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_puts
	bl	_die
LBB0_2:
	bl	_reset_coprocessor
	bl	_mask_all_interrupts
	bl	_setup_idt
	bl	_setup_gdt
Lloh2:
	adrp	x20, _boot_params@GOTPAGE
Lloh3:
	ldr	x20, [x20, _boot_params@GOTPAGEOFF]
	ldr	w19, [x20]
	bl	_ds
	lsl	w8, w0, #4
	add	x1, x20, w8, sxtw
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_protected_mode_jump
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A20 gate not responding, unable to boot...\n"

	.comm	_boot_params,4,2                ; @boot_params
.subsections_via_symbols
