	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_unicorn                  ## -- Begin function start_unicorn
	.p2align	4, 0x90
_start_unicorn:                         ## @start_unicorn
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_UC_ARCH_X86@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UC_MODE_32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_uc_open
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_uc_trycall
	movq	-48(%rbp), %rdi
	movq	_UC_X86_REG_ESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	callq	_uc_setreg
	movq	-48(%rbp), %rdi
	movq	_UC_X86_REG_EIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	callq	_uc_setreg
	movq	-48(%rbp), %rdi
	movq	_UC_X86_REG_EFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	callq	_uc_setreg
	movq	-48(%rbp), %rdi
	movq	_UC_X86_REG_FPCW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_uc_setreg
	movq	_MEM_PAGES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAGE_BITS@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%ebx, %r13d
	shll	%cl, %r13d
	orl	%edx, %r8d
	movq	8(%rax), %rcx
	movslq	4(%rax), %r15
	addq	(%rcx), %r15
	movq	-48(%rbp), %rdi
	movl	(%r12), %edx
	movl	%r13d, %esi
	movl	%r8d, %ecx
	callq	_uc_mem_map
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_uc_trycall
	movq	-48(%rbp), %rdi
	movl	(%r12), %ecx
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_uc_mem_write
	movl	%eax, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_uc_trycall
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	_MEM_PAGES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mem_pt
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_UC_PROT_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_UC_PROT_READ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_P_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_UC_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jmp	LBB0_5
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_setup_gdt
	movq	-48(%rbp), %rdi
	movq	_UC_HOOK_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_uc_interrupt_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	leaq	-52(%rbp), %r14
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_uc_hook_add
	leaq	L_.str.3(%rip), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_uc_trycall
	movq	-48(%rbp), %rdi
	movq	_UC_HOOK_MEM_UNMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_uc_unmapped_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_uc_hook_add
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_uc_trycall
	movq	-48(%rbp), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UC_ARCH_X86,4,2                ## @UC_ARCH_X86
	.comm	_UC_MODE_32,4,2                 ## @UC_MODE_32
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uc_open"

	.comm	_UC_X86_REG_ESP,4,2             ## @UC_X86_REG_ESP
	.comm	_UC_X86_REG_EIP,4,2             ## @UC_X86_REG_EIP
	.comm	_UC_X86_REG_EFLAGS,4,2          ## @UC_X86_REG_EFLAGS
	.comm	_UC_X86_REG_FPCW,4,2            ## @UC_X86_REG_FPCW
	.comm	_MEM_PAGES,4,2                  ## @MEM_PAGES
	.comm	_UC_PROT_READ,4,2               ## @UC_PROT_READ
	.comm	_UC_PROT_EXEC,4,2               ## @UC_PROT_EXEC
	.comm	_P_WRITE,4,2                    ## @P_WRITE
	.comm	_UC_PROT_WRITE,4,2              ## @UC_PROT_WRITE
	.comm	_PAGE_BITS,4,2                  ## @PAGE_BITS
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"uc_mem_map"

L_.str.2:                               ## @.str.2
	.asciz	"uc_mem_write"

	.comm	_UC_HOOK_INTR,4,2               ## @UC_HOOK_INTR
	.comm	_uc_interrupt_callback,4,2      ## @uc_interrupt_callback
L_.str.3:                               ## @.str.3
	.asciz	"uc_hook_add"

	.comm	_UC_HOOK_MEM_UNMAPPED,4,2       ## @UC_HOOK_MEM_UNMAPPED
	.comm	_uc_unmapped_callback,4,2       ## @uc_unmapped_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_unicorn                  ; -- Begin function start_unicorn
	.p2align	2
