	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_pixel_format
_map_pixel_format:                      ## @map_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rsi), %r8d
	leal	-8(%r8), %eax
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movslq	4(%rbx), %rax
	cmpq	$4, %rax
	jae	LBB0_12
## %bb.4:
	leaq	l_switch.table.map_pixel_format(%rip), %rcx
	jmp	LBB0_11
LBB0_5:
	movslq	4(%rbx), %rax
	cmpq	$4, %rax
	jae	LBB0_12
## %bb.6:
	leaq	l_switch.table.map_pixel_format.1(%rip), %rcx
	jmp	LBB0_11
LBB0_7:
	movslq	4(%rbx), %rax
	cmpq	$4, %rax
	jae	LBB0_12
## %bb.8:
	leaq	l_switch.table.map_pixel_format.2(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movslq	4(%rbx), %rax
	cmpq	$4, %rax
	jae	LBB0_12
## %bb.10:
	leaq	l_switch.table.map_pixel_format.3(%rip), %rcx
LBB0_11:
	leaq	(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_12:
	movl	32(%rbx), %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	16(%rbx), %rcx
	movl	$0, (%rcx)
	movq	24(%rbx), %rdx
	movl	$0, (%rdx)
	movl	4(%rax), %esi
	movl	%esi, 4(%rdx)
	movl	%esi, 8(%rdx)
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movl	%eax, 8(%rcx)
	xorl	%eax, %eax
	cmpl	$9, (%rbx)
	setge	%al
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_AV_PIX_FMT_GRAY8,4,2           ## @AV_PIX_FMT_GRAY8
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_YUV422P,4,2         ## @AV_PIX_FMT_YUV422P
	.comm	_AV_PIX_FMT_YUV444P,4,2         ## @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_GRAY9,4,2           ## @AV_PIX_FMT_GRAY9
	.comm	_AV_PIX_FMT_YUV420P9,4,2        ## @AV_PIX_FMT_YUV420P9
	.comm	_AV_PIX_FMT_YUV422P9,4,2        ## @AV_PIX_FMT_YUV422P9
	.comm	_AV_PIX_FMT_YUV444P9,4,2        ## @AV_PIX_FMT_YUV444P9
	.comm	_AV_PIX_FMT_GRAY10,4,2          ## @AV_PIX_FMT_GRAY10
	.comm	_AV_PIX_FMT_YUV420P10,4,2       ## @AV_PIX_FMT_YUV420P10
	.comm	_AV_PIX_FMT_YUV422P10,4,2       ## @AV_PIX_FMT_YUV422P10
	.comm	_AV_PIX_FMT_YUV444P10,4,2       ## @AV_PIX_FMT_YUV444P10
	.comm	_AV_PIX_FMT_GRAY12,4,2          ## @AV_PIX_FMT_GRAY12
	.comm	_AV_PIX_FMT_YUV420P12,4,2       ## @AV_PIX_FMT_YUV420P12
	.comm	_AV_PIX_FMT_YUV422P12,4,2       ## @AV_PIX_FMT_YUV422P12
	.comm	_AV_PIX_FMT_YUV444P12,4,2       ## @AV_PIX_FMT_YUV444P12
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The following bit-depths are currently specified: 8, 9, 10 and 12 bits, chroma_format_idc is %d, depth is %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_map_pixel_format
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.map_pixel_format
l_switch.table.map_pixel_format:
	.quad	_AV_PIX_FMT_GRAY8
	.quad	_AV_PIX_FMT_YUV420P
	.quad	_AV_PIX_FMT_YUV422P
	.quad	_AV_PIX_FMT_YUV444P

	.p2align	3                               ## @switch.table.map_pixel_format.1
l_switch.table.map_pixel_format.1:
	.quad	_AV_PIX_FMT_GRAY9
	.quad	_AV_PIX_FMT_YUV420P9
	.quad	_AV_PIX_FMT_YUV422P9
	.quad	_AV_PIX_FMT_YUV444P9

	.p2align	3                               ## @switch.table.map_pixel_format.2
l_switch.table.map_pixel_format.2:
	.quad	_AV_PIX_FMT_GRAY10
	.quad	_AV_PIX_FMT_YUV420P10
	.quad	_AV_PIX_FMT_YUV422P10
	.quad	_AV_PIX_FMT_YUV444P10

	.p2align	3                               ## @switch.table.map_pixel_format.3
l_switch.table.map_pixel_format.3:
	.quad	_AV_PIX_FMT_GRAY12
	.quad	_AV_PIX_FMT_YUV420P12
	.quad	_AV_PIX_FMT_YUV422P12
	.quad	_AV_PIX_FMT_YUV444P12

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_pixel_format
_map_pixel_format:                      ; @map_pixel_format
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w4, [x1]
	sub	w8, w4, #8
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.1:
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:
	ldr	w8, [x19, #4]
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.map_pixel_format@PAGE
Lloh3:
	add	x9, x9, l_switch.table.map_pixel_format@PAGEOFF
	b	LBB0_10
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.5:
Lloh4:
	adrp	x9, l_switch.table.map_pixel_format.1@PAGE
Lloh5:
	add	x9, x9, l_switch.table.map_pixel_format.1@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w8, [x19, #4]
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.7:
Lloh6:
	adrp	x9, l_switch.table.map_pixel_format.2@PAGE
Lloh7:
	add	x9, x9, l_switch.table.map_pixel_format.2@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w8, [x19, #4]
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.9:
Lloh8:
	adrp	x9, l_switch.table.map_pixel_format.3@PAGE
Lloh9:
	add	x9, x9, l_switch.table.map_pixel_format.3@PAGEOFF
LBB0_10:
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_11:
	ldr	w0, [x19, #32]
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_13
; %bb.12:
	mov	x8, x0
	mov	w0, #0
	ldp	x9, x10, [x19, #16]
	str	wzr, [x9]
	str	wzr, [x10]
	ldr	w11, [x8, #4]
	stp	w11, w11, [x10, #4]
	ldr	w8, [x8]
	stp	w8, w8, [x9, #4]
	ldr	w8, [x19]
	cmp	w8, #8
	cset	w8, gt
	str	w8, [x19, #8]
	b	LBB0_15
LBB0_13:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_14:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w3, [x19, #4]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_AV_PIX_FMT_GRAY8,4,2           ; @AV_PIX_FMT_GRAY8
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_YUV422P,4,2         ; @AV_PIX_FMT_YUV422P
	.comm	_AV_PIX_FMT_YUV444P,4,2         ; @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_GRAY9,4,2           ; @AV_PIX_FMT_GRAY9
	.comm	_AV_PIX_FMT_YUV420P9,4,2        ; @AV_PIX_FMT_YUV420P9
	.comm	_AV_PIX_FMT_YUV422P9,4,2        ; @AV_PIX_FMT_YUV422P9
	.comm	_AV_PIX_FMT_YUV444P9,4,2        ; @AV_PIX_FMT_YUV444P9
	.comm	_AV_PIX_FMT_GRAY10,4,2          ; @AV_PIX_FMT_GRAY10
	.comm	_AV_PIX_FMT_YUV420P10,4,2       ; @AV_PIX_FMT_YUV420P10
	.comm	_AV_PIX_FMT_YUV422P10,4,2       ; @AV_PIX_FMT_YUV422P10
	.comm	_AV_PIX_FMT_YUV444P10,4,2       ; @AV_PIX_FMT_YUV444P10
	.comm	_AV_PIX_FMT_GRAY12,4,2          ; @AV_PIX_FMT_GRAY12
	.comm	_AV_PIX_FMT_YUV420P12,4,2       ; @AV_PIX_FMT_YUV420P12
	.comm	_AV_PIX_FMT_YUV422P12,4,2       ; @AV_PIX_FMT_YUV422P12
	.comm	_AV_PIX_FMT_YUV444P12,4,2       ; @AV_PIX_FMT_YUV444P12
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The following bit-depths are currently specified: 8, 9, 10 and 12 bits, chroma_format_idc is %d, depth is %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_map_pixel_format
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.map_pixel_format
l_switch.table.map_pixel_format:
	.quad	_AV_PIX_FMT_GRAY8
	.quad	_AV_PIX_FMT_YUV420P
	.quad	_AV_PIX_FMT_YUV422P
	.quad	_AV_PIX_FMT_YUV444P

	.p2align	3                               ; @switch.table.map_pixel_format.1
l_switch.table.map_pixel_format.1:
	.quad	_AV_PIX_FMT_GRAY9
	.quad	_AV_PIX_FMT_YUV420P9
	.quad	_AV_PIX_FMT_YUV422P9
	.quad	_AV_PIX_FMT_YUV444P9

	.p2align	3                               ; @switch.table.map_pixel_format.2
l_switch.table.map_pixel_format.2:
	.quad	_AV_PIX_FMT_GRAY10
	.quad	_AV_PIX_FMT_YUV420P10
	.quad	_AV_PIX_FMT_YUV422P10
	.quad	_AV_PIX_FMT_YUV444P10

	.p2align	3                               ; @switch.table.map_pixel_format.3
l_switch.table.map_pixel_format.3:
	.quad	_AV_PIX_FMT_GRAY12
	.quad	_AV_PIX_FMT_YUV420P12
	.quad	_AV_PIX_FMT_YUV422P12
	.quad	_AV_PIX_FMT_YUV444P12

.subsections_via_symbols
