	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw5864_fmt_vid_cap
_tw5864_fmt_vid_cap:                    ## @tw5864_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
	movl	$704, (%rbx)                    ## imm = 0x2C0
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.tw5864_fmt_vid_cap(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 4(%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_V4L2_PIX_FMT_H264@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_H264_VLC_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_PIX_FMT_H264,4,2          ## @V4L2_PIX_FMT_H264
	.comm	_H264_VLC_BUF_SIZE,4,2          ## @H264_VLC_BUF_SIZE
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_tw5864_fmt_vid_cap
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.tw5864_fmt_vid_cap
l_switch.table.tw5864_fmt_vid_cap:
	.long	576                             ## 0x240
	.long	576                             ## 0x240
	.long	480                             ## 0x1e0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw5864_fmt_vid_cap
_tw5864_fmt_vid_cap:                    ; @tw5864_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
	mov	w8, #704
	str	w8, [x19]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh0:
	adrp	x9, l_switch.table.tw5864_fmt_vid_cap@PAGE
Lloh1:
	add	x9, x9, l_switch.table.tw5864_fmt_vid_cap@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
Lloh2:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _V4L2_PIX_FMT_H264@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_PIX_FMT_H264@GOTPAGEOFF]
	str	w9, [x19, #20]
Lloh7:
	ldr	w9, [x10]
Lloh8:
	adrp	x10, _H264_VLC_BUF_SIZE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _H264_VLC_BUF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #12]
Lloh11:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #4]
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_PIX_FMT_H264,4,2          ; @V4L2_PIX_FMT_H264
	.comm	_H264_VLC_BUF_SIZE,4,2          ; @H264_VLC_BUF_SIZE
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_tw5864_fmt_vid_cap
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.tw5864_fmt_vid_cap
l_switch.table.tw5864_fmt_vid_cap:
	.long	576                             ; 0x240
	.long	576                             ; 0x240
	.long	480                             ; 0x1e0

.subsections_via_symbols
