	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function machine__get_kernel
_machine__get_kernel:                   ## @machine__get_kernel
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_machine__is_host
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_symbol_conf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %rsi
	cmovneq	%rax, %rsi
	movq	_DSO_TYPE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_dso__kernel_findnew
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_2:
	movq	%rsp, %r12
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r15, %rdi
	callq	_machine__is_default_guest
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_symbol_conf@GOTPCREL(%rip), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_machine__mmap_name
	movq	%rax, %rsi
LBB0_5:
	movq	_DSO_TYPE_GUEST_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_dso__kernel_findnew
	movq	%rax, %rbx
	movq	%r12, %rsp
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_7:
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dso__read_running_kernel_build_id
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_symbol_conf,16,3               ## @symbol_conf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[kernel.kallsyms]"

L_.str.1:                               ## @.str.1
	.asciz	"[kernel]"

	.comm	_DSO_TYPE_KERNEL,4,2            ## @DSO_TYPE_KERNEL
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
L_.str.2:                               ## @.str.2
	.asciz	"[guest.kernel]"

	.comm	_DSO_TYPE_GUEST_KERNEL,4,2      ## @DSO_TYPE_GUEST_KERNEL
	.no_dead_strip	_machine__get_kernel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function machine__get_kernel
_machine__get_kernel:                   ; @machine__get_kernel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_machine__is_host
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _symbol_conf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _symbol_conf@GOTPAGEOFF]
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
Lloh7:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x1, x9, x8, eq
Lloh8:
	adrp	x8, _DSO_TYPE_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSO_TYPE_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dso__kernel_findnew
	mov	x20, x0
	cbnz	x20, LBB0_6
	b	LBB0_8
LBB0_2:
	mov	x22, sp
Lloh13:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	mov	x9, x20
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	mov	x0, x19
	bl	_machine__is_default_guest
	cbz	x0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _symbol_conf@GOTPAGE
Lloh19:
	ldr	x8, [x8, _symbol_conf@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8, #8]
	cbnz	x1, LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_machine__mmap_name
	mov	x1, x0
LBB0_5:
Lloh21:
	adrp	x8, _DSO_TYPE_GUEST_KERNEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DSO_TYPE_GUEST_KERNEL@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dso__kernel_findnew
	mov	x20, x0
	mov	sp, x22
	cbz	x20, LBB0_8
LBB0_6:
	ldr	w8, [x20]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_dso__read_running_kernel_build_id
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_symbol_conf,16,3               ; @symbol_conf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[kernel.kallsyms]"

l_.str.1:                               ; @.str.1
	.asciz	"[kernel]"

	.comm	_DSO_TYPE_KERNEL,4,2            ; @DSO_TYPE_KERNEL
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
l_.str.2:                               ; @.str.2
	.asciz	"[guest.kernel]"

	.comm	_DSO_TYPE_GUEST_KERNEL,4,2      ; @DSO_TYPE_GUEST_KERNEL
	.no_dead_strip	_machine__get_kernel
.subsections_via_symbols
