	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_frame_get_plane_buffer      ## -- Begin function av_frame_get_plane_buffer
	.p2align	4, 0x90
_av_frame_get_plane_buffer:             ## @av_frame_get_plane_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.2:
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.3:
	movq	%r15, %rdi
	callq	_CHECK_CHANNELS_CONSISTENCY
	movl	32(%r15), %edi
	callq	_av_sample_fmt_is_planar
	testq	%rax, %rax
	movl	$1, %eax
	cmovel	%eax, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	$4, %ebx
LBB0_4:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	js	LBB0_19
## %bb.5:
	cmpl	%r14d, %ebx
	jle	LBB0_19
## %bb.6:
	movq	24(%r15), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_18
## %bb.7:
	movq	16(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rax), %rcx
	cmpq	%rcx, %r14
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	(%rax), %rdx
	leaq	(%rcx,%rdx,4), %rcx
	cmpq	%rcx, %r14
	jae	LBB0_12
	jmp	LBB0_19
LBB0_13:
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.14:
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	movq	8(%rax), %rdi
	cmpq	%rdi, %r14
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	(%rax), %rbx
	leaq	(%rdi,%rbx,4), %rdi
	cmpq	%rdi, %r14
	jae	LBB0_17
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_frame_get_plane_buffer      ; -- Begin function av_frame_get_plane_buffer
	.p2align	2
_av_frame_get_plane_buffer:             ; @av_frame_get_plane_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w21, [x19]
	cbz	w21, LBB0_17
; %bb.2:
	mov	x0, x19
	bl	_CHECK_CHANNELS_CONSISTENCY
	ldr	w0, [x19, #32]
	bl	_av_sample_fmt_is_planar
	cmp	x0, #0
	csinc	w8, w21, wzr, ne
	mov	x0, #0
	tbz	w20, #31, LBB0_4
	b	LBB0_18
LBB0_3:
	mov	w8, #4
	mov	x0, #0
	tbnz	w20, #31, LBB0_18
LBB0_4:
	cmp	w8, w20
	b.le	LBB0_18
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x20, [x8, w20, uxtw #3]
	cbz	x20, LBB0_17
; %bb.6:
	ldr	x0, [x19, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x21, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	mov	x0, x8
	bl	_FF_ARRAY_ELEMS
	cmp	x21, w0, sxtw
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x0, #8]
	cmp	x20, x9
	b.lo	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x10, [x0]
	add	x9, x9, x10, lsl #2
	cmp	x20, x9
	b.hs	LBB0_8
	b	LBB0_18
LBB0_12:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	ldr	x9, [x19, #8]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x9]
	ldr	x10, [x0, #8]
	cmp	x20, x10
	b.lo	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrsw	x11, [x0]
	add	x10, x10, x11, lsl #2
	cmp	x20, x10
	b.hs	LBB0_14
	b	LBB0_18
LBB0_17:
	mov	x0, #0
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
