	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_ones
_fill_ones:                             ## @fill_ones
	.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
	movl	%esi, %r14d
	movq	(%rdi), %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	setne	%cl
	sarl	%cl, %r14d
	leaq	4(,%r14,4), %rbx
	movl	(%r12), %r15d
	leaq	L_.memset_pattern(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.1:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.memset_pattern(%rip), %rcx
	leaq	L_.memset_pattern.1(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %r15
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memset_pattern16
	jmp	LBB0_4
LBB0_5:
	movl	16(%r12), %r15d
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.6:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.memset_pattern(%rip), %rcx
	leaq	L_.memset_pattern.1(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	cmpq	%r13, %r15
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memset_pattern16
	jmp	LBB0_9
LBB0_10:
	movl	32(%r12), %r15d
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.11:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.memset_pattern(%rip), %rcx
	leaq	L_.memset_pattern.1(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	cmpq	%r13, %r15
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	js	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	40(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memset_pattern16
	jmp	LBB0_14
LBB0_15:
	movl	48(%r12), %r15d
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.16:
	movq	%rbx, %r13
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	L_.memset_pattern.1(%rip), %rcx
	cmoveq	%rcx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memset_pattern16
	jmp	LBB0_19
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	262144                          ## 0x40000
	.long	262144                          ## 0x40000
	.long	262144                          ## 0x40000
	.long	262144                          ## 0x40000

	.p2align	4                               ## @.memset_pattern.1
L_.memset_pattern.1:
	.long	16384                           ## 0x4000
	.long	16384                           ## 0x4000
	.long	16384                           ## 0x4000
	.long	16384                           ## 0x4000

	.no_dead_strip	_fill_ones
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_ones
_fill_ones:                             ; @fill_ones
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	ldr	x22, [x0]
	cmp	w2, #0
	cset	w8, ne
	asr	w23, w1, w8
	lsl	x8, x23, #2
	add	x19, x8, #4
	ldr	w8, [x22]
Lloh0:
	adrp	x24, l_.memset_pattern@PAGE
Lloh1:
	add	x24, x24, l_.memset_pattern@PAGEOFF
Lloh2:
	adrp	x25, l_.memset_pattern.1@PAGE
Lloh3:
	add	x25, x25, l_.memset_pattern.1@PAGEOFF
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x26, #0
	cmp	w20, #0
	csel	x21, x25, x24, eq
	lsl	x27, x8, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #8
	cmp	x27, x26
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w23, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x0, [x8, x26]
	mov	x1, x21
	mov	x2, x19
	bl	_memset_pattern16
	b	LBB0_2
LBB0_5:
	ldr	w8, [x22, #16]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x26, #0
	cmp	w20, #0
	csel	x21, x25, x24, eq
	lsl	x27, x8, #3
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #8
	cmp	x27, x26
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w23, #31, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #24]
	ldr	x0, [x8, x26]
	mov	x1, x21
	mov	x2, x19
	bl	_memset_pattern16
	b	LBB0_7
LBB0_10:
	ldr	w8, [x22, #32]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x26, #0
	cmp	w20, #0
	csel	x21, x25, x24, eq
	lsl	x27, x8, #3
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x26, #8
	cmp	x27, x26
	b.eq	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	tbnz	w23, #31, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22, #40]
	ldr	x0, [x8, x26]
	mov	x1, x21
	mov	x2, x19
	bl	_memset_pattern16
	b	LBB0_12
LBB0_15:
	ldr	w8, [x22, #48]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x21, #0
	cmp	w20, #0
	csel	x20, x25, x24, eq
	lsl	x24, x8, #3
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #8
	cmp	x24, x21
	b.eq	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	tbnz	w23, #31, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x22, #56]
	ldr	x0, [x8, x21]
	mov	x1, x20
	mov	x2, x19
	bl	_memset_pattern16
	b	LBB0_17
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	262144                          ; 0x40000
	.long	262144                          ; 0x40000
	.long	262144                          ; 0x40000
	.long	262144                          ; 0x40000

	.p2align	4                               ; @.memset_pattern.1
l_.memset_pattern.1:
	.long	16384                           ; 0x4000
	.long	16384                           ; 0x4000
	.long	16384                           ; 0x4000
	.long	16384                           ; 0x4000

	.no_dead_strip	_fill_ones
.subsections_via_symbols
