	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kgdb_dmesg                     ## -- Begin function kgdb_dmesg
	.p2align	4, 0x90
_kgdb_dmesg:                            ## @kgdb_dmesg
	.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	_quiet@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_kgdb_parse
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_kgdb_parse
	testq	%r14, %r14
	je	LBB0_10
## %bb.2:
	movq	%rax, %r15
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_kgdb_parse
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	_kgdb_parse
	movq	%rax, %r12
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_MSGBUF_SEQ_TO_POS
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_MSGBUF_SEQ_TO_POS
	cmpl	%eax, %ebx
	je	LBB0_10
## %bb.4:
	movl	%eax, %r12d
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpl	%r12d, %ebx
	jge	LBB0_8
## %bb.5:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx), %rdi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_read_memory
	movsbl	-41(%rbp), %edi
	callq	_putchar
	incl	%ebx
	cmpl	%r15d, %ebx
	cmovel	%r13d, %ebx
	cmpl	%r12d, %ebx
	jl	LBB0_6
## %bb.7:
	cmpb	$10, -41(%rbp)
	je	LBB0_9
LBB0_8:
	movl	$10, %edi
	callq	_putchar
LBB0_9:
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_quiet,8,3                      ## @quiet
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msgbufp->msg_ptr"

L_.str.1:                               ## @.str.1
	.asciz	"msgbufp->msg_size"

L_.str.2:                               ## @.str.2
	.asciz	"msgbufp->msg_rseq"

L_.str.3:                               ## @.str.3
	.asciz	"msgbufp->msg_wseq"

L_str:                                  ## @str
	.asciz	"\nUnread portion of the kernel message buffer:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kgdb_dmesg                     ; -- Begin function kgdb_dmesg
	.p2align	2
_kgdb_dmesg:                            ; @kgdb_dmesg
	.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, _quiet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _quiet@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	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
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kgdb_parse
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kgdb_parse
	cbz	x19, LBB0_1
; %bb.3:
	mov	x20, x0
	cbz	w20, LBB0_1
; %bb.4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_kgdb_parse
	mov	x21, x0
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_kgdb_parse
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_MSGBUF_SEQ_TO_POS
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	bl	_MSGBUF_SEQ_TO_POS
	cmp	w21, w0
	b.eq	LBB0_1
; %bb.5:
	mov	x22, x0
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	cmp	w21, w22
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, w21, sxtw
	add	x1, sp, #15
	mov	w2, #1
	bl	_read_memory
	ldrsb	w0, [sp, #15]
	bl	_putchar
	add	w8, w21, #1
	cmp	w8, w20
	csinc	w21, wzr, w21, eq
	cmp	w21, w22
	b.lt	LBB0_6
; %bb.7:
	ldrb	w8, [sp, #15]
	cmp	w8, #10
	b.eq	LBB0_9
LBB0_8:
	mov	w0, #10
	bl	_putchar
LBB0_9:
	mov	w0, #10
	bl	_putchar
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_quiet,8,3                      ; @quiet
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msgbufp->msg_ptr"

l_.str.1:                               ; @.str.1
	.asciz	"msgbufp->msg_size"

l_.str.2:                               ; @.str.2
	.asciz	"msgbufp->msg_rseq"

l_.str.3:                               ; @.str.3
	.asciz	"msgbufp->msg_wseq"

l_str:                                  ; @str
	.asciz	"\nUnread portion of the kernel message buffer:"

.subsections_via_symbols
