	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coda_update_profile_level_ctrls ## -- Begin function coda_update_profile_level_ctrls
	.p2align	4, 0x90
_coda_update_profile_level_ctrls:       ## @coda_update_profile_level_ctrls
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r13
	movq	56(%rdi), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.3:
	movq	_V4L2_CID_MPEG_VIDEO_H264_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_V4L2_CID_MPEG_VIDEO_H264_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movdqu	40(%r13), %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_coda_h264_profile
	movl	%eax, %r14d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_coda_h264_level
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	_V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movdqu	8(%r13), %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_coda_mpeg4_profile
	movl	%eax, %r14d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_coda_mpeg4_level
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movdqu	24(%r13), %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_coda_mpeg2_profile
	movl	%eax, %r14d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_coda_mpeg2_level
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rbx
LBB0_6:
	movl	%r15d, %edi
	callq	_v4l2_ctrl_get_menu
	movq	%rax, %r15
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_v4l2_ctrl_get_menu
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.8:
	movl	%r14d, %eax
	movq	(%r15,%rax,8), %r8
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %edi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_coda_dbg
	movdqa	-80(%rbp), %xmm0                ## 16-byte Reload
	pextrq	$1, %xmm0, %rdi
	movl	%r14d, %esi
	callq	_coda_update_menu_ctrl
	testl	%r12d, %r12d
	js	LBB0_12
LBB0_10:
	movl	%r12d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r8
	leaq	L_.str.6(%rip), %rdx
	movl	$1, %edi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_coda_dbg
	movdqa	-80(%rbp), %xmm0                ## 16-byte Reload
	movq	%xmm0, %rdi
	movl	%r12d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_coda_update_menu_ctrl          ## TAILCALL
LBB0_7:
	movq	(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_v4l2_warn
	testl	%r12d, %r12d
	jns	LBB0_10
LBB0_12:
	movq	(%r13), %rdi
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_warn                      ## TAILCALL
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"H264"

	.comm	_V4L2_CID_MPEG_VIDEO_H264_PROFILE,4,2 ## @V4L2_CID_MPEG_VIDEO_H264_PROFILE
	.comm	_V4L2_CID_MPEG_VIDEO_H264_LEVEL,4,2 ## @V4L2_CID_MPEG_VIDEO_H264_LEVEL
L_.str.1:                               ## @.str.1
	.asciz	"MPEG-2"

	.comm	_V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE,4,2 ## @V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE
	.comm	_V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL,4,2 ## @V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL
L_.str.2:                               ## @.str.2
	.asciz	"MPEG-4"

	.comm	_V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE,4,2 ## @V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE
	.comm	_V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL,4,2 ## @V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL
L_.str.3:                               ## @.str.3
	.asciz	"Invalid %s profile: %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"Parsed %s profile: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid %s level: %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"Parsed %s level: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coda_update_profile_level_ctrls ; -- Begin function coda_update_profile_level_ctrls
	.p2align	2
_coda_update_profile_level_ctrls:       ; @coda_update_profile_level_ctrls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #56]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_H264_PROFILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_H264_PROFILE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_H264_LEVEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_H264_LEVEL@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	ldp	x8, x23, [x19, #40]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x21
	bl	_coda_h264_profile
	mov	x28, x0
	mov	x0, x20
	bl	_coda_h264_level
	mov	x25, x0
Lloh6:
	adrp	x26, l_.str@PAGE
Lloh7:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
Lloh11:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL@GOTPAGEOFF]
Lloh13:
	ldr	w27, [x8]
	ldp	x8, x23, [x19, #8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x21
	bl	_coda_mpeg4_profile
	mov	x28, x0
	mov	x0, x20
	bl	_coda_mpeg4_level
	mov	x25, x0
Lloh14:
	adrp	x26, l_.str.2@PAGE
Lloh15:
	add	x26, x26, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE@GOTPAGEOFF]
Lloh18:
	ldr	w24, [x8]
Lloh19:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL@GOTPAGEOFF]
Lloh21:
	ldr	w27, [x8]
	ldp	x8, x23, [x19, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x21
	bl	_coda_mpeg2_profile
	mov	x28, x0
	mov	x0, x20
	bl	_coda_mpeg2_level
	mov	x25, x0
Lloh22:
	adrp	x26, l_.str.1@PAGE
Lloh23:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x24
	bl	_v4l2_ctrl_get_menu
	mov	x22, x0
	mov	x0, x27
	bl	_v4l2_ctrl_get_menu
	mov	x24, x0
	tbnz	w28, #31, LBB0_9
; %bb.7:
	ldr	x4, [x22, w28, uxtw #3]
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	x3, x26
	bl	_coda_dbg
	mov	x0, x23
	mov	x1, x28
	bl	_coda_update_menu_ctrl
	tbnz	w25, #31, LBB0_10
LBB0_8:
	ldr	x4, [x24, w25, uxtw #3]
Lloh26:
	adrp	x2, l_.str.6@PAGE
Lloh27:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	x3, x26
	bl	_coda_dbg
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_coda_update_menu_ctrl
LBB0_9:
	ldr	x0, [x19]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x26
	mov	x3, x21
	bl	_v4l2_warn
	tbz	w25, #31, LBB0_8
LBB0_10:
	ldr	x0, [x19]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x26
	mov	x3, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_v4l2_warn
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"H264"

	.comm	_V4L2_CID_MPEG_VIDEO_H264_PROFILE,4,2 ; @V4L2_CID_MPEG_VIDEO_H264_PROFILE
	.comm	_V4L2_CID_MPEG_VIDEO_H264_LEVEL,4,2 ; @V4L2_CID_MPEG_VIDEO_H264_LEVEL
l_.str.1:                               ; @.str.1
	.asciz	"MPEG-2"

	.comm	_V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE,4,2 ; @V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE
	.comm	_V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL,4,2 ; @V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL
l_.str.2:                               ; @.str.2
	.asciz	"MPEG-4"

	.comm	_V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE,4,2 ; @V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE
	.comm	_V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL,4,2 ; @V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL
l_.str.3:                               ; @.str.3
	.asciz	"Invalid %s profile: %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"Parsed %s profile: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid %s level: %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"Parsed %s level: %s\n"

.subsections_via_symbols
