	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia2_try_fmt_vid_cap
_cpia2_try_fmt_vid_cap:                 ## @cpia2_try_fmt_vid_cap
	.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	%rdx, %rbx
	callq	_video_drvdata
	movq	(%rbx), %rcx
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_3:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	$0, 24(%rbx)
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	callq	_cpia2_match_video_size
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_12
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movabsq	$2061584302720, %rax            ## imm = 0x1E000000280
	jmp	LBB0_13
LBB0_7:
	movabsq	$1030792151360, %rax            ## imm = 0xF000000140
	jmp	LBB0_13
LBB0_12:
	movabsq	$618475290800, %rax             ## imm = 0x90000000B0
	jmp	LBB0_13
LBB0_6:
	movabsq	$1236950581600, %rax            ## imm = 0x12000000160
	jmp	LBB0_13
LBB0_8:
	movabsq	$927712936224, %rax             ## imm = 0xD800000120
	jmp	LBB0_13
LBB0_10:
	movabsq	$721554505952, %rax             ## imm = 0xA8000000E0
	jmp	LBB0_13
LBB0_11:
	movabsq	$618475290816, %rax             ## imm = 0x90000000C0
	jmp	LBB0_13
LBB0_9:
	movabsq	$824633721088, %rax             ## imm = 0xC000000100
LBB0_13:
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ## @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
	.no_dead_strip	_cpia2_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cpia2_try_fmt_vid_cap
lCPI0_0:
	.long	192                             ; 0xc0
	.long	144                             ; 0x90
lCPI0_1:
	.long	224                             ; 0xe0
	.long	168                             ; 0xa8
lCPI0_2:
	.long	256                             ; 0x100
	.long	192                             ; 0xc0
lCPI0_3:
	.long	288                             ; 0x120
	.long	216                             ; 0xd8
lCPI0_4:
	.long	320                             ; 0x140
	.long	240                             ; 0xf0
lCPI0_5:
	.long	352                             ; 0x160
	.long	288                             ; 0x120
lCPI0_6:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
lCPI0_7:
	.long	176                             ; 0xb0
	.long	144                             ; 0x90
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cpia2_try_fmt_vid_cap:                 ; @cpia2_try_fmt_vid_cap
	.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, x2
	bl	_video_drvdata
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
Lloh9:
	adrp	x8, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #16]
	ldp	w0, w1, [x19, #8]
	bl	_cpia2_match_video_size
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_6
; %bb.2:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w0, #0
Lloh14:
	adrp	x8, lCPI0_6@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_6@PAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_5:
	mov	w0, #0
Lloh19:
	adrp	x8, lCPI0_4@PAGE
Lloh20:
	ldr	d0, [x8, lCPI0_4@PAGEOFF]
	b	LBB0_12
LBB0_6:
	mov	w0, #0
Lloh21:
	adrp	x8, lCPI0_7@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_7@PAGEOFF]
	b	LBB0_12
LBB0_7:
	mov	w0, #0
Lloh23:
	adrp	x8, lCPI0_5@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_5@PAGEOFF]
	b	LBB0_12
LBB0_8:
	mov	w0, #0
Lloh25:
	adrp	x8, lCPI0_3@PAGE
Lloh26:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	w0, #0
Lloh27:
	adrp	x8, lCPI0_1@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w0, #0
Lloh29:
	adrp	x8, lCPI0_0@PAGE
Lloh30:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
Lloh31:
	adrp	x8, lCPI0_2@PAGE
Lloh32:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
LBB0_12:
	str	d0, [x19, #8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpLdr	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ; @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
	.no_dead_strip	_cpia2_try_fmt_vid_cap
.subsections_via_symbols
