	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_weight_distribution
_check_weight_distribution:             ## @check_weight_distribution
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	(%rdi), %r9
	movl	$1, %eax
	testq	%r9, %r9
	je	LBB0_8
## %bb.1:
	xorl	%r8d, %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r9, %r8
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r8, %rcx
	incq	%r8
	cmpq	%r9, %r8
	jae	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi), %r10
	movq	(%r10,%rcx,8), %rcx
	movl	(%rcx), %edx
	movl	8(%rcx), %r11d
	incl	%edx
	movq	%r8, %rsi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r10,%rsi,8), %rcx
	movl	(%rcx), %ebx
	incl	%ebx
	imull	%r11d, %ebx
	movl	8(%rcx), %ecx
	imull	%edx, %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rsi
	cmpq	%r9, %rsi
	jb	LBB0_6
	jmp	LBB0_2
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_weight_distribution
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_weight_distribution
_check_weight_distribution:             ; @check_weight_distribution
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x12, #0
	sub	x9, x8, #1
	mov	w10, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x9, #1
	add	x10, x10, #1
	mov	x12, x11
	cmp	x11, x8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x11, x12, #1
	cmp	x11, x8
	b.hs	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x0, #8]
	ldr	x13, [x14, x12, lsl #3]
	ldr	w12, [x13, #8]
	ldr	w13, [x13]
	add	w13, w13, #1
	add	x14, x14, x10, lsl #3
	mov	x15, x9
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x14]
	ldr	w17, [x16]
	madd	w17, w12, w17, w12
	ldr	w16, [x16, #8]
	mul	w16, w13, w16
	cmp	w17, w16
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x14, x14, #8
	subs	x15, x15, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_weight_distribution
.subsections_via_symbols
