	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_lbg
_simple_lbg:                            ## @simple_lbg
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r13
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -104(%rbp)
	movl	(%rdi), %eax
	leal	(%rbx,%rbx,2), %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rdi
	movq	%rdi, -64(%rbp)
	leal	(%rax,%rbx,4), %eax
	movslq	%eax, %r12
	movq	%r12, -56(%rbp)
	leal	(,%rbx,8), %edx
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	callq	_memset
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rcx)
	movslq	%ebx, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$0, %edx
	testq	%r14, %r14
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.1:
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, %r12d
	movq	%r12, -144(%rbp)                ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$-2, %r12d
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%r14, %r15
	movq	-112(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movslq	(%r15), %rax
	imulq	%r14, %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_distance_limited
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movslq	(%r15), %rax
	imulq	%r14, %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_distance_limited
	xorl	%ecx, %ecx
	cmpl	%eax, -76(%rbp)                 ## 4-byte Folded Reload
	setge	%cl
	incl	-104(%rbp,%rcx,4)
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp,%rcx,8), %rax
	xorl	%ecx, %ecx
	cmpl	$1, %ebx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edx
	imull	%ebx, %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	movl	(%r13,%rdx,4), %edx
	addl	%edx, (%rax,%rcx,4)
	movl	(%r15), %edx
	imull	%ebx, %edx
	addl	%ecx, %edx
	incl	%edx
	movslq	%edx, %rdx
	movl	(%r13,%rdx,4), %edx
	addl	%edx, 4(%rax,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -144(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	imull	%ebx, %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	movl	(%r13,%rdx,4), %edx
	addl	%edx, (%rax,%rcx,4)
	jmp	LBB0_7
LBB0_8:
	movl	-104(%rbp), %edx
	movl	-100(%rbp), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-120(%rbp), %r12                ## 8-byte Reload
LBB0_9:
	movq	(%r15), %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_vect_division
	movq	8(%r15), %rdi
	movq	%r12, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_vect_division
	testq	%r14, %r14
	movq	%r15, %rax
	movq	-112(%rbp), %r15                ## 8-byte Reload
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	movslq	(%r14), %rax
	imulq	%r15, %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_distance_limited
	movq	%r14, %r12
	movl	%eax, %r14d
	movl	%eax, -72(%rbp)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movslq	(%r12), %rax
	imulq	%r15, %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_distance_limited
	movl	%eax, -68(%rbp)
	xorl	%ecx, %ecx
	cmpl	%eax, %r14d
	movq	%r12, %r14
	setg	%cl
	movl	-72(%rbp,%rcx,4), %eax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addl	%eax, (%rdx,%rcx,4)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%r12), %r14
	testq	%r14, %r14
	jne	LBB0_10
LBB0_11:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	addl	(%rcx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_simple_lbg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_lbg
_simple_lbg:                            ; @simple_lbg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x25, x5
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	xzr, [sp, #24]
	ldr	w8, [x0]
	add	w9, w1, w1, lsl #1
	add	w9, w8, w9
	sxtw	x24, w9
	add	w8, w8, w1, lsl #2
	sxtw	x20, w8
	stp	x24, x20, [sp, #40]
	lsl	w2, w1, #3
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	str	xzr, [x19]
Lloh3:
	adrp	x27, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x27, [x27, _INT_MAX@GOTPAGEOFF]
	cbz	x25, LBB0_7
; %bb.1:
	stp	x24, x20, [sp, #8]              ; 16-byte Folded Spill
	sxtw	x24, w23
	mov	x20, x25
	mov	w28, w23
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x0, [x22]
	ldr	w8, [x20]
	mul	w8, w8, w23
	add	x1, x21, w8, sxtw #2
	ldr	w3, [x27]
	mov	x2, x23
	bl	_distance_limited
	mov	x26, x0
	ldr	x0, [x22, #8]
	ldr	w8, [x20]
	mul	w8, w8, w23
	add	x1, x21, w8, sxtw #2
	ldr	w3, [x27]
	mov	x2, x23
	bl	_distance_limited
	cmp	w26, w0
	cset	w9, ge
	add	x8, sp, #24
	bfi	x8, x9, #2, #1
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	add	x10, sp, #40
	ldr	x9, [x10, x9, lsl #3]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x10, [x20]
	madd	x10, x10, x24, x8
	ldr	w10, [x21, x10, lsl #2]
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	add	w10, w12, w10
	str	w10, [x9, x11]
	add	x8, x8, #1
	cmp	x28, x8
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	w2, w26, [sp, #24]
	ldp	x24, x20, [sp, #8]              ; 16-byte Folded Reload
	b	LBB0_8
LBB0_7:
	mov	w26, #0
	mov	w2, #0
LBB0_8:
	ldr	x0, [x22]
	mov	x1, x24
	mov	x3, x23
	bl	_vect_division
	ldr	x0, [x22, #8]
	mov	x1, x20
	mov	x2, x26
	mov	x3, x23
	bl	_vect_division
	cbz	x25, LBB0_11
; %bb.9:
	add	x20, sp, #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w8, [x25]
	mul	w8, w8, w23
	add	x1, x21, w8, sxtw #2
	ldr	w3, [x27]
	mov	x2, x23
	bl	_distance_limited
	mov	x24, x0
	str	w0, [sp, #32]
	ldr	x0, [x22, #8]
	ldr	w8, [x25]
	mul	w8, w8, w23
	add	x1, x21, w8, sxtw #2
	ldr	w3, [x27]
	mov	x2, x23
	bl	_distance_limited
	str	w0, [sp, #36]
	cmp	w24, w0
	cset	w8, gt
	lsl	x8, x8, #2
	ldr	w9, [x20, x8]
	ldr	w10, [x19, x8]
	add	w9, w10, w9
	str	w9, [x19, x8]
	ldr	x25, [x25, #8]
	cbnz	x25, LBB0_10
LBB0_11:
	ldp	w8, w9, [x19]
	ldr	x10, [sp, #56]
Lloh5:
	adrp	x11, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x11, [x11, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_13
; %bb.12:
	add	w0, w9, w8
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_simple_lbg
.subsections_via_symbols
