	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extend_edges
_extend_edges:                          ## @extend_edges
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	incq	%rsi
	cmpq	$3, %rsi
	je	LBB0_15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	testq	%rsi, %rsi
	setne	%cl
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	sarl	%cl, %eax
	movl	4(%rdx), %edi
	sarl	%cl, %edi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %r12d
	sarl	%cl, %r12d
	leal	-1(%r12), %ecx
	movl	%eax, %r14d
	andl	%ecx, %r14d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	andl	%ecx, %edi
	movl	%r14d, %edx
	orl	%edi, %edx
	je	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movslq	(%rdx,%rsi,4), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	(%rdx,%rsi,8), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cltq
	subl	%r14d, %ecx
	leaq	4(,%rcx,4), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	addq	%r15, %rbx
	decq	%r13
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r14d, %r12d
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	leaq	L_.memset_pattern.1(%rip), %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_memset_pattern16
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	leaq	L_.memset_pattern.1(%rip), %r15
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	subl	%eax, %r12d
	testl	%r12d, %r12d
	jle	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	%ecx, %eax
	cltq
	movl	%ecx, %r13d
	shlq	$2, %r13
	movl	%r12d, %r14d
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rbx
	leaq	(,%rcx,4), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	addq	%r12, %rbx
	decq	%r14
	je	LBB0_14
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_memset_pattern16
	jmp	LBB0_13
LBB0_15:
	addq	$72, %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.1
L_.memset_pattern.1:
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80

	.no_dead_strip	_extend_edges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extend_edges
_extend_edges:                          ; @extend_edges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	w1, [sp, #28]                   ; 4-byte Folded Spill
	mov	x11, #0
	ldr	x8, [x0, #8]
	stp	x8, x0, [sp, #8]                ; 16-byte Folded Spill
	ldr	x8, [x0, #16]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x24, l_.memset_pattern.1@PAGE
Lloh1:
	add	x24, x24, l_.memset_pattern.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
	add	x11, x11, #1
	cmp	x11, #3
	b.eq	LBB0_14
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	cmp	x11, #0
	cset	w9, ne
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldp	w8, w10, [x10]
	asr	w8, w8, w9
	asr	w21, w10, w9
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	asr	w26, w10, w9
	sub	w9, w26, #1
	and	w20, w8, w9
	and	w19, w21, w9
	orr	w10, w20, w19
	cbz	w10, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldrsw	x27, [x10, x11, lsl #2]
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	ldr	x10, [x10, x11, lsl #3]
	stp	x10, x11, [sp, #32]             ; 16-byte Folded Spill
	cmp	w20, #0
	ccmp	w21, #1, #8, ne
	b.ge	LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w19, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w19, w26, w19
	cmp	w19, #1
	b.lt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mul	w8, w27, w21
	and	x9, x27, #0xffffffff
	lsl	x22, x9, #2
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x23, x9, w8, sxtw #2
	lsl	x20, x27, #2
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x23, x23, x20
	subs	x19, x19, #1
	b.eq	LBB0_1
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w27, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_memset_pattern16
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w9, w9, w20
	lsl	x9, x9, #2
	add	x22, x9, #4
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x23, x9, w8, sxtw #2
	lsl	x25, x27, #2
	mov	x28, x21
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x23, x23, x25
	subs	x28, x28, #1
	b.eq	LBB0_4
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w26, w20
	b.le	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_memset_pattern16
	b	LBB0_11
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern.1
l_.memset_pattern.1:
	.long	128                             ; 0x80
	.long	128                             ; 0x80
	.long	128                             ; 0x80
	.long	128                             ; 0x80

	.no_dead_strip	_extend_edges
.subsections_via_symbols
