	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_read_from_file
_monitor_read_from_file:                ## @monitor_read_from_file
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_get_token
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_hex2
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	-28(%rbp), %eax
	addl	(%rbx), %eax
	cmpl	$65536, %eax                    ## imm = 0x10000
	jg	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_MEMORY_mem@GOTPCREL(%rip), %rax
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	-28(%rbp), %edx
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_fclose
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_perror
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_perror
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_MEMORY_mem,8,3                 ## @MEMORY_mem
	.no_dead_strip	_monitor_read_from_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_read_from_file
_monitor_read_from_file:                ; @monitor_read_from_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_get_token
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_get_hex2
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	ldr	w9, [sp, #12]
	add	w8, w9, w8
	cmp	w8, #16, lsl #12                ; =65536
	b.gt	LBB0_6
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh2:
	adrp	x8, _MEMORY_mem@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEMORY_mem@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #2
	ldr	w2, [sp, #12]
	mov	w1, #1
	mov	x3, x21
	bl	_fread
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x21
	bl	_fclose
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x19
	bl	_perror
	b	LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_perror
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_MEMORY_mem,8,3                 ; @MEMORY_mem
	.no_dead_strip	_monitor_read_from_file
.subsections_via_symbols
