	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofwfb_set_border8
_ofwfb_set_border8:                     ## @ofwfb_set_border8
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_ofwfb_background
	movq	24(%rbx), %r10
	movl	(%rbx), %r11d
	testl	%r11d, %r11d
	jle	LBB0_1
## %bb.2:
	leaq	8(%rbx), %r9
	movl	4(%rbx), %edi
	xorl	%ecx, %ecx
	movq	%r10, %rsi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r9), %rdx
	leaq	(%rsi,%rdx,4), %rsi
	incl	%ecx
	cmpl	%r11d, %ecx
	jge	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%edi, %edi
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rsi,%rdx,4)
	incq	%rdx
	movslq	4(%rbx), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %r11d
	jmp	LBB0_7
LBB0_8:
	leaq	12(%rbx), %r8
	testl	%r11d, %r11d
	jle	LBB0_15
## %bb.9:
	movl	4(%rbx), %edi
	movl	12(%rbx), %ecx
	subl	%r11d, %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%r10,%rcx,4), %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	%edx, %rsi
	leaq	(%rcx,%rsi,4), %rcx
	incl	%r14d
	cmpl	%r11d, %r14d
	jge	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%edi, %edi
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movslq	4(%rbx), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %r11d
	movl	8(%rbx), %edx
	jmp	LBB0_14
LBB0_1:
	leaq	12(%rbx), %r8
	leaq	8(%rbx), %r9
LBB0_15:
	movl	12(%rbx), %r14d
	movl	16(%rbx), %edx
	movl	%r14d, %esi
	subl	%edx, %esi
	subl	%edx, %esi
	testl	%esi, %esi
	jle	LBB0_22
## %bb.16:
	movl	8(%rbx), %r15d
	imull	%r15d, %r11d
	movslq	%r11d, %rsi
	leaq	(%r10,%rsi,4), %rsi
	xorl	%r10d, %r10d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	%r15d, %rdi
	leaq	(%rsi,%rdi,4), %rsi
	incl	%r10d
	movl	%r14d, %ecx
	subl	%edx, %ecx
	subl	%edx, %ecx
	cmpl	%ecx, %r10d
	jge	LBB0_22
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	testl	%edx, %edx
	jle	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rsi,%rcx,4)
	movslq	4(%rbx), %rdx
	movslq	16(%rbx), %rdi
	shlq	$2, %rdx
	shlq	$2, %rdi
	subq	%rdi, %rdx
	addq	%rsi, %rdx
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	movslq	16(%rbx), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r9), %r15d
	movl	(%r8), %r14d
	jmp	LBB0_21
LBB0_22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ofwfb_set_border8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofwfb_set_border8
_ofwfb_set_border8:                     ; @ofwfb_set_border8
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_ofwfb_background
	ldr	x10, [x19, #24]
	ldr	w11, [x19]
	cmp	w11, #0
	b.le	LBB0_14
; %bb.1:
	mov	w9, #0
	add	x8, x19, #8
	ldr	w14, [x19, #4]
	mov	x13, x10
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x12, [x8]
	add	x13, x13, x12, lsl #2
	add	w9, w9, #1
	cmp	w9, w11
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w14, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w0, [x13, x11, lsl #2]
	add	x11, x11, #1
	ldrsw	x14, [x19, #4]
	cmp	x11, x14
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x19]
	b	LBB0_2
LBB0_7:
	add	x9, x19, #12
	cmp	w11, #1
	b.lt	LBB0_15
; %bb.8:
	mov	w13, #0
	ldr	w14, [x19, #12]
	sub	w14, w14, w11
	mul	w14, w14, w12
	add	x14, x10, w14, sxtw #2
	ldr	w15, [x19, #4]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x14, x14, w12, sxtw #2
	add	w13, w13, #1
	cmp	w13, w11
	b.ge	LBB0_15
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w15, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x11, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w0, [x14, x11, lsl #2]
	add	x11, x11, #1
	ldrsw	x15, [x19, #4]
	cmp	x11, x15
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w12, [x19, #8]
	ldr	w11, [x19]
	b	LBB0_9
LBB0_14:
	add	x9, x19, #12
	add	x8, x19, #8
LBB0_15:
	ldp	w14, w13, [x19, #12]
	sub	w12, w14, w13, lsl #1
	cmp	w12, #1
	b.lt	LBB0_22
; %bb.16:
	mov	w12, #0
	ldr	w15, [x19, #8]
	mul	w11, w15, w11
	add	x10, x10, w11, sxtw #2
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x10, x10, w15, sxtw #2
	add	w12, w12, #1
	sub	w11, w14, w13, lsl #1
	cmp	w12, w11
	b.ge	LBB0_22
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	cmp	w13, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x11, #0
LBB0_20:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x11, #2
	str	w0, [x10, x13]
	ldrsw	x14, [x19, #4]
	ldrsw	x15, [x19, #16]
	lsl	x14, x14, #2
	sub	x14, x14, x15, lsl #2
	add	x14, x10, x14
	str	w0, [x14, x13]
	add	x11, x11, #1
	ldrsw	x13, [x19, #16]
	cmp	x11, x13
	b.lt	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w15, [x8]
	ldr	w14, [x9]
	b	LBB0_17
LBB0_22:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ofwfb_set_border8
.subsections_via_symbols
