	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_hw_log_done
_read_hw_log_done:                      ## @read_hw_log_done
	.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
	testl	%edx, %edx
	je	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	8(%rsi), %edi
	testl	%edi, %edi
	jle	LBB0_9
## %bb.2:
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdx
	xorl	%r13d, %r13d
	movq	_LOG_BUF_SIZE8@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%r15)
	xorl	%edx, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %edi
	cmpl	%r13d, %edi
	jle	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	addq	%rdx, %rbx
	subl	%r13d, %edi
	movq	(%rax), %rsi
	subq	%rdx, %rsi
	movq	%rax, %r12
	callq	_min
	movslq	%r13d, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r13), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_substrncpy
	addl	%eax, %r13d
	cltq
	movq	8(%r15), %rdx
	addq	%rax, %rdx
	movq	%rdx, 8(%r15)
	cmpb	$0, -1(%rax,%rbx)
	movq	%r12, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rax), %rdx
	jne	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$1, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_hw_log_msg
	movq	%r12, %rax
	jmp	LBB0_7
LBB0_9:
	movq	_CREG_STAT_LOG_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r14)
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsxx_read_hw_log               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_BUF_SIZE8,8,3              ## @LOG_BUF_SIZE8
	.comm	_CREG_STAT_LOG_PENDING,4,2      ## @CREG_STAT_LOG_PENDING
	.no_dead_strip	_read_hw_log_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_hw_log_done
_read_hw_log_done:                      ; @read_hw_log_done
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	w2, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w23, #0
	ldr	x24, [x20]
	ldr	x2, [x19, #8]
Lloh0:
	adrp	x25, _LOG_BUF_SIZE8@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LOG_BUF_SIZE8@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, #0
	str	xzr, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #8]
	add	w23, w21, w23
	cmp	w8, w23
	b.le	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x22, x9, x2
	sub	w0, w8, w23
	ldr	x8, [x25]
	sub	x1, x8, x2
	bl	_min
	mov	x2, x0
	add	x1, x24, w23, sxtw
	mov	x0, x22
	bl	_substrncpy
	mov	x21, x0
	sxtw	x8, w21
	ldr	x9, [x19, #8]
	add	x2, x9, x8
	str	x2, [x19, #8]
	add	x8, x8, x22
	ldurb	w8, [x8, #-1]
	ldr	x9, [x25]
	cmp	w8, #0
	ccmp	x2, x9, #4, ne
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x2, #1
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_hw_log_msg
	b	LBB0_4
LBB0_9:
	ldr	w8, [x20, #12]
Lloh2:
	adrp	x9, _CREG_STAT_LOG_PENDING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CREG_STAT_LOG_PENDING@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rsxx_read_hw_log
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_BUF_SIZE8,8,3              ; @LOG_BUF_SIZE8
	.comm	_CREG_STAT_LOG_PENDING,4,2      ; @CREG_STAT_LOG_PENDING
	.no_dead_strip	_read_hw_log_done
.subsections_via_symbols
