	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a20_test
_a20_test:                              ## @a20_test
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	xorl	%edi, %edi
	callq	_set_fs
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_set_gs
	movq	_A20_TEST_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_rdfs32
	movl	%eax, %r15d
	negl	%r14d
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r13), %eax
	cmpl	$1, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	(%r15,%r13), %r12d
	movq	_A20_TEST_ADDR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movl	%r12d, %edi
	callq	_wrfs32
	xorl	%eax, %eax
	callq	_io_delay
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_rdgs32
	movl	%eax, %ebx
	incl	%r13d
	xorl	%r12d, %ebx
	je	LBB0_1
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	_A20_TEST_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r15d, %edi
	callq	_wrfs32
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A20_TEST_ADDR,8,3              ## @A20_TEST_ADDR
	.no_dead_strip	_a20_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a20_test
_a20_test:                              ; @a20_test
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w0, #0
	bl	_set_fs
	mov	w0, #65535
	bl	_set_gs
Lloh0:
	adrp	x22, _A20_TEST_ADDR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _A20_TEST_ADDR@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_rdfs32
	mov	x20, x0
	mov	w23, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, w23
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w20, w23
	add	w21, w8, #1
	ldr	x1, [x22]
	mov	x0, x21
	bl	_wrfs32
	bl	_io_delay
	ldr	x8, [x22]
	add	x0, x8, #16
	bl	_rdgs32
	add	w23, w23, #1
	eor	w21, w0, w21
	cbz	w21, LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	ldr	x1, [x22]
	mov	x0, x20
	bl	_wrfs32
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_A20_TEST_ADDR,8,3              ; @A20_TEST_ADDR
	.no_dead_strip	_a20_test
.subsections_via_symbols
