	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_buffer_realloc        ## -- Begin function hb_video_buffer_realloc
	.p2align	4, 0x90
_hb_video_buffer_realloc:               ## @hb_video_buffer_realloc
	.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	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	movl	$0, 4(%rbx)
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.5:
	xorl	%ecx, %ecx
	movl	$1, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdx
	movl	-4(%rdx,%r13,4), %r14d
	cmpl	%ecx, %r14d
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, 4(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r14d, %rcx
	cmpl	$0, -64(%rbp,%rcx,4)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -64(%rbp,%rcx,4)
	movl	16(%rbx), %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_hb_image_stride
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	%eax, %r15d
	movl	16(%rbx), %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_hb_image_height_stride
	imull	%r15d, %eax
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	addl	%eax, %r15d
	movl	(%r12), %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %ecx
	incq	%r13
	jmp	LBB0_6
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_hb_buffer_realloc
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rbx)
	movl	%r15d, (%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.12:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_buffer_init_planes          ## TAILCALL
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_buffer_realloc        ; -- Begin function hb_video_buffer_realloc
	.p2align	2
_hb_video_buffer_realloc:               ; @hb_video_buffer_realloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0, #16]
	bl	_av_pix_fmt_desc_get
	stp	xzr, xzr, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
	str	wzr, [x19, #4]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w9, #0
	mov	x26, #0
	mov	w23, #0
	add	x27, sp, #8
	mov	w28, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22, #8]
	ldr	w24, [x10, x26, lsl #2]
	cmp	w24, w9
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w24, [x19, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x9, w24
	ldr	w10, [x27, x9, lsl #2]
	cbnz	w10, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w28, [x27, x9, lsl #2]
	ldr	w0, [x19, #16]
	mov	x1, x21
	mov	x2, x24
	bl	_hb_image_stride
	mov	x25, x0
	ldr	w0, [x19, #16]
	mov	x1, x20
	mov	x2, x24
	bl	_hb_image_height_stride
	madd	w23, w0, w25, w23
	ldr	w8, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #4]
	b	LBB0_3
LBB0_9:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	mov	w23, #0
LBB0_12:
	mov	x0, x19
	mov	x1, x23
	bl	_hb_buffer_realloc
	stp	w21, w20, [x19, #8]
	str	w23, [x19]
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_hb_buffer_init_planes
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
