	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opencl_filter_work_size_from_image ## -- Begin function ff_opencl_filter_work_size_from_image
	.p2align	4, 0x90
_ff_opencl_filter_work_size_from_image: ## @ff_opencl_filter_work_size_from_image
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdx), %rdi
	movq	_AV_PIX_FMT_OPENCL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_1
## %bb.2:
	movl	%ecx, %r14d
	movq	8(%rdx), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.5:
	movl	%r8d, %r12d
	movq	%rsi, %r15
	movq	_CL_MEM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$8, %edx
	xorl	%r8d, %r8d
	callq	_clGetMemObjectInfo
	movq	_CL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.8:
	movq	-64(%rbp), %rax
	movq	_CL_MEM_OBJECT_IMAGE2D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	_CL_IMAGE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$8, %edx
	xorl	%r8d, %r8d
	callq	_clGetImageInfo
	movq	_CL_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_11
## %bb.12:
	movq	_CL_IMAGE_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rdx, %rbx
	movl	$8, %edx
	xorl	%r8d, %r8d
	callq	_clGetImageInfo
	cmpq	(%rbx), %rax
	jne	LBB0_13
## %bb.14:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.16:
	movq	-56(%rbp), %rdi
	movl	%r12d, %esi
	callq	_FFALIGN
	movq	%rax, -56(%rbp)
	movq	-48(%rbp), %rdi
	movl	%r12d, %esi
	callq	_FFALIGN
	movq	%rax, -48(%rbp)
	jmp	LBB0_17
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	jmp	LBB0_4
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
LBB0_4:
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_7:
	movq	%r13, %rdi
	movl	%r14d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_7
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_7
LBB0_15:
	movq	-48(%rbp), %rax
LBB0_17:
	movq	-56(%rbp), %rcx
	movq	%rcx, (%r15)
	movq	%rax, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_OPENCL,8,3          ## @AV_PIX_FMT_OPENCL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid frame format %s, opencl required.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Plane %d required but not set.\n"

	.comm	_CL_MEM_TYPE,4,2                ## @CL_MEM_TYPE
	.comm	_CL_SUCCESS,8,3                 ## @CL_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to query object type of plane %d: %d.\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_CL_MEM_OBJECT_IMAGE2D,8,3      ## @CL_MEM_OBJECT_IMAGE2D
L_.str.3:                               ## @.str.3
	.asciz	"Plane %d is not a 2D image.\n"

	.comm	_CL_IMAGE_WIDTH,4,2             ## @CL_IMAGE_WIDTH
L_.str.4:                               ## @.str.4
	.asciz	"Failed to query plane %d width: %d.\n"

	.comm	_CL_IMAGE_HEIGHT,4,2            ## @CL_IMAGE_HEIGHT
L_.str.5:                               ## @.str.5
	.asciz	"Failed to query plane %d height: %d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opencl_filter_work_size_from_image ; -- Begin function ff_opencl_filter_work_size_from_image
	.p2align	2
_ff_opencl_filter_work_size_from_image: ; @ff_opencl_filter_work_size_from_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldr	x0, [x2]
Lloh0:
	adrp	x8, _AV_PIX_FMT_OPENCL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_OPENCL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x3
	ldr	x8, [x2, #8]
	ldr	x23, [x8, w3, sxtw #3]
	cbz	x23, LBB0_9
; %bb.2:
	mov	x22, x4
	mov	x21, x1
Lloh3:
	adrp	x8, _CL_MEM_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CL_MEM_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x0, x23
	mov	w2, #8
	mov	x4, #0
	bl	_clGetMemObjectInfo
Lloh6:
	adrp	x24, _CL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, _CL_MEM_OBJECT_IMAGE2D@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CL_MEM_OBJECT_IMAGE2D@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.4:
Lloh11:
	adrp	x8, _CL_IMAGE_WIDTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CL_IMAGE_WIDTH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x23
	mov	w2, #8
	mov	x4, #0
	bl	_clGetImageInfo
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.5:
Lloh14:
	adrp	x8, _CL_IMAGE_HEIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CL_IMAGE_HEIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x23
	mov	w2, #8
	mov	x4, #0
	bl	_clGetImageInfo
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.6:
	cbz	w22, LBB0_17
; %bb.7:
	ldr	x0, [sp, #16]
	mov	x1, x22
	bl	_FFALIGN
	str	x0, [sp, #16]
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_FFALIGN
	mov	x8, x0
	str	x0, [sp, #8]
	b	LBB0_18
LBB0_8:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	bl	_av_get_pix_fmt_name
	mov	x3, x0
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
LBB0_10:
	bl	_av_log
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
LBB0_11:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x3, x19
	bl	_av_log
Lloh35:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
Lloh38:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.3@PAGE
Lloh42:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_av_log
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
Lloh46:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh49:
	adrp	x2, l_.str.4@PAGE
Lloh50:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_16:
Lloh51:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh54:
	adrp	x2, l_.str.5@PAGE
Lloh55:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_17:
	ldr	x8, [sp, #8]
LBB0_18:
	mov	w0, #0
	ldr	x9, [sp, #16]
	stp	x9, x8, [x21]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_OPENCL,8,3          ; @AV_PIX_FMT_OPENCL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frame format %s, opencl required.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Plane %d required but not set.\n"

	.comm	_CL_MEM_TYPE,4,2                ; @CL_MEM_TYPE
	.comm	_CL_SUCCESS,8,3                 ; @CL_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to query object type of plane %d: %d.\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_CL_MEM_OBJECT_IMAGE2D,8,3      ; @CL_MEM_OBJECT_IMAGE2D
l_.str.3:                               ; @.str.3
	.asciz	"Plane %d is not a 2D image.\n"

	.comm	_CL_IMAGE_WIDTH,4,2             ; @CL_IMAGE_WIDTH
l_.str.4:                               ; @.str.4
	.asciz	"Failed to query plane %d width: %d.\n"

	.comm	_CL_IMAGE_HEIGHT,4,2            ; @CL_IMAGE_HEIGHT
l_.str.5:                               ; @.str.5
	.asciz	"Failed to query plane %d height: %d.\n"

.subsections_via_symbols
