	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opencl_frames_get_constraints
_opencl_frames_get_constraints:         ## @opencl_frames_get_constraints
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	$0, -56(%rbp)
	movl	4(%r14), %edi
	movq	_CL_DEVICE_IMAGE2D_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-120(%rbp), %rcx
	movl	$8, %edx
	xorl	%r8d, %r8d
	callq	_clGetDeviceInfo
	movq	_CL_SUCCESS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_1
## %bb.2:
	movq	-120(%rbp), %rax
	movq	%rax, (%r13)
	jmp	LBB0_3
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_3:
	movl	4(%r14), %edi
	movq	_CL_DEVICE_IMAGE2D_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rcx
	movl	$8, %edx
	xorl	%r8d, %r8d
	callq	_clGetDeviceInfo
	cmpl	(%r15), %eax
	jne	LBB0_4
## %bb.5:
	movq	-112(%rbp), %r8
	movq	%r8, 8(%r13)
	jmp	LBB0_6
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	8(%r13), %r8
LBB0_6:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r14), %edi
	movq	_CL_MEM_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CL_MEM_OBJECT_IMAGE2D@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-64(%rbp), %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_clGetSupportedImageFormats
	cmpl	(%r15), %eax
	jne	LBB0_7
## %bb.12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.14:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$16, %esi
	callq	_av_malloc_array
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %r13
	movl	(%r14), %edi
	movq	_CL_MEM_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	-64(%rbp), %rcx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	callq	_clGetSupportedImageFormats
	cmpl	(%r15), %eax
	jne	LBB0_39
## %bb.17:
	movq	_AV_PIX_FMT_NB@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_36
