	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv_kmsg_dump
_hv_kmsg_dump:                          ## @hv_kmsg_dump
	.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	_KMSG_DUMP_PANIC@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_sysctl_record_panic_msg@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%rdi, %rbx
	movq	_hv_panic_page@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_virt_to_phys
	movl	%eax, %r14d
	movl	(%r15), %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_kmsg_dump_get_buffer
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_hyperv_report_panic_msg
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KMSG_DUMP_PANIC,4,2            ## @KMSG_DUMP_PANIC
	.comm	_sysctl_record_panic_msg,4,2    ## @sysctl_record_panic_msg
	.comm	_hv_panic_page,4,2              ## @hv_panic_page
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_hv_kmsg_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hv_kmsg_dump
_hv_kmsg_dump:                          ; @hv_kmsg_dump
	.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
Lloh0:
	adrp	x8, _KMSG_DUMP_PANIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KMSG_DUMP_PANIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _sysctl_record_panic_msg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sysctl_record_panic_msg@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x21, _hv_panic_page@GOTPAGE
Lloh7:
	ldr	x21, [x21, _hv_panic_page@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_virt_to_phys
	mov	x20, x0
	ldr	w2, [x21]
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w1, #1
	bl	_kmsg_dump_get_buffer
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_hyperv_report_panic_msg
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KMSG_DUMP_PANIC,4,2            ; @KMSG_DUMP_PANIC
	.comm	_sysctl_record_panic_msg,4,2    ; @sysctl_record_panic_msg
	.comm	_hv_panic_page,4,2              ; @hv_panic_page
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_hv_kmsg_dump
.subsections_via_symbols
