	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function var_size_bmc
_var_size_bmc:                          ## @var_size_bmc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	decl	%r8d
	movl	$1, %eax
	movl	%r8d, %ecx
	shll	%cl, %eax
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	leal	(%rax,%rdx), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	addl	%ecx, %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movb	$1, %dl
	xorl	%eax, %eax
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_var_size_bmc
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	je	LBB0_16
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	leaq	(%rax,%rax), %rdi
	movl	%eax, %ebx
	movl	%r8d, %ecx
	shll	%cl, %ebx
	addl	-76(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addl	%ebx, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	16(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	leaq	(%rcx,%rax), %rsi
	cmpq	$0, 8(%rcx,%rax)
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_var_size_bmc
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$31, %r8d
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %ebx
	addl	%r13d, %r13d
	addl	%ebx, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %r12d
	movq	_PX_WEIGHT_MAX@GOTPCREL(%rip), %r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r14), %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_ADD_PIXELS
	incl	%r12d
	cmpl	%r15d, %r12d
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	16(%rax), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	orq	$1, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rsi
	cmpq	$0, 8(%rax,%rcx,8)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$31, -44(%rbp)                  ## 4-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %r12d
	addl	%r13d, %r13d
	addl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_PX_WEIGHT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_ADD_PIXELS
	incl	%ebx
	cmpl	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	incl	%r15d
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_12
	jmp	LBB0_15
LBB0_16:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PX_WEIGHT_MAX,4,2              ## @PX_WEIGHT_MAX
	.no_dead_strip	_var_size_bmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function var_size_bmc
_var_size_bmc:                          ; @var_size_bmc
	.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	w5, [sp, #32]                   ; 4-byte Folded Spill
	str	w3, [sp, #20]                   ; 4-byte Folded Spill
	mov	x26, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x23, #0
	sub	w4, w4, #1
	mov	w8, #1
	lsl	w9, w8, w4
	str	w2, [sp, #44]                   ; 4-byte Folded Spill
	add	w25, w9, w2
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	add	w20, w25, w9
Lloh0:
	adrp	x19, _PX_WEIGHT_MAX@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PX_WEIGHT_MAX@GOTPAGEOFF]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	str	w4, [sp, #40]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x25
	mov	x3, x24
	ldr	w4, [sp, #40]                   ; 4-byte Folded Reload
	ldr	w5, [sp, #32]                   ; 4-byte Folded Reload
	bl	_var_size_bmc
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	mov	w23, #1
	ldp	w9, w4, [sp, #36]               ; 8-byte Folded Reload
	tbz	w9, #0, LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	mov	x10, x8
	lsl	w8, w23, w4
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	add	w24, w8, w9
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	add	w22, w24, w8
	ldr	x8, [x26, #16]
	mov	w9, #48
	madd	x1, x23, x9, x8
	ldr	x8, [x1, #8]
	str	w10, [sp, #36]                  ; 4-byte Folded Spill
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	mov	x3, x24
	ldr	w5, [sp, #32]                   ; 4-byte Folded Reload
	bl	_var_size_bmc
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w4, #31
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	lsl	w27, w9, #1
	lsl	w28, w8, #1
	mov	x26, x24
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x19]
	mov	x1, x27
	mov	x2, x28
	bl	_ADD_PIXELS
	add	w21, w21, #1
	cmp	w21, w25
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w26, w26, #1
	cmp	w26, w22
	b.lt	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x8, x23, #1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x9, [x26, #16]
	orr	x8, x8, #0x1
	mov	w10, #24
	madd	x1, x8, x10, x9
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w8, #31
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	lsl	w27, w9, #1
	lsl	w28, w8, #1
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	mov	x21, x25
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x19]
	mov	x1, x27
	mov	x2, x28
	bl	_ADD_PIXELS
	add	w21, w21, #1
	cmp	w21, w20
	b.lt	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	add	w24, w24, #1
	cmp	w24, w22
	b.lt	LBB0_13
	b	LBB0_2
LBB0_16:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PX_WEIGHT_MAX,4,2              ; @PX_WEIGHT_MAX
	.no_dead_strip	_var_size_bmc
.subsections_via_symbols
