	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esil_6502_init
_esil_6502_init:                        ## @esil_6502_init
	.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
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_r_reg_get
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_r_reg_set_value
	movq	(%r14), %rax
	movq	(%rax), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_r_reg_get
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_r_reg_set_value
	movq	(%r14), %rax
	movq	(%rax), %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_r_reg_get
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_r_reg_set_value
	movq	(%r14), %rax
	movq	(%rax), %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_r_reg_get
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_r_reg_set_value
	movq	(%r14), %rax
	movq	(%rax), %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_r_reg_get
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_r_reg_set_value
	movq	(%r14), %rax
	movq	(%rax), %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_r_reg_get
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_r_reg_set_value
LBB0_3:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pc"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"x"

L_.str.4:                               ## @.str.4
	.asciz	"y"

L_.str.5:                               ## @.str.5
	.asciz	"flags"

	.no_dead_strip	_esil_6502_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esil_6502_init
_esil_6502_init:                        ; @esil_6502_init
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x20, [x8]
	cbz	x20, LBB0_3
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_r_reg_get
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_r_reg_set_value
	ldr	x8, [x19]
	ldr	x20, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_r_reg_get
	mov	x1, x0
	mov	x0, x20
	mov	w2, #255
	bl	_r_reg_set_value
	ldr	x8, [x19]
	ldr	x20, [x8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_r_reg_get
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_r_reg_set_value
	ldr	x8, [x19]
	ldr	x20, [x8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_r_reg_get
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_r_reg_set_value
	ldr	x8, [x19]
	ldr	x20, [x8]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_r_reg_get
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_r_reg_set_value
	ldr	x8, [x19]
	ldr	x19, [x8]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	bl	_r_reg_get
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_r_reg_set_value
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pc"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"x"

l_.str.4:                               ; @.str.4
	.asciz	"y"

l_.str.5:                               ; @.str.5
	.asciz	"flags"

	.no_dead_strip	_esil_6502_init
.subsections_via_symbols
