	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_symtab_init                    ## -- Begin function symtab_init
	.p2align	4, 0x90
_symtab_init:                           ## @symtab_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_O_RDONLY@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %r12d
	cmpl	$-1, %eax
	je	LBB0_1
LBB0_4:
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elf_version
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	callq	_elf_begin
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.8:
	movq	%rax, %rbx
	movl	$-1, %r14d
                                        ## implicit-def: $r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_elf_nextscn
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_elf_getshdr
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_SHT_SYMTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_elf_getdata
	movq	(%rax), %r13
	movl	8(%r12), %eax
	cltd
	idivl	12(%r12)
	movq	_nsyms@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	16(%r12), %r14d
	jmp	LBB0_11
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_modfind
	cmpl	$-1, %eax
	jne	LBB0_40
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_kldload
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_4
	jmp	LBB0_40
LBB0_5:
	movl	$-1, %r14d
                                        ## implicit-def: $r13
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	movq	%rax, %rbx
	decl	%r14d
                                        ## implicit-def: $r12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_elf_nextscn
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	subl	$1, %r14d
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_elf_getdata
	movq	(%rax), %r12
	jmp	LBB0_15
LBB0_7:
                                        ## implicit-def: $r12
LBB0_16:
	movq	_nsyms@GOTPCREL(%rip), %r15
	movslq	(%r15), %rbx
	movl	$0, (%r15)
	testq	%rbx, %rbx
	jle	LBB0_22
## %bb.17:
	shlq	$5, %rbx
	addq	%r13, %rbx
	movq	_STT_FUNC@GOTPCREL(%rip), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	addq	$32, %r13
	cmpq	%rbx, %r13
	jae	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%r13), %edi
	callq	_ELF32_ST_TYPE
	cmpl	%eax, (%r14)
	jl	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	8(%r13), %rdi
	addq	%r12, %rdi
	movq	16(%r13), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_add_symbol
	jmp	LBB0_21
LBB0_22:
	xorl	%eax, %eax
	callq	_fake_up_certain_popular_kernel_symbols
	movq	_maxsymname@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_ULONG_MAX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	movl	$1, %edx
	callq	_add_symbol
	movq	_symbol_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movl	(%r15), %esi
	movq	_symcmp@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	$4, %edx
	callq	_qsort
	movl	(%r15), %esi
	cmpl	$1, %esi
	jle	LBB0_23
## %bb.24:
	leal	-1(%rsi), %r8d
	movq	(%r12), %rdi
	movq	(%rdi), %rcx
	cmpl	$1, %r8d
	jne	LBB0_26
## %bb.25:
	xorl	%edx, %edx
LBB0_32:
	testb	$1, %r8b
	je	LBB0_35
## %bb.33:
	leaq	(%rdx,%rdx,2), %rax
	cmpq	24(%rdi,%rax,8), %rcx
	jne	LBB0_35
## %bb.34:
	movq	$0, (%rdi,%rax,8)
	jmp	LBB0_35
LBB0_23:
	movq	(%r12), %rdi
LBB0_35:
	movl	(%r14), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	callq	_qsort
	movq	(%r12), %rax
	cmpq	$0, 24(%rax)
	jne	LBB0_39
## %bb.36:
	movl	(%r15), %ecx
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	decl	%ecx
	cmpq	$0, 48(%rax)
	leaq	24(%rax), %rax
	je	LBB0_37
## %bb.38:
	movq	%rax, (%r12)
	movl	%ecx, (%r15)
LBB0_39:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	$0, (%rax)
	movl	$1, 16(%rax)
	callq	_close
	xorl	%ebx, %ebx
