	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml_simulation_regload
_aml_simulation_regload:                ## @aml_simulation_regload
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_aml_simulation_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r14
	leaq	-304(%rbp), %r13
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	leaq	-312(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	_strtoq
	movq	%rax, -320(%rbp)
	movq	-312(%rbp), %rbx
	cmpq	%rbx, %r13
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_strtoq
	movq	%rax, -328(%rbp)
	movq	-312(%rbp), %r12
	cmpq	%r12, %rbx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_strtoq
	movq	%rax, -336(%rbp)
	cmpq	-312(%rbp), %r12
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-328(%rbp), %rsi
	movq	-320(%rbp), %rdi
	leaq	-336(%rbp), %rdx
	callq	_aml_simulate_regcontent_write
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_fclose
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_aml_simulation_initialized,4,2 ## @aml_simulation_initialized
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.no_dead_strip	_aml_simulation_regload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml_simulation_regload
_aml_simulation_regload:                ; @aml_simulation_regload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _aml_simulation_initialized@GOTPAGE
Lloh4:
	ldr	x8, [x8, _aml_simulation_initialized@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	add	x22, sp, #40
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	mov	w1, #256
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #40
	add	x1, sp, #32
	mov	w2, #10
	bl	_strtoq
	str	x0, [sp, #24]
	ldr	x20, [sp, #32]
	cmp	x22, x20
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #16
	bl	_strtoq
	str	x0, [sp, #16]
	ldr	x21, [sp, #32]
	cmp	x20, x21
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x21
	mov	w2, #16
	bl	_strtoq
	str	x0, [sp, #8]
	ldr	x8, [sp, #32]
	cmp	x21, x8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x1, x0, [sp, #16]
	add	x2, sp, #8
	bl	_aml_simulate_regcontent_write
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_fclose
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_aml_simulation_initialized,4,2 ; @aml_simulation_initialized
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.no_dead_strip	_aml_simulation_regload
.subsections_via_symbols
