	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cv_pixel_format
_get_cv_pixel_format:                   ## @get_cv_pixel_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	_AVCOL_RANGE_MPEG@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	setne	%r9b
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rdi
	cmpl	%edx, (%rdi)
	setne	%al
	andb	%r9b, %al
	movzbl	%al, %eax
	movl	%eax, (%r8)
LBB0_2:
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_kCVPixelFormatType_420YpCbCr8BiPlanarFullRange@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_11
## %bb.8:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_9
## %bb.10:
	movq	_kCVPixelFormatType_420YpCbCr8PlanarFullRange@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	_AV_PIX_FMT_P010LE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_15
## %bb.12:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rdi
	movq	_kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange@GOTPCREL(%rip), %rax
	movq	%rax, %rsi
	cmpl	%edx, (%rdi)
	jne	LBB0_14
## %bb.13:
	movq	_kCVPixelFormatType_420YpCbCr10BiPlanarFullRange@GOTPCREL(%rip), %rsi
LBB0_14:
	movl	(%rsi), %edx
	movl	%edx, (%rcx)
	jmp	LBB0_6
LBB0_9:
	movq	_kCVPixelFormatType_420YpCbCr8Planar@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCOL_RANGE_MPEG,4,2           ## @AVCOL_RANGE_MPEG
	.comm	_AVCOL_RANGE_JPEG,4,2           ## @AVCOL_RANGE_JPEG
	.comm	_AV_PIX_FMT_NV12,4,2            ## @AV_PIX_FMT_NV12
	.comm	_kCVPixelFormatType_420YpCbCr8BiPlanarFullRange,4,2 ## @kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
	.comm	_kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange,4,2 ## @kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.comm	_kCVPixelFormatType_420YpCbCr8PlanarFullRange,4,2 ## @kCVPixelFormatType_420YpCbCr8PlanarFullRange
	.comm	_kCVPixelFormatType_420YpCbCr8Planar,4,2 ## @kCVPixelFormatType_420YpCbCr8Planar
	.comm	_AV_PIX_FMT_P010LE,4,2          ## @AV_PIX_FMT_P010LE
	.comm	_kCVPixelFormatType_420YpCbCr10BiPlanarFullRange,4,2 ## @kCVPixelFormatType_420YpCbCr10BiPlanarFullRange
	.comm	_kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange,4,2 ## @kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_cv_pixel_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cv_pixel_format
_get_cv_pixel_format:                   ; @get_cv_pixel_format
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
	cbz	x4, LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w2
	ldr	w9, [x8]
	ccmp	w9, w2, #4, ne
	cset	w9, ne
	str	w9, [x4]
LBB0_2:
Lloh5:
	adrp	x9, _AV_PIX_FMT_NV12@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_PIX_FMT_NV12@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _kCVPixelFormatType_420YpCbCr8BiPlanarFullRange@GOTPAGE
Lloh9:
	ldr	x9, [x9, _kCVPixelFormatType_420YpCbCr8BiPlanarFullRange@GOTPAGEOFF]
Lloh10:
	adrp	x10, _kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange@GOTPAGE
Lloh11:
	ldr	x10, [x10, _kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x9, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _kCVPixelFormatType_420YpCbCr8PlanarFullRange@GOTPAGE
Lloh16:
	ldr	x9, [x9, _kCVPixelFormatType_420YpCbCr8PlanarFullRange@GOTPAGEOFF]
Lloh17:
	adrp	x10, _kCVPixelFormatType_420YpCbCr8Planar@GOTPAGE
Lloh18:
	ldr	x10, [x10, _kCVPixelFormatType_420YpCbCr8Planar@GOTPAGEOFF]
LBB0_6:
	cmp	w8, w2
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
LBB0_7:
	str	w8, [x3]
	mov	w0, #0
	ret
LBB0_8:
Lloh19:
	adrp	x9, _AV_PIX_FMT_P010LE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AV_PIX_FMT_P010LE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _kCVPixelFormatType_420YpCbCr10BiPlanarFullRange@GOTPAGE
Lloh23:
	ldr	x9, [x9, _kCVPixelFormatType_420YpCbCr10BiPlanarFullRange@GOTPAGEOFF]
Lloh24:
	adrp	x10, _kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange@GOTPAGE
Lloh25:
	ldr	x10, [x10, _kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange@GOTPAGEOFF]
	cmp	w8, w2
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x3]
	ldr	w8, [x10]
	b	LBB0_7
LBB0_10:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCOL_RANGE_MPEG,4,2           ; @AVCOL_RANGE_MPEG
	.comm	_AVCOL_RANGE_JPEG,4,2           ; @AVCOL_RANGE_JPEG
	.comm	_AV_PIX_FMT_NV12,4,2            ; @AV_PIX_FMT_NV12
	.comm	_kCVPixelFormatType_420YpCbCr8BiPlanarFullRange,4,2 ; @kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
	.comm	_kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange,4,2 ; @kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.comm	_kCVPixelFormatType_420YpCbCr8PlanarFullRange,4,2 ; @kCVPixelFormatType_420YpCbCr8PlanarFullRange
	.comm	_kCVPixelFormatType_420YpCbCr8Planar,4,2 ; @kCVPixelFormatType_420YpCbCr8Planar
	.comm	_AV_PIX_FMT_P010LE,4,2          ; @AV_PIX_FMT_P010LE
	.comm	_kCVPixelFormatType_420YpCbCr10BiPlanarFullRange,4,2 ; @kCVPixelFormatType_420YpCbCr10BiPlanarFullRange
	.comm	_kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange,4,2 ; @kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_cv_pixel_format
.subsections_via_symbols
