	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tonemap_opencl_config_output
_tonemap_opencl_config_output:          ## @tonemap_opencl_config_output
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_AV_PIX_FMT_P010@GOTPCREL(%rip), %rsi
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rsi), %rax
	je	LBB0_4
## %bb.3:
	cmpq	%rdx, %rax
	je	LBB0_4
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	cmpq	%rcx, %rax
	cmovneq	%rax, %rdx
	movq	%rdx, 8(%rbx)
	movq	%r14, %rdi
	callq	_ff_opencl_filter_config_output
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format not set, use default format NV12\n"

	.comm	_AV_PIX_FMT_P010,8,3            ## @AV_PIX_FMT_P010
	.comm	_AV_PIX_FMT_NV12,8,3            ## @AV_PIX_FMT_NV12
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"unsupported output format,only p010/nv12 supported now\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tonemap_opencl_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tonemap_opencl_config_output
_tonemap_opencl_config_output:          ; @tonemap_opencl_config_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, [x0]
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x8, [x20]
	ldr	x9, [x21]
Lloh7:
	adrp	x10, _AV_PIX_FMT_NV12@GOTPAGE
Lloh8:
	ldr	x10, [x10, _AV_PIX_FMT_NV12@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x10, _AV_PIX_FMT_P010@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AV_PIX_FMT_P010@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x10]
Lloh13:
	adrp	x10, _AV_PIX_FMT_NV12@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AV_PIX_FMT_NV12@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
LBB0_3:
	cmp	x8, x9
	csel	x8, x10, x8, eq
	str	x8, [x20, #8]
	mov	x0, x19
	bl	_ff_opencl_filter_config_output
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format not set, use default format NV12\n"

	.comm	_AV_PIX_FMT_P010,8,3            ; @AV_PIX_FMT_P010
	.comm	_AV_PIX_FMT_NV12,8,3            ; @AV_PIX_FMT_NV12
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"unsupported output format,only p010/nv12 supported now\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tonemap_opencl_config_output
.subsections_via_symbols
