	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omapvid_handle_interlace_display
_omapvid_handle_interlace_display:      ## @omapvid_handle_interlace_display
	.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, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	movq	$0, 32(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	movq	_DISPC_IRQ_EVSYNC_ODD@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_3
## %bb.8:
	movl	(%rbx), %eax
	movl	%eax, %ecx
	xorl	$1, %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	leaq	24(%rbx), %rdi
	callq	_list_empty
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	16(%rbx), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_12
	jmp	LBB0_11
LBB0_3:
	movq	_DISPC_IRQ_EVSYNC_EVEN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%esi, (%rcx)
	je	LBB0_12
## %bb.4:
	xorl	$1, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	$0, (%rbx)
	jmp	LBB0_11
LBB0_6:
	movq	16(%rbx), %rdi
	cmpq	8(%rbx), %rdi
	je	LBB0_12
## %bb.7:
	movl	%edx, (%rdi)
	movslq	28(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movq	%rax, 8(%rdi)
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vb2_buffer_done
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_11:
	movl	(%rbx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPC_IRQ_EVSYNC_ODD,4,2       ## @DISPC_IRQ_EVSYNC_ODD
	.comm	_DISPC_IRQ_EVSYNC_EVEN,4,2      ## @DISPC_IRQ_EVSYNC_EVEN
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.no_dead_strip	_omapvid_handle_interlace_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omapvid_handle_interlace_display
_omapvid_handle_interlace_display:      ; @omapvid_handle_interlace_display
	.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, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	str	xzr, [x19, #32]
	b	LBB0_13
LBB0_2:
Lloh0:
	adrp	x8, _DISPC_IRQ_EVSYNC_ODD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPC_IRQ_EVSYNC_ODD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x19]
	eor	w9, w8, #0x1
	str	w9, [x19]
	cbnz	w8, LBB0_11
; %bb.4:
	add	x0, x19, #24
	bl	_list_empty
	cbnz	x0, LBB0_12
; %bb.5:
	ldp	x9, x8, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_12
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _DISPC_IRQ_EVSYNC_EVEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISPC_IRQ_EVSYNC_EVEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_12
; %bb.7:
	ldr	w8, [x19]
	eor	w8, w8, #0x1
	str	w8, [x19]
	cbz	w8, LBB0_9
; %bb.8:
	str	wzr, [x19]
	b	LBB0_11
LBB0_9:
	ldp	x8, x0, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.10:
	str	w2, [x0]
	ldrsw	x8, [x19, #28]
	add	w9, w8, #1
	str	w9, [x19, #28]
	str	x8, [x0, #8]
Lloh6:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_vb2_buffer_done
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
LBB0_11:
	ldr	w0, [x19]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPC_IRQ_EVSYNC_ODD,4,2       ; @DISPC_IRQ_EVSYNC_ODD
	.comm	_DISPC_IRQ_EVSYNC_EVEN,4,2      ; @DISPC_IRQ_EVSYNC_EVEN
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.no_dead_strip	_omapvid_handle_interlace_display
.subsections_via_symbols
