	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_try_fmt
_ioctl_try_fmt:                         ## @ioctl_try_fmt
	.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	(%rdi), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_4:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	$0, 40(%rbx)
	movl	(%rsi), %eax
	movl	%eax, 36(%rbx)
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movl	16(%rbx), %edi
	movl	20(%rbx), %esi
	callq	_cpia2_match_video_size
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_13
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movabsq	$2061584302720, %rax            ## imm = 0x1E000000280
	jmp	LBB0_14
LBB0_8:
	movabsq	$1030792151360, %rax            ## imm = 0xF000000140
	jmp	LBB0_14
LBB0_13:
	movabsq	$618475290800, %rax             ## imm = 0x90000000B0
	jmp	LBB0_14
LBB0_7:
	movabsq	$1236950581600, %rax            ## imm = 0x12000000160
	jmp	LBB0_14
LBB0_9:
	movabsq	$927712936224, %rax             ## imm = 0xD800000120
	jmp	LBB0_14
LBB0_11:
	movabsq	$721554505952, %rax             ## imm = 0xA8000000E0
	jmp	LBB0_14
LBB0_12:
	movabsq	$618475290816, %rax             ## imm = 0x90000000C0
	jmp	LBB0_14
LBB0_10:
	movabsq	$824633721088, %rax             ## imm = 0xC000000100
LBB0_14:
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-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
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ## @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
	.no_dead_strip	_ioctl_try_fmt
.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 ioctl_try_fmt
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
_ioctl_try_fmt:                         ; @ioctl_try_fmt
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	str	xzr, [x19, #40]
	ldr	w8, [x1]
Lloh12:
	adrp	x9, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	str	xzr, [x19, #24]
	ldp	w0, w1, [x19, #16]
	bl	_cpia2_match_video_size
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.3:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w0, #0
Lloh17:
	adrp	x8, lCPI0_6@PAGE
Lloh18:
	ldr	d0, [x8, lCPI0_6@PAGEOFF]
	b	LBB0_13
LBB0_5:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	mov	w0, #0
Lloh22:
	adrp	x8, lCPI0_4@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_4@PAGEOFF]
	b	LBB0_13
LBB0_7:
	mov	w0, #0
Lloh24:
	adrp	x8, lCPI0_7@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_7@PAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	w0, #0
Lloh26:
	adrp	x8, lCPI0_5@PAGE
Lloh27:
	ldr	d0, [x8, lCPI0_5@PAGEOFF]
	b	LBB0_13
LBB0_9:
	mov	w0, #0
Lloh28:
	adrp	x8, lCPI0_3@PAGE
Lloh29:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	b	LBB0_13
LBB0_10:
	mov	w0, #0
Lloh30:
	adrp	x8, lCPI0_1@PAGE
Lloh31:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh32:
	adrp	x8, lCPI0_0@PAGE
Lloh33:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
Lloh34:
	adrp	x8, lCPI0_2@PAGE
Lloh35:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
LBB0_13:
	str	d0, [x19, #16]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpLdr	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ; @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
	.no_dead_strip	_ioctl_try_fmt
.subsections_via_symbols
