	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transpose_opencl_init
_transpose_opencl_init:                 ## @transpose_opencl_init
	.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
	movq	(%rdi), %rbx
	movq	_ff_opencl_source_transpose@GOTPCREL(%rip), %rsi
	movl	$1, %edx
	callq	_ff_opencl_filter_load_program
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	32(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	xorl	%r15d, %r15d
	leaq	-36(%rbp), %r14
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_clCreateCommandQueue
	movq	%rax, 16(%rbx)
	movq	_EIO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_AVERROR
	movl	-36(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CL_FAIL_ON_ERROR
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_clCreateKernel
	movq	%rax, 8(%rbx)
	movl	(%r12), %edi
	callq	_AVERROR
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_CL_FAIL_ON_ERROR
	movl	$1, (%rbx)
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r15d
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_clReleaseCommandQueue
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_clReleaseKernel
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_opencl_source_transpose,4,2 ## @ff_opencl_source_transpose
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create OpenCL command queue %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"transpose"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create kernel %d.\n"

	.no_dead_strip	_transpose_opencl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transpose_opencl_init
_transpose_opencl_init:                 ; @transpose_opencl_init
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x1, _ff_opencl_source_transpose@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ff_opencl_source_transpose@GOTPAGEOFF]
	mov	w21, #1
	mov	w2, #1
	bl	_ff_opencl_filter_load_program
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x20, #32]
	ldp	w1, w0, [x8]
	add	x3, sp, #12
	mov	w2, #0
	bl	_clCreateCommandQueue
	str	x0, [x20, #16]
Lloh2:
	adrp	x19, _EIO@GOTPAGE
Lloh3:
	ldr	x19, [x19, _EIO@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_AVERROR
	ldr	w2, [sp, #12]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CL_FAIL_ON_ERROR
	ldr	w0, [x20, #24]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_clCreateKernel
	str	x0, [x20, #8]
	ldr	w0, [x19]
	bl	_AVERROR
	ldr	w2, [sp, #12]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_CL_FAIL_ON_ERROR
	mov	w19, #0
	str	w21, [x20]
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_clReleaseCommandQueue
LBB0_4:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_clReleaseKernel
LBB0_6:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_opencl_source_transpose,4,2 ; @ff_opencl_source_transpose
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create OpenCL command queue %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"transpose"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create kernel %d.\n"

	.no_dead_strip	_transpose_opencl_init
.subsections_via_symbols
