	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_symbol
_read_symbol:                           ## @read_symbol
	.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	%r12
	pushq	%rbx
	subq	$528, %rsp                      ## imm = 0x210
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	16(%rsi), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-545(%rbp), %rcx
	leaq	-544(%rbp), %r15
	movq	%rbx, %rdx
	movq	%r15, %r8
	callq	_fscanf
	cmpl	$3, %eax
	jne	LBB0_1
## %bb.3:
	movq	_symbol_prefix_char@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	cmpb	%al, -544(%rbp)
	leaq	-543(%rbp), %r12
	cmovneq	%r15, %r12
	testb	%al, %al
	cmoveq	%r15, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	movl	(%rbx), %esi
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_read_symbol_tr
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movsbl	-545(%rbp), %edi
	callq	_toupper
	cmpb	$65, %al
	jne	LBB0_11
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_15
LBB0_1:
	movq	_EOF@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.2:
	leaq	-544(%rbp), %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movq	%r12, %rdx
	callq	_fgets
	jmp	LBB0_17
LBB0_4:
	movq	__text@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
LBB0_15:
	leaq	-544(%rbp), %rdi
	callq	_strlen
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%r14)
	leaq	2(%rax), %rdi
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	incq	%rax
	leaq	-544(%rbp), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movb	-545(%rbp), %al
	movq	(%r14), %rcx
	movb	%al, (%rcx)
	xorl	%r15d, %r15d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	movl	%r15d, %eax
	addq	$528, %rsp                      ## imm = 0x210
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movsbl	-545(%rbp), %edi
	callq	_toupper
	movl	$-1, %r15d
	cmpb	$85, %al
	je	LBB0_17
## %bb.12:
	movq	%r12, %rdi
	callq	_is_arm_mapping_symbol
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:
	cmpb	$36, -544(%rbp)
	je	LBB0_17
## %bb.14:
	cmpb	$78, -545(%rbp)
	jne	LBB0_15
	jmp	LBB0_17
LBB0_20:
	callq	___stack_chk_fail
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%llx %c %499s\n"

	.comm	_EOF,4,2                        ## @EOF
	.comm	_symbol_prefix_char,1,0         ## @symbol_prefix_char
L_.str.1:                               ## @.str.1
	.asciz	"_text"

	.comm	__text,4,2                      ## @_text
L_.str.2:                               ## @.str.2
	.asciz	"__kernel_syscall_via_break"

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

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

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

	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"kallsyms failure: unable to allocate required amount of memory\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_read_symbol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_symbol
_read_symbol:                           ; @read_symbol
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #512
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x21, x1, #16
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x22, sp, #4
	add	x3, sp, #3
	add	x4, sp, #4
	mov	x2, x21
	bl	_fscanf
	cmp	w0, #3
	b.ne	LBB0_8
; %bb.1:
Lloh5:
	adrp	x8, _symbol_prefix_char@GOTPAGE
Lloh6:
	ldr	x8, [x8, _symbol_prefix_char@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldrb	w9, [sp, #4]
	cmp	w9, w8
	ccmp	w8, #0, #4, eq
	cinc	x20, x22, ne
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	ldr	w1, [x21]
	cbz	x0, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_read_symbol_tr
	cbz	x0, LBB0_12
; %bb.3:
	ldrsb	w0, [sp, #3]
	bl	_toupper
	cmp	w0, #65
	b.ne	LBB0_16
; %bb.4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.5:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.6:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.7:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_9
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x8, _EOF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
LBB0_9:
	mov	w0, #-1
	b	LBB0_14
LBB0_10:
	add	x0, sp, #4
	mov	w1, #500
	mov	x2, x20
	bl	_fgets
	mov	w0, #-1
	b	LBB0_14
LBB0_11:
Lloh20:
	adrp	x8, __text@GOTPAGE
Lloh21:
	ldr	x8, [x8, __text@GOTPAGEOFF]
Lloh22:
	str	w1, [x8]
LBB0_12:
	add	x0, sp, #4
	bl	_strlen
	add	x8, x0, #1
	str	x8, [x19, #8]
	add	x0, x0, #2
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_21
; %bb.13:
	add	x0, x0, #1
	add	x1, sp, #4
	bl	_strcpy
	mov	w0, #0
	ldrb	w8, [sp, #3]
	ldr	x9, [x19]
	strb	w8, [x9]
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.15:
	add	sp, sp, #512
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldrsb	w0, [sp, #3]
	bl	_toupper
	cmp	w0, #85
	b.eq	LBB0_9
; %bb.17:
	mov	x0, x20
	bl	_is_arm_mapping_symbol
	mov	x8, x0
	mov	w0, #-1
	cbnz	x8, LBB0_14
; %bb.18:
	ldrb	w8, [sp, #4]
	cmp	w8, #36
	b.eq	LBB0_14
; %bb.19:
	ldrb	w8, [sp, #3]
	cmp	w8, #78
	b.ne	LBB0_12
	b	LBB0_14
LBB0_20:
	bl	___stack_chk_fail
LBB0_21:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
Lloh31:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%llx %c %499s\n"

	.comm	_EOF,4,2                        ; @EOF
	.comm	_symbol_prefix_char,1,0         ; @symbol_prefix_char
l_.str.1:                               ; @.str.1
	.asciz	"_text"

	.comm	__text,4,2                      ; @_text
l_.str.2:                               ; @.str.2
	.asciz	"__kernel_syscall_via_break"

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

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

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

	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"kallsyms failure: unable to allocate required amount of memory\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_read_symbol
.subsections_via_symbols
