	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_mem
_fill_mem:                              ## @fill_mem
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movl	12(%r13), %eax
	movl	16(%r13), %esi
	movl	(%rdi), %edx
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_pr_debug
	movl	%r15d, %eax
	shll	$8, %eax
	testb	$2, (%r12)
	cmovel	%r15d, %eax
	movl	$-256, %edx
	movl	$-65281, %r9d                   ## imm = 0xFFFF00FF
	cmovel	%edx, %r9d
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.1:
	movq	(%r13), %rdx
	testb	$1, %r14b
	jne	LBB0_3
## %bb.2:
	movl	%r14d, %esi
	cmpl	$1, %r14d
	jne	LBB0_5
	jmp	LBB0_10
LBB0_3:
	leal	-1(%r14), %esi
	movslq	%ebx, %r8
	movl	(%rdx,%r8,4), %edi
	andl	%r9d, %edi
	orl	%eax, %edi
	incl	%ebx
	movl	%edi, (%rdx,%r8,4)
	xorl	%edi, %edi
	cmpl	8(%r13), %ebx
	cmovgel	%edi, %ebx
	cmpl	$1, %r14d
	jne	LBB0_5
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	$-2, %esi
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movl	(%rdx,%rbx,4), %ecx
	andl	%r9d, %ecx
	orl	%eax, %ecx
	leal	1(%rbx), %edi
	movl	%ecx, (%rdx,%rbx,4)
	cmpl	8(%r13), %edi
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%edi, %rcx
	movl	(%rdx,%rcx,4), %edi
	andl	%r9d, %edi
	orl	%eax, %edi
	leal	1(%rcx), %ebx
	movl	%edi, (%rdx,%rcx,4)
	cmpl	8(%r13), %ebx
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: B%1d fill %02x len %d idx %d/%d\n"

	.no_dead_strip	_fill_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_mem
_fill_mem:                              ; @fill_mem
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	w2, [x0]
	ldp	w6, w1, [x23, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x4, x19
	mov	x5, x20
	bl	_pr_debug
	ldr	w8, [x22]
	lsl	w9, w21, #8
	tst	w8, #0x2
	csel	w8, w21, w9, eq
	mov	w9, #-65281
	mov	w10, #-256
	csel	w9, w10, w9, eq
	cbz	w19, LBB0_3
; %bb.1:
	ldr	x10, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sbfiz	x11, x20, #2, #32
	ldr	w12, [x10, x11]
	and	w12, w12, w9
	orr	w12, w12, w8
	add	w13, w20, #1
	str	w12, [x10, x11]
	ldr	w11, [x23, #8]
	cmp	w13, w11
	csinc	w20, wzr, w20, ge
	sub	w19, w19, #1
	cbnz	w19, LBB0_2
LBB0_3:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: B%1d fill %02x len %d idx %d/%d\n"

	.no_dead_strip	_fill_mem
.subsections_via_symbols