LBB0_40:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	movq	%rdi, %rbx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$48, %rbx
	cmpq	%rdx, %r9
	je	LBB0_32
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	cmpq	%rax, %rcx
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	$0, (%rbx)
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$2, %rdx
	movq	48(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	$0, 24(%rbx)
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/ksyms"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"ksyms"

	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
	.comm	_SHT_SYMTAB,8,3                 ## @SHT_SYMTAB
	.comm	_nsyms,4,2                      ## @nsyms
	.comm	_STT_FUNC,4,2                   ## @STT_FUNC
	.comm	_maxsymname,8,3                 ## @maxsymname
L_.str.2:                               ## @.str.2
	.asciz	"0x%lx"

	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.comm	_symbol_table,8,3               ## @symbol_table
	.comm	_symcmp,4,2                     ## @symcmp
L_.str.3:                               ## @.str.3
	.asciz	"(usermode)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_symtab_init                    ; -- Begin function symtab_init
	.p2align	2
_symtab_init:                           ; @symtab_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_6
LBB0_1:
Lloh4:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_elf_version
Lloh7:
	adrp	x8, _ELF_C_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ELF_C_READ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_elf_begin
	mov	x20, x0
	mov	x1, #0
	bl	_elf_nextscn
Lloh10:
	adrp	x23, _nsyms@GOTPAGE
Lloh11:
	ldr	x23, [x23, _nsyms@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	mov	w25, #-1
Lloh12:
	adrp	x26, _SHT_SYMTAB@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SHT_SYMTAB@GOTPAGEOFF]
                                        ; implicit-def: $x24
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_elf_nextscn
	mov	x21, x0
	cbz	x0, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_elf_getshdr
	ldr	x8, [x0]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	bl	_elf_getdata
	ldr	x24, [x0]
	ldp	w8, w9, [x22, #8]
	sdiv	w8, w8, w9
	str	w8, [x23]
	ldr	w25, [x22, #16]
	b	LBB0_3
LBB0_6:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _ENOENT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_modfind
	cmn	w0, #1
	b.eq	LBB0_34
LBB0_8:
	mov	w0, #-1
	b	LBB0_33
LBB0_9:
	mov	w25, #-1
                                        ; implicit-def: $x24
LBB0_10:
	mov	x0, x20
	mov	x1, #0
	bl	_elf_nextscn
	cbz	x0, LBB0_15
; %bb.11:
	mov	x21, x0
	sub	w25, w25, #1
                                        ; implicit-def: $x22
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_elf_nextscn
	mov	x21, x0
	sub	w25, w25, #1
	cbz	x0, LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w25, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	x1, #0
	bl	_elf_getdata
	ldr	x22, [x0]
	b	LBB0_12
LBB0_15:
                                        ; implicit-def: $x22
LBB0_16:
	ldrsw	x8, [x23]
	str	wzr, [x23]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.17:
	add	x20, x24, x8, lsl #5
Lloh22:
	adrp	x21, _STT_FUNC@GOTPAGE
Lloh23:
	ldr	x21, [x21, _STT_FUNC@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x24, x24, #32
	cmp	x24, x20
	b.hs	LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, #24]
	bl	_ELF32_ST_TYPE
	ldr	w8, [x21]
	cmp	w8, w0
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x2, [x24]
	cbz	x2, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrsw	x8, [x24, #8]
	add	x0, x22, x8
	ldr	x1, [x24, #16]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_add_symbol
	b	LBB0_18
LBB0_22:
	bl	_fake_up_certain_popular_kernel_symbols
Lloh24:
	adrp	x20, _maxsymname@GOTPAGE
Lloh25:
	ldr	x20, [x20, _maxsymname@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh26:
	adrp	x21, _ULONG_MAX@GOTPAGE
Lloh27:
	ldr	x21, [x21, _ULONG_MAX@GOTPAGEOFF]
	ldr	x2, [x21]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	ldr	x0, [x20]
	ldr	x1, [x21]
	mov	w2, #1
	bl	_add_symbol
Lloh30:
	adrp	x20, _symbol_table@GOTPAGE
Lloh31:
	ldr	x20, [x20, _symbol_table@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	w1, [x23]
Lloh32:
	adrp	x21, _symcmp@GOTPAGE
Lloh33:
	ldr	x21, [x21, _symcmp@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	w2, #4
	bl	_qsort
	ldr	w1, [x23]
	subs	w9, w1, #1
	b.le	LBB0_27
; %bb.23:
	mov	x8, #0
	ldr	x0, [x20]
	ldr	x10, [x0]
	mov	w11, #24
	umull	x9, w9, w11
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x8, x8, #24
	mov	x10, x11
	cmp	x9, x8
	b.eq	LBB0_28
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x0, x8
	ldr	x11, [x11, #24]
	cmp	x10, x11
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	str	xzr, [x0, x8]
	b	LBB0_24
LBB0_27:
	ldr	x0, [x20]
LBB0_28:
	ldr	w3, [x21]
	mov	w2, #4
	bl	_qsort
	ldr	x8, [x20]
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_32
; %bb.29:
	ldr	w9, [x23]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #48]
	add	x8, x8, #24
	sub	w9, w9, #1
	cbz	x10, LBB0_30
; %bb.31:
	str	x8, [x20]
	str	w9, [x23]
LBB0_32:
Lloh34:
	adrp	x9, l_.str.3@PAGE
Lloh35:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	xzr, x9, [x8]
	mov	w9, #1
	str	w9, [x8, #16]
	mov	x0, x19
	bl	_close
	mov	w0, #0
LBB0_33:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_34:
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kldload
	ldr	w1, [x20]
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_1
	b	LBB0_33
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/ksyms"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"ksyms"

	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
	.comm	_SHT_SYMTAB,8,3                 ; @SHT_SYMTAB
	.comm	_nsyms,4,2                      ; @nsyms
	.comm	_STT_FUNC,4,2                   ; @STT_FUNC
	.comm	_maxsymname,8,3                 ; @maxsymname
l_.str.2:                               ; @.str.2
	.asciz	"0x%lx"

	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.comm	_symbol_table,8,3               ; @symbol_table
	.comm	_symcmp,4,2                     ; @symcmp
l_.str.3:                               ; @.str.3
	.asciz	"(usermode)"

.subsections_via_symbols