## %bb.18:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %r15
	addq	$8, %r13
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_35:                                ##   in Loop: Header=BB0_19 Depth=1
	incl	%r14d
	movq	_AV_PIX_FMT_NB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jae	LBB0_36
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_25 Depth 3
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-104(%rbp), %r8
	leaq	-124(%rbp), %r12
	movq	%r12, %r9
	callq	_opencl_get_plane_format
	testl	%eax, %eax
	js	LBB0_31
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_25 Depth 3
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-104(%rbp), %rdx
	movq	-96(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=3
	incq	%rcx
	addq	$16, %rdi
	cmpq	%rcx, %rax
	je	LBB0_28
LBB0_25:                                ##   Parent Loop BB0_19 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rdx, -8(%rdi)
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=3
	cmpq	%rsi, (%rdi)
	jne	LBB0_27
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%rax, %rcx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_22 Depth=2
	xorl	%ecx, %ecx
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	%ecx, %ecx
	cmpq	%rcx, %rax
	je	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_22 Depth=2
	incl	%r15d
	movl	%r14d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-104(%rbp), %r8
	movq	%r12, %r9
	callq	_opencl_get_plane_format
	testl	%eax, %eax
	jns	LBB0_22
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_31:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_av_get_pix_fmt_name
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	leal	2(%r12), %esi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_av_reallocp_array
	testl	%eax, %eax
	js	LBB0_11
## %bb.34:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	incl	%r12d
	movl	%edx, 4(%rax,%rcx,4)
	jmp	LBB0_35
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
LBB0_8:
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_11:
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_av_freep
LBB0_38:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_36:
	leaq	-56(%rbp), %rdi
	callq	_av_freep
	movl	$2, %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 24(%rdx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.37:
	movq	_AV_PIX_FMT_OPENCL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rdx), %rcx
	movq	%rax, 8(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_DEVICE_IMAGE2D_MAX_WIDTH,4,2 ## @CL_DEVICE_IMAGE2D_MAX_WIDTH
	.comm	_CL_SUCCESS,4,2                 ## @CL_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query maximum supported image width: %d.\n"

	.comm	_CL_DEVICE_IMAGE2D_MAX_HEIGHT,4,2 ## @CL_DEVICE_IMAGE2D_MAX_HEIGHT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to query maximum supported image height: %d.\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Maximum supported image size %dx%d.\n"

	.comm	_CL_MEM_READ_WRITE,4,2          ## @CL_MEM_READ_WRITE
	.comm	_CL_MEM_OBJECT_IMAGE2D,4,2      ## @CL_MEM_OBJECT_IMAGE2D
L_.str.3:                               ## @.str.3
	.asciz	"Failed to query supported image formats: %d.\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.4:                               ## @.str.4
	.asciz	"No image support in OpenCL driver (zero supported image formats).\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_NB,4,2              ## @AV_PIX_FMT_NB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.5:                               ## @.str.5
	.asciz	"Format %s supported.\n"

	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_OPENCL,8,3          ## @AV_PIX_FMT_OPENCL
	.no_dead_strip	_opencl_frames_get_constraints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opencl_frames_get_constraints
_opencl_frames_get_constraints:         ; @opencl_frames_get_constraints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x2
	mov	x20, x0
	ldr	x21, [x0]
	str	xzr, [sp, #64]
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x8, _CL_DEVICE_IMAGE2D_MAX_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CL_DEVICE_IMAGE2D_MAX_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #56
	mov	w2, #8
	mov	x4, #0
	bl	_clGetDeviceInfo
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x22, _CL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CL_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp, #56]
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_3:
	ldr	w0, [x21, #4]
Lloh10:
	adrp	x8, _CL_DEVICE_IMAGE2D_MAX_HEIGHT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CL_DEVICE_IMAGE2D_MAX_HEIGHT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x3, sp, #48
	mov	w2, #8
	mov	x4, #0
	bl	_clGetDeviceInfo
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [sp, #48]
	str	x8, [x19, #8]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	x8, [x19, #8]
LBB0_6:
Lloh18:
	adrp	x26, _AV_LOG_DEBUG@GOTPAGE
Lloh19:
	ldr	x26, [x26, _AV_LOG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x26]
	ldr	x9, [x19]
	stp	x9, x8, [sp]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	w0, [x21]
Lloh22:
	adrp	x24, _CL_MEM_READ_WRITE@GOTPAGE
Lloh23:
	ldr	x24, [x24, _CL_MEM_READ_WRITE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh24:
	adrp	x25, _CL_MEM_OBJECT_IMAGE2D@GOTPAGE
Lloh25:
	ldr	x25, [x25, _CL_MEM_OBJECT_IMAGE2D@GOTPAGEOFF]
	ldr	w2, [x25]
	add	x5, sp, #72
	mov	x3, #0
	mov	x4, #0
	bl	_clGetSupportedImageFormats
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.7:
	ldr	x0, [sp, #72]
	cbz	x0, LBB0_29
; %bb.8:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #16
	bl	_av_malloc_array
	str	x0, [sp, #64]
	cbz	x0, LBB0_36
; %bb.9:
	mov	x23, x0
	ldr	w0, [x21]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	x3, [sp, #72]
	mov	x4, x23
	mov	x5, #0
	bl	_clGetSupportedImageFormats
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.10:
Lloh26:
	adrp	x8, _AV_PIX_FMT_NB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_PIX_FMT_NB@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbz	w8, LBB0_34
; %bb.11:
	mov	w28, #0
	mov	w21, #0
	add	x22, x19, #16
	add	x27, x23, #8
Lloh29:
	adrp	x23, _ENOENT@GOTPAGE
Lloh30:
	ldr	x23, [x23, _ENOENT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w21, w21, #1
Lloh31:
	adrp	x8, _AV_PIX_FMT_NB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_PIX_FMT_NB@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w21, w8
	b.hs	LBB0_34
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	add	x4, sp, #32
	add	x5, sp, #28
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_opencl_get_plane_format
	tbnz	w0, #31, LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w24, #0
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	x8, [sp, #72]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x9, #0
	ldp	x10, x11, [sp, #32]
	mov	x12, x27
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=3
	add	x9, x9, #1
	add	x12, x12, #16
	cmp	x8, x9
	b.eq	LBB0_20
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldur	x13, [x12, #-8]
	cmp	x13, x10
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	x13, [x12]
	cmp	x13, x11
	b.ne	LBB0_17
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x9, x8
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=2
	cmp	x8, w9, uxtw
	b.ne	LBB0_23
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x9, #0
	cmp	x8, w9, uxtw
	b.eq	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=2
	add	w24, w24, #1
	add	x4, sp, #32
	add	x5, sp, #28
	mov	x0, x21
	mov	x1, x24
	mov	w2, #0
	mov	w3, #0
	bl	_opencl_get_plane_format
	tbz	w0, #31, LBB0_15
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x25, x0
	ldr	w0, [x23]
	bl	_AVERROR
	cmp	w25, w0
	b.ne	LBB0_12
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w24, [x26]
	mov	x0, x21
	bl	_av_get_pix_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x24
Lloh37:
	adrp	x2, l_.str.5@PAGE
Lloh38:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_av_log
	add	w1, w28, #2
	mov	x0, x22
	mov	w2, #4
	bl	_av_reallocp_array
	tbnz	w0, #31, LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22]
	str	w21, [x8, w28, sxtw #2]
	sxtw	x9, w28
Lloh39:
	adrp	x10, _AV_PIX_FMT_NONE@GOTPAGE
Lloh40:
	ldr	x10, [x10, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	add	x28, x9, #1
	str	w10, [x8, x28, lsl #2]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	b	LBB0_12
LBB0_28:
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh45:
	adrp	x2, l_.str.3@PAGE
Lloh46:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_30
LBB0_29:
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.4@PAGE
Lloh51:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_30:
	mov	x0, x20
	bl	_av_log
Lloh52:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_31:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_32:
	mov	x24, x0
	add	x0, sp, #64
	bl	_av_freep
LBB0_33:
	mov	x0, x24
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_34:
	add	x0, sp, #64
	bl	_av_freep
	mov	w0, #2
	mov	w1, #8
	bl	_av_malloc_array
	str	x0, [x19, #24]
	cbz	x0, LBB0_36
; %bb.35:
	mov	w24, #0
Lloh54:
	adrp	x8, _AV_PIX_FMT_OPENCL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AV_PIX_FMT_OPENCL@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	str	x8, [x0]
Lloh57:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	str	x8, [x9, #8]
	b	LBB0_33
LBB0_36:
Lloh60:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_31
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_DEVICE_IMAGE2D_MAX_WIDTH,4,2 ; @CL_DEVICE_IMAGE2D_MAX_WIDTH
	.comm	_CL_SUCCESS,4,2                 ; @CL_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query maximum supported image width: %d.\n"

	.comm	_CL_DEVICE_IMAGE2D_MAX_HEIGHT,4,2 ; @CL_DEVICE_IMAGE2D_MAX_HEIGHT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to query maximum supported image height: %d.\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Maximum supported image size %dx%d.\n"

	.comm	_CL_MEM_READ_WRITE,4,2          ; @CL_MEM_READ_WRITE
	.comm	_CL_MEM_OBJECT_IMAGE2D,4,2      ; @CL_MEM_OBJECT_IMAGE2D
l_.str.3:                               ; @.str.3
	.asciz	"Failed to query supported image formats: %d.\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.4:                               ; @.str.4
	.asciz	"No image support in OpenCL driver (zero supported image formats).\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_NB,4,2              ; @AV_PIX_FMT_NB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.5:                               ; @.str.5
	.asciz	"Format %s supported.\n"

	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_OPENCL,8,3          ; @AV_PIX_FMT_OPENCL
	.no_dead_strip	_opencl_frames_get_constraints
.subsections_via_symbols
