	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function neighbor_opencl_init
_neighbor_opencl_init:                  ## @neighbor_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	8(%rdi), %r15
	movq	_ff_opencl_source_neighbor@GOTPCREL(%rip), %rsi
	movl	$1, %edx
	callq	_ff_opencl_filter_load_program
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	32(%r15), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	xorl	%r14d, %r14d
	leaq	-36(%rbp), %rcx
	xorl	%edx, %edx
	callq	_clCreateCommandQueue
	movq	%rax, 16(%r15)
	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
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movl	%eax, %r14d
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_clReleaseCommandQueue
LBB0_7:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_clReleaseKernel
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movl	24(%r15), %edi
	leaq	-36(%rbp), %rdx
	callq	_clCreateKernel
	movq	%rax, 8(%r15)
	movl	(%r12), %edi
	callq	_AVERROR
	movl	-36(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	callq	_CL_FAIL_ON_ERROR
	movl	$1, (%r15)
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_opencl_source_neighbor,4,2  ## @ff_opencl_source_neighbor
	.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	"erosion_opencl"

L_.str.2:                               ## @.str.2
	.asciz	"erosion_global"

L_.str.3:                               ## @.str.3
	.asciz	"dilation_opencl"

L_.str.4:                               ## @.str.4
	.asciz	"dilation_global"

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

	.no_dead_strip	_neighbor_opencl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function neighbor_opencl_init
_neighbor_opencl_init:                  ; @neighbor_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
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x1, _ff_opencl_source_neighbor@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ff_opencl_source_neighbor@GOTPAGEOFF]
	mov	w2, #1
	bl	_ff_opencl_filter_load_program
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x21, #32]
	ldp	w1, w0, [x8]
	add	x3, sp, #12
	mov	w2, #0
	bl	_clCreateCommandQueue
	str	x0, [x21, #16]
Lloh2:
	adrp	x20, _EIO@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EIO@GOTPAGEOFF]
	ldr	w0, [x20]
	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	x8, [x19]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_3:
	mov	x20, x0
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_clReleaseCommandQueue
LBB0_5:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.6:
	bl	_clReleaseKernel
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	ldr	w0, [x21, #24]
	add	x2, sp, #12
	bl	_clCreateKernel
	str	x0, [x21, #8]
	ldr	w0, [x20]
	bl	_AVERROR
	ldr	w2, [sp, #12]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_CL_FAIL_ON_ERROR
	mov	w20, #0
	mov	w8, #1
	str	w8, [x21]
LBB0_9:
	mov	x0, x20
	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	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_opencl_source_neighbor,4,2  ; @ff_opencl_source_neighbor
	.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	"erosion_opencl"

l_.str.2:                               ; @.str.2
	.asciz	"erosion_global"

l_.str.3:                               ; @.str.3
	.asciz	"dilation_opencl"

l_.str.4:                               ; @.str.4
	.asciz	"dilation_global"

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

	.no_dead_strip	_neighbor_opencl_init
.subsections_via_symbols
