	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_buffer_with_edge
_get_buffer_with_edge:                  ## @get_buffer_with_edge
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_av_pix_fmt_get_chroma_sub_sample
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_EDGE_WIDTH@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	leaq	(%rax,%rax), %rcx
	addq	%rax, %rax
	addq	$2, %rax
	movdqu	(%r12), %xmm0
	movq	%rcx, %xmm1
	movq	%rax, %xmm2
	punpcklqdq	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0]
	paddq	%xmm0, %xmm2
	movdqu	%xmm2, 8(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	24(%r14), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %r8d
	movl	-36(%rbp), %r9d
	movq	(%r14), %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rsi), %ecx
	cmpl	$2, %ecx
	movl	$0, %ecx
	cmovbl	%r9d, %ecx
	movl	%r8d, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	movslq	(%rbx,%rsi,4), %rcx
	movslq	%edi, %rdi
	imulq	%rcx, %rdi
	leaq	(%rdi,%rdx), %rcx
	addq	$32, %rcx
	movq	%rcx, (%rax,%rsi,8)
	movq	8(%rax,%rsi,8), %rdx
	incq	%rsi
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_5:
	movdqu	(%r12), %xmm0
	movdqu	%xmm0, 8(%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDGE_WIDTH,4,2                 ## @EDGE_WIDTH
	.no_dead_strip	_get_buffer_with_edge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_buffer_with_edge
_get_buffer_with_edge:                  ; @get_buffer_with_edge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #16]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_av_pix_fmt_get_chroma_sub_sample
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh0:
	adrp	x22, _EDGE_WIDTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EDGE_WIDTH@GOTPAGEOFF]
	ldrsw	x8, [x22]
	lsl	x8, x8, #1
	ldp	x10, x9, [x20]
	add	x9, x9, x8
	add	x8, x8, x10
	add	x8, x8, #2
	stp	x8, x9, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x11, [x19, #24]
	ldr	x8, [x11]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w9, [x22]
	ldr	w10, [sp, #8]
	add	x11, x11, #8
	mov	w12, #-1
	ldr	x13, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, #2
	csel	w14, w10, wzr, lo
	asr	w14, w9, w14
	ldrsw	x15, [x13], #4
	sxtw	x14, w14
	madd	x8, x14, x15, x8
	add	x8, x8, #32
	stur	x8, [x11, #-8]
	ldr	x8, [x11], #8
	add	w12, w12, #1
	cbnz	x8, LBB0_4
LBB0_5:
	mov	w0, #0
	ldr	q0, [x20]
	stur	q0, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EDGE_WIDTH,4,2                 ; @EDGE_WIDTH
	.no_dead_strip	_get_buffer_with_edge
.subsections_via_symbols
