	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_get_video_line         ## -- Begin function cx231xx_get_video_line
	.p2align	4, 0x90
_cx231xx_get_video_line:                ## @cx231xx_get_video_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %edx
	je	LBB0_8
## %bb.1:
	movl	$-1, %r10d
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.2:
	movl	$1, %r10d
	cmpl	$4, %r8d
	jge	LBB0_4
	jmp	LBB0_7
LBB0_8:
	movl	$2, %r10d
	cmpl	$4, %r8d
	jl	LBB0_7
LBB0_4:
	cmpl	$255, (%rcx)
	jne	LBB0_7
## %bb.5:
	cmpl	$0, 4(%rcx)
	jne	LBB0_7
## %bb.6:
	cmpl	$0, 8(%rcx)
	jne	LBB0_7
## %bb.9:
	movl	12(%rcx), %r9d
	movq	_EAV_ACTIVE_VIDEO_FIELD1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	je	LBB0_13
## %bb.10:
	movq	_EAV_ACTIVE_VIDEO_FIELD2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	je	LBB0_13
## %bb.11:
	movq	_EAV_VBLANK_FIELD1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	je	LBB0_13
## %bb.12:
	movq	_EAV_VBLANK_FIELD2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	je	LBB0_13
LBB0_7:
	movl	%edx, (%rsi)
	movq	%rcx, %rdx
	movl	%r8d, %ecx
	movl	%r10d, %r8d
	popq	%rbp
	jmp	_cx231xx_copy_video_line        ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAV_ACTIVE_VIDEO_FIELD1,4,2    ## @EAV_ACTIVE_VIDEO_FIELD1
	.comm	_EAV_ACTIVE_VIDEO_FIELD2,4,2    ## @EAV_ACTIVE_VIDEO_FIELD2
	.comm	_EAV_VBLANK_FIELD1,4,2          ## @EAV_VBLANK_FIELD1
	.comm	_EAV_VBLANK_FIELD2,4,2          ## @EAV_VBLANK_FIELD2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_get_video_line         ; -- Begin function cx231xx_get_video_line
	.p2align	2
_cx231xx_get_video_line:                ; @cx231xx_get_video_line
	.cfi_startproc
; %bb.0:
	cmp	w2, #128
	b.eq	LBB0_8
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_14
; %bb.2:
	cmp	w4, #4
	b.lt	LBB0_7
; %bb.3:
	ldr	w8, [x3]
	cmp	w8, #255
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x3, #4]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x3, #8]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x3, #12]
Lloh0:
	adrp	x9, _EAV_ACTIVE_VIDEO_FIELD1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EAV_ACTIVE_VIDEO_FIELD1@GOTPAGEOFF]
Lloh2:
	adrp	x10, _EAV_ACTIVE_VIDEO_FIELD2@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EAV_ACTIVE_VIDEO_FIELD2@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _EAV_VBLANK_FIELD1@GOTPAGE
Lloh7:
	ldr	x11, [x11, _EAV_VBLANK_FIELD1@GOTPAGEOFF]
Lloh8:
	adrp	x12, _EAV_VBLANK_FIELD2@GOTPAGE
Lloh9:
	ldr	x12, [x12, _EAV_VBLANK_FIELD2@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	ldr	w12, [x12]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	b.eq	LBB0_13
LBB0_7:
	mov	w8, #1
	b	LBB0_16
LBB0_8:
	cmp	w4, #4
	b.lt	LBB0_15
; %bb.9:
	ldr	w8, [x3]
	cmp	w8, #255
	b.ne	LBB0_15
; %bb.10:
	ldr	w8, [x3, #4]
	cbnz	w8, LBB0_15
; %bb.11:
	ldr	w8, [x3, #8]
	cbnz	w8, LBB0_15
; %bb.12:
	ldr	w8, [x3, #12]
Lloh12:
	adrp	x9, _EAV_ACTIVE_VIDEO_FIELD1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EAV_ACTIVE_VIDEO_FIELD1@GOTPAGEOFF]
Lloh14:
	adrp	x10, _EAV_ACTIVE_VIDEO_FIELD2@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EAV_ACTIVE_VIDEO_FIELD2@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _EAV_VBLANK_FIELD1@GOTPAGE
Lloh19:
	ldr	x11, [x11, _EAV_VBLANK_FIELD1@GOTPAGEOFF]
Lloh20:
	adrp	x12, _EAV_VBLANK_FIELD2@GOTPAGE
Lloh21:
	ldr	x12, [x12, _EAV_VBLANK_FIELD2@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
Lloh23:
	ldr	w12, [x12]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	b.ne	LBB0_15
LBB0_13:
	mov	w0, #0
	ret
LBB0_14:
	mov	w8, #-1
	b	LBB0_16
LBB0_15:
	mov	w8, #2
LBB0_16:
	str	w2, [x1]
	mov	x2, x3
	mov	x3, x4
	mov	x4, x8
	b	_cx231xx_copy_video_line
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EAV_ACTIVE_VIDEO_FIELD1,4,2    ; @EAV_ACTIVE_VIDEO_FIELD1
	.comm	_EAV_ACTIVE_VIDEO_FIELD2,4,2    ; @EAV_ACTIVE_VIDEO_FIELD2
	.comm	_EAV_VBLANK_FIELD1,4,2          ; @EAV_VBLANK_FIELD1
	.comm	_EAV_VBLANK_FIELD2,4,2          ; @EAV_VBLANK_FIELD2
.subsections_via_symbols
