	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opencl_get_buffer
_opencl_get_buffer:                     ## @opencl_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_av_buffer_pool_get
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	(%rax), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.2:
	leaq	-1(%r8), %rdx
	movl	%r8d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	andl	$-4, %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdi
	movq	(%rdi,%rdx,8), %rdi
	movq	16(%rbx), %rsi
	movq	%rdi, (%rsi,%rdx,8)
	movq	8(%rax), %rsi
	movq	8(%rsi,%rdx,8), %rsi
	movq	16(%rbx), %rdi
	movq	%rsi, 8(%rdi,%rdx,8)
	movq	8(%rax), %rsi
	movq	16(%rsi,%rdx,8), %rsi
	movq	16(%rbx), %rdi
	movq	%rsi, 16(%rdi,%rdx,8)
	movq	8(%rax), %rsi
	movq	24(%rsi,%rdx,8), %rsi
	movq	16(%rbx), %rdi
	movq	%rsi, 24(%rdi,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_5
LBB0_6:
	testq	%rcx, %rcx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	movq	(%rsi,%rdx,8), %rsi
	movq	16(%rbx), %rdi
	movq	%rsi, (%rdi,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_7
LBB0_8:
	movq	_AV_PIX_FMT_OPENCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_OPENCL,4,2          ## @AV_PIX_FMT_OPENCL
	.no_dead_strip	_opencl_get_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opencl_get_buffer
_opencl_get_buffer:                     ; @opencl_get_buffer
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_av_buffer_pool_get
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	lsl	x10, x10, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, #8]
	ldr	x11, [x11, x9]
	ldr	x12, [x19, #16]
	str	x11, [x12, x9]
	add	x9, x9, #8
	cmp	x10, x9
	b.ne	LBB0_3
LBB0_4:
Lloh0:
	adrp	x8, _AV_PIX_FMT_OPENCL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_OPENCL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	d0, [x20]
	str	d0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_OPENCL,4,2          ; @AV_PIX_FMT_OPENCL
	.no_dead_strip	_opencl_get_buffer
.subsections_via_symbols
