	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chs_alloc_lsb_band_data
_chs_alloc_lsb_band_data:               ## @chs_alloc_lsb_band_data
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_38
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %r8
	cmpl	$1, %r9d
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_9:
	testb	$1, %r9b
	je	LBB0_12
## %bb.10:
	shlq	$4, %rsi
	cmpq	$0, 8(%r8,%rsi)
	je	LBB0_12
## %bb.11:
	movl	4(%rbx), %eax
	imull	(%r14), %eax
	addl	%eax, %edx
LBB0_12:
	testl	%edx, %edx
	je	LBB0_38
## %bb.13:
	movq	16(%rbx), %rdi
	movq	24(%rbx), %rsi
	addq	$8, %rdi
	addq	$4, %rsi
	shll	$2, %edx
	callq	_av_fast_malloc
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_39
## %bb.14:
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_38
## %bb.15:
	movl	4(%rbx), %r15d
	leaq	-1(%r15), %r12
	movq	%r15, %r10
	addq	$-2, %r10
	movl	%r12d, %r11d
	andl	$3, %r11d
	movq	%r12, %rcx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	andq	$-4, %r12
	xorl	%r13d, %r13d
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	movq	%r11, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rsi, %rax
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	cmpq	%r9, %r13
	je	LBB0_38
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
	movq	8(%rbx), %rcx
	movq	%r13, %rdi
	shlq	$4, %rdi
	cmpq	$0, 8(%rcx,%rdi)
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_37
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	(%r14), %r8
	movq	(%rcx,%rdi), %rcx
	movq	%rax, (%rcx)
	leaq	(%rax,%r8,4), %rsi
	cmpl	$1, %r15d
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, %edx
	cmpq	$3, %r10
	jae	LBB0_31
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
                                        ## implicit-def: $rax
	testq	%r11, %r11
	jne	LBB0_35
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_37
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rcx,%rdi), %rcx
	movq	$0, (%rcx)
	cmpl	$1, %r15d
	je	LBB0_37
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, %ecx
	cmpq	$3, %r10
	jb	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rdx
	movq	(%rdx,%rdi), %rdx
	movq	$0, 8(%rdx,%rcx,8)
	movq	8(%rbx), %rdx
	movq	(%rdx,%rdi), %rdx
	movq	$0, 16(%rdx,%rcx,8)
	movq	8(%rbx), %rdx
	movq	(%rdx,%rdi), %rdx
	movq	$0, 24(%rdx,%rcx,8)
	movq	8(%rbx), %rdx
	movq	(%rdx,%rdi), %rdx
	movq	$0, 32(%rdx,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rcx
LBB0_28:                                ##   in Loop: Header=BB0_16 Depth=1
	testb	$3, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_37
## %bb.29:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r11, %rdx
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rsi
	movq	(%rsi,%rdi), %rsi
	movq	$0, (%rsi,%rcx,8)
	incq	%rcx
	decq	%rdx
	jne	LBB0_30
	jmp	LBB0_37
LBB0_31:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r8, %r11
	shlq	$4, %r11
	leaq	(,%r8,4), %r9
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rsi, %rax
	movq	8(%rbx), %rsi
	movq	(%rsi,%rdi), %rsi
	movq	%rax, 8(%rsi,%rdx,8)
	movq	8(%rbx), %rsi
	movq	(%rsi,%rdi), %r10
	leaq	(%rax,%r9), %rsi
	movq	%rsi, 16(%r10,%rdx,8)
	movq	8(%rbx), %rcx
	movq	(%rcx,%rdi), %rcx
	addq	%r9, %rsi
	movq	%rsi, 24(%rcx,%rdx,8)
	movq	8(%rbx), %rcx
	movq	(%rcx,%rdi), %rcx
	addq	%r9, %rsi
	movq	%rsi, 32(%rcx,%rdx,8)
	addq	$4, %rdx
	addq	%r9, %rsi
	cmpq	%rdx, %r12
	jne	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	%r11, %rax
	incq	%rdx
	movq	%rax, %rsi
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	testq	%r11, %r11
	je	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_16 Depth=1
	shlq	$2, %r8
	movq	%r11, %rcx
	movq	%rsi, %rax
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rsi
	movq	(%rsi,%rdi), %rsi
	movq	%rax, (%rsi,%rdx,8)
	incq	%rdx
	addq	%r8, %rax
	decq	%rcx
	jne	LBB0_36
	jmp	LBB0_37
LBB0_38:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r9d, %edi
	andl	$-2, %edi
	leaq	24(%r8), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rsi
	addq	$32, %rcx
	cmpq	%rsi, %rdi
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -16(%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %eax
	imull	(%r14), %eax
	addl	%eax, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %eax
	imull	(%r14), %eax
	addl	%eax, %edx
	jmp	LBB0_8
LBB0_39:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_chs_alloc_lsb_band_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chs_alloc_lsb_band_data
_chs_alloc_lsb_band_data:               ; @chs_alloc_lsb_band_data
	.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
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w8, #0
	ldr	x10, [x1, #8]
	add	x10, x10, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x20]
	ldr	w12, [x19, #4]
	madd	w8, w12, w11, w8
	b	LBB0_2
LBB0_5:
	cbz	w8, LBB0_19
; %bb.6:
	ldp	x9, x10, [x19, #16]
	add	x0, x9, #8
	add	x1, x10, #4
	lsl	w2, w8, #2
	bl	_av_fast_malloc
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_20
; %bb.7:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.8:
	mov	x10, #0
	ldr	w11, [x19, #4]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_19
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x13, [x19, #8]
	add	x12, x13, x10, lsl #4
	ldr	x14, [x12, #8]
	lsl	x12, x10, #4
	cmp	w11, #1
	cbz	x14, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x14, [x20]
	ldr	x13, [x13, x12]
	str	x8, [x13]
	add	x8, x8, x14, lsl #2
	cmp	w11, #1
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	x13, x14, #2
	mov	w14, #1
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x19, #8]
	ldr	x15, [x15, x12]
	str	x8, [x15, x14, lsl #3]
	add	x14, x14, #1
	add	x8, x8, x13
	cmp	x11, x14
	b.ne	LBB0_14
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	b.lt	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x13, [x13, x12]
	str	xzr, [x13]
	cmp	w11, #1
	b.eq	LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w13, #1
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x19, #8]
	ldr	x14, [x14, x12]
	str	xzr, [x14, x13, lsl #3]
	add	x13, x13, #1
	cmp	x11, x13
	b.ne	LBB0_18
	b	LBB0_9
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_chs_alloc_lsb_band_data
.subsections_via_symbols
