	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_risc_debug_buf
_dib9000_risc_debug_buf:                ## @dib9000_risc_debug_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rsi), %r9d
	movl	4(%rsi), %ecx
	leaq	8(%rsi), %r8
	leal	-5(%rdx,%rdx), %eax
	cltq
	movb	$0, 8(%rsi,%rax)
	movb	8(%rsi), %al
	cmpb	$126, %al
	jne	LBB0_2
## %bb.1:
	incq	%r8
	leaq	L_.str(%rip), %rdi
	movq	%r8, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_3
LBB0_2:
	shll	$16, %ecx
	orl	%r9d, %ecx
	movslq	(%rdi), %rsi
	movslq	%ecx, %rcx
	imulq	$1759218605, %rcx, %rdx         ## imm = 0x68DB8BAD
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$44, %rdx
	addl	%edi, %edx
	imull	$10000, %edx, %edi              ## imm = 0x2710
	subl	%edi, %ecx
	testb	%al, %al
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_3:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"RISC%d: %d.%04d %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"<empty>"

	.no_dead_strip	_dib9000_risc_debug_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_risc_debug_buf
_dib9000_risc_debug_buf:                ; @dib9000_risc_debug_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldp	w10, w8, [x1]
	ldrb	w9, [x1, #8]!
	lsl	w11, w2, #1
	sub	w11, w11, #5
	strb	wzr, [x1, w11, sxtw]
	cmp	w9, #126
	b.ne	LBB0_2
; %bb.1:
	add	x1, x1, #1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	orr	w10, w10, w8, lsl #16
	ldrsw	x8, [x0]
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	smull	x11, w10, w11
	lsr	x12, x11, #63
	asr	x11, x11, #44
	add	w11, w11, w12
	mov	w12, #10000
	msub	w10, w11, w12, w10
Lloh2:
	adrp	x12, l_.str.2@PAGE
Lloh3:
	add	x12, x12, l_.str.2@PAGEOFF
	cmp	w9, #0
	csel	x9, x12, x1, eq
	stp	x10, x9, [sp, #8]
	str	x11, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
LBB0_3:
	bl	_dprintk
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"RISC%d: %d.%04d %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"<empty>"

	.no_dead_strip	_dib9000_risc_debug_buf
.subsections_via_symbols
