	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_machines__create_guest_kernel_maps ## -- Begin function machines__create_guest_kernel_maps
	.p2align	4, 0x90
_machines__create_guest_kernel_maps:    ## @machines__create_guest_kernel_maps
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_symbol_conf@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
LBB0_3:
	movq	_DEFAULT_GUEST_KERNEL_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_machines__create_kernel_maps
LBB0_4:
	movq	(%rbx), %rdi
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.5:
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_scandir
	testl	%eax, %eax
	jle	LBB0_21
## %bb.6:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	leaq	-72(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %rsi
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	cmpq	%r13, %r15
	je	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rax
	movsbl	(%rax), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_strtol
	movq	-72(%rbp), %rsi
	cmpb	$0, (%rsi)
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rcx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, %rsi
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_symbol_conf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	_R_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_access
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_machines__create_kernel_maps
	leaq	-72(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	jmp	LBB0_16
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_21:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_19:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.20:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_pr_debug
	jmp	LBB0_18
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_symbol_conf,32,3               ## @symbol_conf
	.comm	_DEFAULT_GUEST_KERNEL_ID,8,3    ## @DEFAULT_GUEST_KERNEL_ID
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid directory (%s). Skipping.\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s/proc/kallsyms"

	.comm	_R_OK,4,2                       ## @R_OK
L_.str.2:                               ## @.str.2
	.asciz	"Can't access file %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_machines__create_guest_kernel_maps ; -- Begin function machines__create_guest_kernel_maps
	.p2align	2
_machines__create_guest_kernel_maps:    ; @machines__create_guest_kernel_maps
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x26, _symbol_conf@GOTPAGE
Lloh9:
	ldr	x26, [x26, _symbol_conf@GOTPAGEOFF]
	ldp	x9, x8, [x26, #16]
	ldr	x10, [x26, #8]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _DEFAULT_GUEST_KERNEL_ID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEFAULT_GUEST_KERNEL_ID@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_machines__create_kernel_maps
LBB0_2:
	ldr	x0, [x26]
	cbz	x0, LBB0_14
; %bb.3:
	sub	x1, x29, #96
	mov	x2, #0
	mov	x3, #0
	bl	_scandir
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.4:
	stur	x21, [x29, #-112]               ; 8-byte Folded Spill
	mov	x27, #0
	mov	w8, w0
	lsl	x28, x8, #3
Lloh13:
	adrp	x24, _errno@GOTPAGE
Lloh14:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh15:
	adrp	x25, _ERANGE@GOTPAGE
Lloh16:
	ldr	x25, [x25, _ERANGE@GOTPAGEOFF]
Lloh17:
	adrp	x22, l_.str@PAGE
Lloh18:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x3, x8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x3
	bl	_pr_debug
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #8
	cmp	x28, x27
	b.eq	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-96]
	ldr	x8, [x8, x27]
	ldr	x8, [x8]
	ldrsb	w0, [x8]
	bl	_isdigit
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	x8, [x29, #-96]
	ldr	x8, [x8, x27]
	ldr	x0, [x8]
	sub	x1, x29, #104
	mov	w2, #10
	bl	_strtol
	ldp	x8, x10, [x29, #-104]
	ldrb	w9, [x8]
	ldr	x10, [x10, x27]
	ldr	x3, [x10]
	cbnz	w9, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, x3
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x0
	mov	x21, x24
	ldr	x2, [x26]
	mov	x0, x20
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
Lloh21:
	adrp	x8, _R_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_access
	cbnz	w0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_machines__create_kernel_maps
	mov	x24, x21
	b	LBB0_7
LBB0_14:
	mov	w24, #0
	b	LBB0_18
LBB0_15:
	mov	w24, #0
LBB0_16:
	ldur	x0, [x29, #-96]
	bl	_free
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_18
LBB0_17:
Lloh24:
	adrp	x8, _ENOENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_18:
	mov	sp, x21
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x24, x0
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	b	LBB0_16
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_symbol_conf,32,3               ; @symbol_conf
	.comm	_DEFAULT_GUEST_KERNEL_ID,8,3    ; @DEFAULT_GUEST_KERNEL_ID
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid directory (%s). Skipping.\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s/proc/kallsyms"

	.comm	_R_OK,4,2                       ; @R_OK
l_.str.2:                               ; @.str.2
	.asciz	"Can't access file %s\n"

.subsections_via_symbols
