	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cv_transfer_function
_get_cv_transfer_function:              ## @get_cv_transfer_function
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	$0, (%rdx)
	leal	-128(%rdi), %eax
	cmpl	$8, %eax
	ja	LBB0_5
## %bb.1:
	movq	%rdx, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_compat_keys@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	$0, (%rsi)
	jmp	LBB0_11
LBB0_4:
	movq	_kCVImageBufferTransferFunction_SMPTE_240M_1995@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	$0, (%rsi)
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_color_transfer_name
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_6:
	movabsq	$4613487458278336102, %rax      ## imm = 0x4006666666666666
	jmp	LBB0_8
LBB0_7:
	movabsq	$4612136378390124954, %rax      ## imm = 0x400199999999999A
LBB0_8:
	movq	%rax, -24(%rbp)
	movq	_kCVImageBufferTransferFunction_UseGamma@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsi)
	movq	_kCFNumberFloat32Type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-24(%rbp), %rdx
	xorl	%edi, %edi
	callq	_CFNumberCreate
	movq	%rax, (%r14)
	jmp	LBB0_12
LBB0_9:
	movq	_kCVImageBufferTransferFunction_ITU_R_709_2@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, (%rsi)
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_kCVImageBufferTransferFunction_ITU_R_709_2,8,3 ## @kCVImageBufferTransferFunction_ITU_R_709_2
	.comm	_kCVImageBufferTransferFunction_SMPTE_240M_1995,8,3 ## @kCVImageBufferTransferFunction_SMPTE_240M_1995
	.comm	_kCVImageBufferTransferFunction_UseGamma,8,3 ## @kCVImageBufferTransferFunction_UseGamma
	.comm	_kCFNumberFloat32Type,4,2       ## @kCFNumberFloat32Type
	.comm	_compat_keys,8,3                ## @compat_keys
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transfer function %s is not supported.\n"

	.comm	_kCVImageBufferTransferFunction_ITU_R_2100_HLG,8,3 ## @kCVImageBufferTransferFunction_ITU_R_2100_HLG
	.comm	_kCVImageBufferTransferFunction_Linear,8,3 ## @kCVImageBufferTransferFunction_Linear
	.comm	_kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ,8,3 ## @kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ
	.no_dead_strip	_get_cv_transfer_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cv_transfer_function
_get_cv_transfer_function:              ; @get_cv_transfer_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	w0, [x0]
	str	xzr, [x2]
	sub	w8, w0, #128
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #0
Lloh2:
	adrp	x8, _compat_keys@GOTPAGE
Lloh3:
	ldr	x8, [x8, _compat_keys@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	mov	w0, #0
	str	xzr, [x1]
	b	LBB0_11
LBB0_4:
	mov	w0, #0
Lloh4:
	adrp	x8, _kCVImageBufferTransferFunction_SMPTE_240M_1995@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kCVImageBufferTransferFunction_SMPTE_240M_1995@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	str	xzr, [x1]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	bl	_av_color_transfer_name
	mov	x3, x0
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_av_log
	mov	w0, #-1
	b	LBB0_11
LBB0_6:
	mov	x8, #7378697629483820646
	movk	x8, #16390, lsl #48
	b	LBB0_8
LBB0_7:
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16385, lsl #48
LBB0_8:
Lloh11:
	adrp	x9, _kCVImageBufferTransferFunction_UseGamma@GOTPAGE
Lloh12:
	ldr	x9, [x9, _kCVImageBufferTransferFunction_UseGamma@GOTPAGEOFF]
	str	x8, [sp, #8]
Lloh13:
	ldr	x8, [x9]
	str	x8, [x1]
Lloh14:
	adrp	x8, _kCFNumberFloat32Type@GOTPAGE
Lloh15:
	ldr	x8, [x8, _kCFNumberFloat32Type@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, #0
	bl	_CFNumberCreate
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_11
LBB0_9:
	mov	w0, #0
Lloh17:
	adrp	x8, _kCVImageBufferTransferFunction_ITU_R_709_2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _kCVImageBufferTransferFunction_ITU_R_709_2@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x1]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_kCVImageBufferTransferFunction_ITU_R_709_2,8,3 ; @kCVImageBufferTransferFunction_ITU_R_709_2
	.comm	_kCVImageBufferTransferFunction_SMPTE_240M_1995,8,3 ; @kCVImageBufferTransferFunction_SMPTE_240M_1995
	.comm	_kCVImageBufferTransferFunction_UseGamma,8,3 ; @kCVImageBufferTransferFunction_UseGamma
	.comm	_kCFNumberFloat32Type,4,2       ; @kCFNumberFloat32Type
	.comm	_compat_keys,8,3                ; @compat_keys
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transfer function %s is not supported.\n"

	.comm	_kCVImageBufferTransferFunction_ITU_R_2100_HLG,8,3 ; @kCVImageBufferTransferFunction_ITU_R_2100_HLG
	.comm	_kCVImageBufferTransferFunction_Linear,8,3 ; @kCVImageBufferTransferFunction_Linear
	.comm	_kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ,8,3 ; @kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ
	.no_dead_strip	_get_cv_transfer_function
.subsections_via_symbols