_start_unicorn:                         ; @start_unicorn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _UC_ARCH_X86@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UC_ARCH_X86@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _UC_MODE_32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UC_MODE_32@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_uc_open
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uc_trycall
	ldr	x0, [sp, #8]
Lloh8:
	adrp	x8, _UC_X86_REG_ESP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UC_X86_REG_ESP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	bl	_uc_setreg
	ldr	x0, [sp, #8]
Lloh11:
	adrp	x8, _UC_X86_REG_EIP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UC_X86_REG_EIP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	bl	_uc_setreg
	ldr	x0, [sp, #8]
Lloh14:
	adrp	x8, _UC_X86_REG_EFLAGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UC_X86_REG_EFLAGS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_uc_setreg
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x8, _UC_X86_REG_FPCW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UC_X86_REG_FPCW@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20]
	bl	_uc_setreg
Lloh20:
	adrp	x25, _MEM_PAGES@GOTPAGE
Lloh21:
	ldr	x25, [x25, _MEM_PAGES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w20, #0
Lloh22:
	adrp	x21, l_.str.1@PAGE
Lloh23:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh24:
	adrp	x26, _UC_PROT_WRITE@GOTPAGE
Lloh25:
	ldr	x26, [x26, _UC_PROT_WRITE@GOTPAGEOFF]
Lloh26:
	adrp	x27, _PAGE_BITS@GOTPAGE
Lloh27:
	ldr	x27, [x27, _PAGE_BITS@GOTPAGEOFF]
Lloh28:
	adrp	x22, l_.str.2@PAGE
Lloh29:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh30:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh31:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w8, [x25]
	cmp	w20, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mem_pt
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh32:
	adrp	x8, _UC_PROT_READ@GOTPAGE
Lloh33:
	ldr	x8, [x8, _UC_PROT_READ@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _UC_PROT_EXEC@GOTPAGE
Lloh36:
	ldr	x9, [x9, _UC_PROT_EXEC@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh38:
	adrp	x9, _P_WRITE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _P_WRITE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	ldp	w10, w11, [x0]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	tst	w9, w10
	ldr	w9, [x26]
	csel	w9, wzr, w9, eq
	orr	w3, w8, w9
	ldr	w8, [x27]
	lsl	w23, w20, w8
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x24, x8, x11
	ldr	x0, [sp, #8]
	ldr	w2, [x28]
	mov	x1, x23
	bl	_uc_mem_map
	mov	x1, x21
	bl	_uc_trycall
	ldr	x0, [sp, #8]
	ldr	w3, [x28]
	mov	x1, x23
	mov	x2, x24
	bl	_uc_mem_write
	mov	x1, x22
	bl	_uc_trycall
	b	LBB0_2
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_setup_gdt
	ldr	x0, [sp, #8]
Lloh41:
	adrp	x8, _UC_HOOK_INTR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _UC_HOOK_INTR@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _uc_interrupt_callback@GOTPAGE
Lloh45:
	ldr	x8, [x8, _uc_interrupt_callback@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	add	x1, sp, #4
	mov	x4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_uc_hook_add
Lloh47:
	adrp	x19, l_.str.3@PAGE
Lloh48:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_uc_trycall
	ldr	x0, [sp, #8]
Lloh49:
	adrp	x8, _UC_HOOK_MEM_UNMAPPED@GOTPAGE
Lloh50:
	ldr	x8, [x8, _UC_HOOK_MEM_UNMAPPED@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x8, _uc_unmapped_callback@GOTPAGE
Lloh53:
	ldr	x8, [x8, _uc_unmapped_callback@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
	add	x1, sp, #4
	mov	x4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_uc_hook_add
	mov	x1, x19
	bl	_uc_trycall
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_UC_ARCH_X86,4,2                ; @UC_ARCH_X86
	.comm	_UC_MODE_32,4,2                 ; @UC_MODE_32
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uc_open"

	.comm	_UC_X86_REG_ESP,4,2             ; @UC_X86_REG_ESP
	.comm	_UC_X86_REG_EIP,4,2             ; @UC_X86_REG_EIP
	.comm	_UC_X86_REG_EFLAGS,4,2          ; @UC_X86_REG_EFLAGS
	.comm	_UC_X86_REG_FPCW,4,2            ; @UC_X86_REG_FPCW
	.comm	_MEM_PAGES,4,2                  ; @MEM_PAGES
	.comm	_UC_PROT_READ,4,2               ; @UC_PROT_READ
	.comm	_UC_PROT_EXEC,4,2               ; @UC_PROT_EXEC
	.comm	_P_WRITE,4,2                    ; @P_WRITE
	.comm	_UC_PROT_WRITE,4,2              ; @UC_PROT_WRITE
	.comm	_PAGE_BITS,4,2                  ; @PAGE_BITS
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"uc_mem_map"

l_.str.2:                               ; @.str.2
	.asciz	"uc_mem_write"

	.comm	_UC_HOOK_INTR,4,2               ; @UC_HOOK_INTR
	.comm	_uc_interrupt_callback,4,2      ; @uc_interrupt_callback
l_.str.3:                               ; @.str.3
	.asciz	"uc_hook_add"

	.comm	_UC_HOOK_MEM_UNMAPPED,4,2       ; @UC_HOOK_MEM_UNMAPPED
	.comm	_uc_unmapped_callback,4,2       ; @uc_unmapped_callback
.subsections_via_symbols
