	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_rgs
	movq	_gs@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	-280(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$7, %esi
	movl	%esi, -280(%rbp)
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	orl	(%rax), %edx
	movq	_PROT_EXEC@GOTPCREL(%rip), %r15
	orl	(%r15), %edx
	movq	_MAP_ANON@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	xorl	%edi, %edi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, -272(%rbp)
	movq	_MAP_FAILED@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-280(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sigaltstack
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	leaq	-200(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_SA_SIGINFO@GOTPCREL(%rip), %rax
	movq	_SA_ONSTACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_sig_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movl	%ecx, -184(%rbp)
	movq	_SIGBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	_SIGSEGV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-200(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-200(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r15), %edx
	movq	_MAP_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r12), %ecx
	movl	$65536, %edi                    ## imm = 0x10000
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	movq	_vm86_code_start@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_vm86_code_end@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	%rsi, %rdx
	movq	%rbx, %rdi
	callq	_memcpy
	leaq	-360(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_VM86_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_i386_vm86
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_14:
	leaq	-120(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_PSL_VM@GOTPCREL(%rip), %rax
	movq	_PSL_USER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$9029, -96(%rbp)                ## imm = 0x2345
	movl	%ecx, -92(%rbp)
	shrq	$4, %rbx
	movq	%rbx, -64(%rbp)
	movq	%rbx, -72(%rbp)
	movq	%rbx, -80(%rbp)
	movq	%rbx, -88(%rbp)
	movl	$65534, -56(%rbp)               ## imm = 0xFFFE
	movq	%r14, %rdi
	callq	_sigreturn
	xorl	%eax, %eax
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gs,4,2                         ## @gs
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_PROT_EXEC,4,2                  ## @PROT_EXEC
	.comm	_MAP_ANON,4,2                   ## @MAP_ANON
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmap sigstack"

L_.str.1:                               ## @.str.1
	.asciz	"sigaltstack"

	.comm	_sig_handler,4,2                ## @sig_handler
	.comm	_SA_SIGINFO,4,2                 ## @SA_SIGINFO
	.comm	_SA_ONSTACK,4,2                 ## @SA_ONSTACK
	.comm	_SIGBUS,4,2                     ## @SIGBUS
L_.str.2:                               ## @.str.2
	.asciz	"sigaction SIGBUS"

	.comm	_SIGSEGV,4,2                    ## @SIGSEGV
L_.str.3:                               ## @.str.3
	.asciz	"sigaction SIGSEGV"

	.comm	_SIGILL,4,2                     ## @SIGILL
L_.str.4:                               ## @.str.4
	.asciz	"sigaction SIGILL"

	.comm	_MAP_FIXED,4,2                  ## @MAP_FIXED
L_.str.5:                               ## @.str.5
	.asciz	"mmap"

	.comm	_vm86_code_start,8,3            ## @vm86_code_start
	.comm	_vm86_code_end,8,3              ## @vm86_code_end
	.comm	_VM86_INIT,4,2                  ## @VM86_INIT
L_.str.6:                               ## @.str.6
	.asciz	"VM86_INIT"

	.comm	_PSL_VM,4,2                     ## @PSL_VM
	.comm	_PSL_USER,4,2                   ## @PSL_USER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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 w27, -72
	.cfi_offset w28, -80
	bl	_rgs
Lloh0:
	adrp	x8, _gs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gs@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh3:
	adrp	x19, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w1, w8, #7
	str	w1, [sp]
Lloh5:
	adrp	x21, _PROT_READ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PROT_READ@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _PROT_WRITE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PROT_WRITE@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh9:
	adrp	x23, _PROT_EXEC@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PROT_EXEC@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w2, w8, w9
Lloh11:
	adrp	x24, _MAP_ANON@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MAP_ANON@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, #0
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	str	x0, [sp, #8]
Lloh13:
	adrp	x20, _MAP_FAILED@GOTPAGE
Lloh14:
	ldr	x20, [x20, _MAP_FAILED@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x0, sp
	mov	x1, #0
	bl	_sigaltstack
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	add	x0, sp, #160
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh19:
	adrp	x8, _sig_handler@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sig_handler@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SA_SIGINFO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SA_SIGINFO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _SA_ONSTACK@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SA_ONSTACK@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w8, [sp, #232]
	str	w9, [sp, #176]
Lloh28:
	adrp	x8, _SIGBUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SIGBUS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	add	x1, sp, #160
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh33:
	adrp	x8, _SIGSEGV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SIGSEGV@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	add	x1, sp, #160
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh38:
	adrp	x8, _SIGILL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	add	x1, sp, #160
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	ldr	w1, [x19]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w2, w8, w9
	ldr	w8, [x24]
Lloh43:
	adrp	x9, _MAP_FIXED@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MAP_FIXED@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w0, #65536
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	mov	x19, x0
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_12:
Lloh48:
	adrp	x8, _vm86_code_start@GOTPAGE
Lloh49:
	ldr	x8, [x8, _vm86_code_start@GOTPAGEOFF]
Lloh50:
	ldr	x1, [x8]
Lloh51:
	adrp	x8, _vm86_code_end@GOTPAGE
Lloh52:
	ldr	x8, [x8, _vm86_code_end@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	sub	x2, x8, x1
	mov	x0, x19
	bl	_memcpy
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh54:
	adrp	x8, _VM86_INIT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _VM86_INIT@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	add	x1, sp, #80
	bl	_i386_vm86
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	sub	x0, x29, #144
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh59:
	adrp	x8, _PSL_VM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _PSL_VM@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
Lloh62:
	adrp	x9, _PSL_USER@GOTPAGE
Lloh63:
	ldr	x9, [x9, _PSL_USER@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #9029
	stp	w9, w8, [x29, #-120]
	lsr	x8, x19, #4
	stp	x8, x8, [x29, #-96]
	stp	x8, x8, [x29, #-112]
	mov	w8, #65534
	stur	w8, [x29, #-80]
	sub	x0, x29, #144
	bl	_sigreturn
	mov	w0, #0
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_gs,4,2                         ; @gs
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_PROT_EXEC,4,2                  ; @PROT_EXEC
	.comm	_MAP_ANON,4,2                   ; @MAP_ANON
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmap sigstack"

l_.str.1:                               ; @.str.1
	.asciz	"sigaltstack"

	.comm	_sig_handler,4,2                ; @sig_handler
	.comm	_SA_SIGINFO,4,2                 ; @SA_SIGINFO
	.comm	_SA_ONSTACK,4,2                 ; @SA_ONSTACK
	.comm	_SIGBUS,4,2                     ; @SIGBUS
l_.str.2:                               ; @.str.2
	.asciz	"sigaction SIGBUS"

	.comm	_SIGSEGV,4,2                    ; @SIGSEGV
l_.str.3:                               ; @.str.3
	.asciz	"sigaction SIGSEGV"

	.comm	_SIGILL,4,2                     ; @SIGILL
l_.str.4:                               ; @.str.4
	.asciz	"sigaction SIGILL"

	.comm	_MAP_FIXED,4,2                  ; @MAP_FIXED
l_.str.5:                               ; @.str.5
	.asciz	"mmap"

	.comm	_vm86_code_start,8,3            ; @vm86_code_start
	.comm	_vm86_code_end,8,3              ; @vm86_code_end
	.comm	_VM86_INIT,4,2                  ; @VM86_INIT
l_.str.6:                               ; @.str.6
	.asciz	"VM86_INIT"

	.comm	_PSL_VM,4,2                     ; @PSL_VM
	.comm	_PSL_USER,4,2                   ; @PSL_USER
.subsections_via_symbols
