	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmclog_get_record
_pmclog_get_record:                     ## @pmclog_get_record
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdx), %r13d
	testl	%r13d, %r13d
	jle	LBB0_18
## %bb.1:
	movq	%rdx, %r14
	movq	(%rsi), %rcx
	movl	(%rbx), %eax
	cmpl	$129, %eax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.2:
	movl	$0, 4(%rbx)
	leaq	8(%rbx), %r15
	cmpl	$4, %r13d
	movl	$4, %r12d
	cmovll	%r13d, %r12d
	movq	%r15, %rdi
	movq	%rcx, %rsi
	movq	%r12, %rdx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_memmove
	movl	%r12d, 4(%rbx)
	cmpl	$4, %r13d
	jae	LBB0_6
## %bb.3:
	movl	$130, (%rbx)
	jmp	LBB0_16
LBB0_4:
	movslq	4(%rbx), %r15
	leaq	(%rbx,%r15), %rdx
	addq	$8, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$128, %eax
	je	LBB0_5
## %bb.17:
	cmpl	$130, %eax
	jne	LBB0_18
## %bb.10:
	leal	(%r15,%r13), %eax
	cmpl	$3, %eax
	jg	LBB0_13
## %bb.11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %rsi
	movq	%r13, %rdx
	callq	_memmove
	addl	%r13d, 4(%rbx)
	movl	%r13d, %r12d
	jmp	LBB0_16
LBB0_6:
	movq	%rbx, %rdi
	callq	_PMCLOG_HEADER_FROM_SAVED_STATE
	movl	%eax, %edi
	callq	_PMCLOG_HEADER_TO_LENGTH
	testl	%eax, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_18
## %bb.7:
	movl	%r12d, %ecx
	addq	%rcx, %rsi
	addq	%rcx, %r15
	cmpl	%r13d, %eax
	jbe	LBB0_8
## %bb.9:
	movl	%r13d, %edx
	subl	%r12d, %edx
	movq	%r15, %rdi
	callq	_memmove
	movl	%r13d, 4(%rbx)
	movl	$128, (%rbx)
	movl	%r13d, %r12d
	jmp	LBB0_16
LBB0_5:
	movq	%rcx, %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_13:
	movl	$4, %r12d
	subq	%r15, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %rsi
	movq	%r12, %rdx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_memmove
	negq	%r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r15
	addq	$4, %r15
	addq	%r12, -64(%rbp)                 ## 8-byte Folded Spill
	subl	%r12d, %r13d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	addl	%r12d, 4(%rbx)
LBB0_14:
	movq	%rbx, %rdi
	callq	_PMCLOG_HEADER_FROM_SAVED_STATE
	movl	%eax, %edi
	callq	_PMCLOG_HEADER_TO_LENGTH
	testl	%eax, %eax
	jle	LBB0_18
## %bb.15:
	movq	%r15, %rsi
	movl	4(%rbx), %ecx
	movl	%eax, %r12d
	subl	%ecx, %r12d
	addl	%r13d, %ecx
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	setl	%dl
	cmovll	%r13d, %r12d
	xorl	$129, %edx
	movl	%edx, (%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memmove
	addl	%r12d, 4(%rbx)
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jmp	LBB0_16
LBB0_18:
	movq	_PL_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_19
LBB0_8:
	movl	%eax, %edx
	subl	%r12d, %edx
	movq	%r15, %rdi
	movl	%eax, %r15d
	callq	_memmove
	movl	%r15d, 4(%rbx)
	movl	%r15d, %r12d
LBB0_16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	%r12d, %rax
	addq	%rax, (%rcx)
	subl	%eax, (%r14)
	movl	(%rbx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PL_STATE_ERROR,8,3             ## @PL_STATE_ERROR
	.no_dead_strip	_pmclog_get_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmclog_get_record
_pmclog_get_record:                     ; @pmclog_get_record
	.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
	mov	x19, x0
	ldr	w22, [x2]
	cmp	w22, #0
	b.le	LBB0_15
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	ldr	x23, [x1]
	ldr	w9, [x19]
	cmp	w9, #129
	b.ne	LBB0_4
; %bb.2:
	str	wzr, [x19, #4]
	add	x25, x19, #8
	mov	w8, #4
	cmp	w22, #4
	csel	w24, w22, w8, lt
	mov	x0, x25
	mov	x1, x23
	mov	x2, x24
	bl	_memmove
	str	w24, [x19, #4]
	cmp	w22, #4
	b.hs	LBB0_8
; %bb.3:
	mov	w8, #130
	str	w8, [x19]
	mov	x22, x24
	b	LBB0_17
LBB0_4:
	ldrsw	x8, [x19, #4]
	add	x10, x19, x8
	add	x24, x10, #8
	cmp	w9, #128
	b.eq	LBB0_11
; %bb.5:
	cmp	w9, #130
	b.ne	LBB0_15
; %bb.6:
	add	w9, w8, w22
	cmp	w9, #3
	b.gt	LBB0_12
; %bb.7:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_memmove
	ldr	w8, [x19, #4]
	add	w8, w8, w22
	str	w8, [x19, #4]
	b	LBB0_17
LBB0_8:
	mov	x0, x19
	bl	_PMCLOG_HEADER_FROM_SAVED_STATE
	bl	_PMCLOG_HEADER_TO_LENGTH
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.9:
	mov	x26, x0
	add	x1, x23, x24
	add	x0, x25, x24
	cmp	w26, w22
	b.ls	LBB0_16
; %bb.10:
	sub	w2, w22, w24
	bl	_memmove
	mov	w8, #128
	stp	w8, w22, [x19]
	b	LBB0_17
LBB0_11:
	mov	w25, #0
	b	LBB0_13
LBB0_12:
	mov	w9, #4
	sub	x25, x9, x8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	bl	_memmove
	add	x23, x23, x25
	add	x24, x24, x25
	sub	w22, w22, w25
	ldr	w8, [x19, #4]
	add	w8, w8, w25
	str	w8, [x19, #4]
LBB0_13:
	mov	x0, x19
	bl	_PMCLOG_HEADER_FROM_SAVED_STATE
	bl	_PMCLOG_HEADER_TO_LENGTH
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.14:
	ldr	w8, [x19, #4]
	sub	w9, w0, w8
	add	w8, w8, w22
	cmp	w8, w0
	mov	w8, #128
	cinc	w8, w8, ge
	csel	w22, w22, w9, lt
	str	w8, [x19]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_memmove
	ldr	w8, [x19, #4]
	add	w8, w8, w22
	str	w8, [x19, #4]
	add	w22, w22, w25
	b	LBB0_17
LBB0_15:
Lloh0:
	adrp	x8, _PL_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PL_STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [x19]
	b	LBB0_18
LBB0_16:
	sub	w2, w26, w24
	bl	_memmove
	str	w26, [x19, #4]
	mov	x22, x26
LBB0_17:
	ldr	x8, [x21]
	add	x8, x8, w22, sxtw
	str	x8, [x21]
	ldr	w8, [x20]
	sub	w8, w8, w22
	str	w8, [x20]
	ldr	w0, [x19]
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PL_STATE_ERROR,8,3             ; @PL_STATE_ERROR
	.no_dead_strip	_pmclog_get_record
.subsections_via_symbols
