	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lsrec_fill
_lsrec_fill:                            ## @lsrec_fill
	.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	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_g_recsize@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	callq	_bzero
	movl	$1, (%r14)
	movq	(%r13), %rax
	movq	_LS_HIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setg	%al
	cmpl	$4, %r12d
	setl	%cl
	cmpl	$3, %r12d
	jl	LBB0_2
## %bb.1:
	andb	%al, %cl
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_fail
LBB0_3:
	cmpl	$8, (%r15)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_fail
LBB0_5:
	movq	8(%r15), %rax
	movq	(%rax,%rbx), %rax
	movq	%rax, 32(%r14)
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	callq	_strdup
	movq	%rax, 8(%r14)
	cmpl	$8, 32(%r15)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	callq	_fail
LBB0_7:
	movq	40(%r15), %rax
	movq	(%rax,%rbx), %rax
	movq	%rax, 16(%r14)
	movq	(%r13), %rax
	movq	_LS_HIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_24
## %bb.8:
	movl	48(%r15), %r9d
	cmpl	$8, %r9d
	jl	LBB0_24
## %bb.9:
	addq	56(%r15), %rbx
	shrq	$2, %r9
	movq	24(%r14), %rcx
	leaq	-1(%r9), %r8
	movl	$1, %edx
	cmpq	$8, %r8
	jb	LBB0_19
## %bb.10:
	movq	%rcx, %rax
	subq	%rbx, %rax
	addq	$-4, %rax
	cmpq	$32, %rax
	jb	LBB0_19
## %bb.11:
	movq	%r8, %rdx
	andq	$-8, %rdx
	leaq	-8(%rdx), %rax
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r10d
	andl	$3, %r10d
	cmpq	$24, %rax
	jae	LBB0_13
## %bb.12:
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_13:
	andq	$-4, %rdi
	leaq	116(%rbx), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movups	-112(%rax,%rsi,4), %xmm0
	movups	-96(%rax,%rsi,4), %xmm1
	movups	%xmm0, (%rcx,%rsi,4)
	movups	%xmm1, 16(%rcx,%rsi,4)
	movups	-80(%rax,%rsi,4), %xmm0
	movups	-64(%rax,%rsi,4), %xmm1
	movups	%xmm0, 32(%rcx,%rsi,4)
	movups	%xmm1, 48(%rcx,%rsi,4)
	movups	-48(%rax,%rsi,4), %xmm0
	movups	-32(%rax,%rsi,4), %xmm1
	movups	%xmm0, 64(%rcx,%rsi,4)
	movups	%xmm1, 80(%rcx,%rsi,4)
	movups	-16(%rax,%rsi,4), %xmm0
	movups	(%rax,%rsi,4), %xmm1
	movups	%xmm0, 96(%rcx,%rsi,4)
	movups	%xmm1, 112(%rcx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rdi
	jne	LBB0_14
LBB0_15:
	testq	%r10, %r10
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rsi,4), %rax
	orq	$4, %rax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	%xmm0, (%rcx,%rsi,4)
	movups	%xmm1, 16(%rcx,%rsi,4)
	addq	$8, %rsi
	decq	%r10
	jne	LBB0_16
LBB0_17:
	cmpq	%rdx, %r8
	je	LBB0_24
## %bb.18:
	orq	$1, %rdx
LBB0_19:
	movl	%r9d, %esi
	subl	%edx, %esi
	movq	%rdx, %rax
	notq	%rax
	addq	%r9, %rax
	andq	$3, %rsi
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %edi
	movl	%edi, -4(%rcx,%rdx,4)
	incq	%rdx
	decq	%rsi
	jne	LBB0_20
LBB0_21:
	cmpq	$3, %rax
	jb	LBB0_24
## %bb.22:
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%rbx,%rdx,4), %eax
	movl	%eax, -4(%rcx,%rdx,4)
	movl	-8(%rbx,%rdx,4), %eax
	movl	%eax, (%rcx,%rdx,4)
	movl	-4(%rbx,%rdx,4), %eax
	movl	%eax, 4(%rcx,%rdx,4)
	movl	(%rbx,%rdx,4), %eax
	movl	%eax, 8(%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_23
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_recsize,8,3                  ## @g_recsize
	.comm	_LS_HIST,8,3                    ## @LS_HIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"truncated DTrace record"

L_.str.1:                               ## @.str.1
	.asciz	"bad event size in first record"

L_.str.2:                               ## @.str.2
	.asciz	"bad caller size in third record"

	.no_dead_strip	_lsrec_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lsrec_fill
_lsrec_fill:                            ; @lsrec_fill
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _g_recsize@GOTPAGE
Lloh1:
	ldr	x23, [x23, _g_recsize@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_bzero
	mov	w8, #1
	str	w8, [x20]
Lloh2:
	adrp	x24, _LS_HIST@GOTPAGE
Lloh3:
	ldr	x24, [x24, _LS_HIST@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	w22, #4
	ccmp	x8, x9, #4, lt
	cset	w8, gt
	cmp	w22, #3
	b.lt	LBB0_2
; %bb.1:
	cbz	w8, LBB0_3
LBB0_2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_fail
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #8
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	bl	_fail
LBB0_5:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19]
	str	x8, [x20, #32]
	ldr	x8, [x21, #24]
	add	x0, x8, x19
	bl	_strdup
	str	x0, [x20, #8]
	ldr	w8, [x21, #32]
	cmp	w8, #8
	b.eq	LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	bl	_fail
LBB0_7:
	ldr	x8, [x21, #40]
	ldr	x8, [x8, x19]
	str	x8, [x20, #16]
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.le	LBB0_14
; %bb.8:
	ldr	w8, [x21, #48]
	cmp	w8, #8
	b.lt	LBB0_14
; %bb.9:
	ldr	x9, [x21, #56]
	add	x9, x9, x19
	lsr	x8, x8, #2
	ldr	x10, [x20, #24]
	sub	x12, x8, #1
	cmp	x12, #16
	b.lo	LBB0_11
; %bb.10:
	sub	x11, x10, x9
	sub	x11, x11, #4
	cmp	x11, #64
	b.hs	LBB0_15
LBB0_11:
	mov	w11, #1
LBB0_12:
	lsl	x12, x11, #2
	add	x9, x9, x12
	add	x10, x12, x10
	sub	x10, x10, #4
	sub	x8, x8, x11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_13
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	and	x13, x12, #0xfffffffffffffff0
	orr	x11, x13, #0x1
	add	x14, x9, #36
	add	x15, x10, #32
	mov	x16, x13
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x15, #-32]
	stp	q2, q3, [x15], #64
	subs	x16, x16, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x12, x13
	b.eq	LBB0_14
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_g_recsize,8,3                  ; @g_recsize
	.comm	_LS_HIST,8,3                    ; @LS_HIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncated DTrace record"

l_.str.1:                               ; @.str.1
	.asciz	"bad event size in first record"

l_.str.2:                               ; @.str.2
	.asciz	"bad caller size in third record"

	.no_dead_strip	_lsrec_fill
.subsections_via_symbols
