	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function setup_gdt
LCPI0_0:
	.long	65535                           ## 0xffff
	.long	15                              ## 0xf
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_setup_gdt:                             ## @setup_gdt
	.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	%rbx
	subq	$440, %rsp                      ## imm = 0x1B8
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-448(%rbp), %r14
	movl	$416, %esi                      ## imm = 0x1A0
	movq	%r14, %rdi
	callq	___bzero
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [65535,15,1,1]
	movaps	%xmm0, -416(%rbp)
	movabsq	$4294967311, %rax               ## imm = 0x10000000F
	movq	%rax, -400(%rbp)
	movl	$1, -392(%rbp)
	movq	-400(%rbp), %rax
	movq	%rax, -368(%rbp)
	movl	-392(%rbp), %eax
	movl	%eax, -360(%rbp)
	movl	-388(%rbp), %eax
	movl	%eax, -356(%rbp)
	movaps	-416(%rbp), %xmm0
	movaps	%xmm0, -384(%rbp)
	movl	$3, -368(%rbp)
	movl	-368(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-364(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	-360(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-356(%rbp), %eax
	movl	%eax, -36(%rbp)
	movaps	%xmm0, -64(%rbp)
	movl	$3, -36(%rbp)
	movq	_GDT_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_UC_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_uc_mem_map
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_uc_trycall
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$416, %ecx                      ## imm = 0x1A0
	callq	_uc_mem_write
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_uc_trycall
	movl	$416, -456(%rbp)                ## imm = 0x1A0
	movl	(%r15), %eax
	movl	%eax, -452(%rbp)
	movq	_UC_X86_REG_GDTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-456(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_uc_reg_write
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_uc_trycall
	movq	_UC_X86_REG_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_uc_setreg
	movq	_UC_X86_REG_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_uc_setreg
	movq	_UC_X86_REG_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_uc_setreg
	movq	_UC_X86_REG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_uc_setreg
	movq	_UC_X86_REG_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_uc_setreg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$440, %rsp                      ## imm = 0x1B8
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GDT_ADDR,4,2                   ## @GDT_ADDR
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_UC_PROT_READ,4,2               ## @UC_PROT_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map gdt"

L_.str.1:                               ## @.str.1
	.asciz	"write gdt"

	.comm	_UC_X86_REG_GDTR,4,2            ## @UC_X86_REG_GDTR
L_.str.2:                               ## @.str.2
	.asciz	"write gdtr"

	.comm	_UC_X86_REG_CS,4,2              ## @UC_X86_REG_CS
	.comm	_UC_X86_REG_DS,4,2              ## @UC_X86_REG_DS
	.comm	_UC_X86_REG_ES,4,2              ## @UC_X86_REG_ES
	.comm	_UC_X86_REG_FS,4,2              ## @UC_X86_REG_FS
	.comm	_UC_X86_REG_SS,4,2              ## @UC_X86_REG_SS
	.no_dead_strip	_setup_gdt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function setup_gdt
lCPI0_0:
	.long	65535                           ; 0xffff
	.long	15                              ; 0xf
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	15                              ; 0xf
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_setup_gdt:                             ; @setup_gdt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #496
	.cfi_def_cfa_offset 496
	stp	x22, x21, [sp, #448]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #464]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #480]            ; 16-byte Folded Spill
	add	x29, sp, #480
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x8, sp, #16
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8, #384]
	stp	q0, q0, [x8, #352]
	stp	q0, q0, [x8, #320]
	stp	q0, q0, [x8, #288]
	stp	q0, q0, [x8, #256]
	stp	q0, q0, [x8, #224]
	stp	q0, q0, [x8, #192]
	stp	q0, q0, [x8, #160]
	stp	q0, q0, [x8, #128]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	add	x9, x8, #384
Lloh3:
	adrp	x10, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	str	q0, [sp, #48]
Lloh5:
	adrp	x10, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x10, lCPI0_1@PAGEOFF]
	str	d0, [sp, #64]
	mov	w10, #1
	str	w10, [sp, #72]
	ldp	q1, q0, [sp, #48]
	stp	q1, q0, [sp, #80]
	mov	w10, #3
	str	w10, [sp, #96]
	ldur	q0, [sp, #92]
	stur	q0, [x9, #12]
	str	q1, [x8, #384]
	str	w10, [x9, #28]
Lloh7:
	adrp	x20, _GDT_ADDR@GOTPAGE
Lloh8:
	ldr	x20, [x20, _GDT_ADDR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _UC_PROT_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UC_PROT_READ@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	bl	_uc_mem_map
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uc_trycall
	ldr	w1, [x20]
	mov	w21, #416
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #416
	bl	_uc_mem_write
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_uc_trycall
	ldr	w8, [x20]
	stp	w21, w8, [sp, #8]
Lloh19:
	adrp	x8, _UC_X86_REG_GDTR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UC_X86_REG_GDTR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_uc_reg_write
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_uc_trycall
Lloh24:
	adrp	x8, _UC_X86_REG_CS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UC_X86_REG_CS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_uc_setreg
Lloh27:
	adrp	x8, _UC_X86_REG_DS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UC_X86_REG_DS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_uc_setreg
Lloh30:
	adrp	x8, _UC_X86_REG_ES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UC_X86_REG_ES@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_uc_setreg
Lloh33:
	adrp	x8, _UC_X86_REG_FS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UC_X86_REG_FS@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_uc_setreg
Lloh36:
	adrp	x8, _UC_X86_REG_SS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _UC_X86_REG_SS@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_uc_setreg
	ldur	x8, [x29, #-40]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #480]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #464]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #448]            ; 16-byte Folded Reload
	add	sp, sp, #496
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GDT_ADDR,4,2                   ; @GDT_ADDR
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_UC_PROT_READ,4,2               ; @UC_PROT_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map gdt"

l_.str.1:                               ; @.str.1
	.asciz	"write gdt"

	.comm	_UC_X86_REG_GDTR,4,2            ; @UC_X86_REG_GDTR
l_.str.2:                               ; @.str.2
	.asciz	"write gdtr"

	.comm	_UC_X86_REG_CS,4,2              ; @UC_X86_REG_CS
	.comm	_UC_X86_REG_DS,4,2              ; @UC_X86_REG_DS
	.comm	_UC_X86_REG_ES,4,2              ; @UC_X86_REG_ES
	.comm	_UC_X86_REG_FS,4,2              ; @UC_X86_REG_FS
	.comm	_UC_X86_REG_SS,4,2              ; @UC_X86_REG_SS
	.no_dead_strip	_setup_gdt
.subsections_via_symbols
