	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_yuv_udma_frame
_ivtv_yuv_udma_frame:                   ## @ivtv_yuv_udma_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ivtv_yuv_prep_user_dma
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_2:
	movq	%r15, %rdi
	callq	_ivtv_udma_prepare
	leaq	4(%r15), %rdi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_prepare_to_wait
	leaq	8(%r15), %rbx
	movq	_IVTV_F_I_UDMA_PENDING@GOTPCREL(%rip), %r12
	movq	_IVTV_F_I_UDMA@GOTPCREL(%rip), %r13
	movq	_current@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_schedule
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	callq	_signal_pending
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_finish_wait
	movq	%r15, %rdi
	callq	_ivtv_udma_unmap
	leaq	L_.str(%rip), %rdi
	callq	_IVTV_DEBUG_INFO
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_finish_wait
	movq	%r15, %rdi
	callq	_ivtv_udma_unmap
	movq	%r15, %rdi
	callq	_ivtv_yuv_frame_complete
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_IVTV_F_I_UDMA_PENDING,4,2      ## @IVTV_F_I_UDMA_PENDING
	.comm	_IVTV_F_I_UDMA,4,2              ## @IVTV_F_I_UDMA
	.comm	_current,4,2                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"User stopped YUV UDMA\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_ivtv_yuv_udma_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_yuv_udma_frame
_ivtv_yuv_udma_frame:                   ; @ivtv_yuv_udma_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	bl	_ivtv_yuv_prep_user_dma
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_ivtv_udma_prepare
	add	x20, x19, #4
Lloh3:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, _wait@GOTPAGE
Lloh7:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_prepare_to_wait
	add	x21, x19, #8
Lloh8:
	adrp	x22, _IVTV_F_I_UDMA_PENDING@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IVTV_F_I_UDMA_PENDING@GOTPAGEOFF]
Lloh10:
	adrp	x23, _IVTV_F_I_UDMA@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IVTV_F_I_UDMA@GOTPAGEOFF]
Lloh12:
	adrp	x24, _current@GOTPAGE
Lloh13:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_schedule
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_signal_pending
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.8:
Lloh14:
	adrp	x1, _wait@GOTPAGE
Lloh15:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_finish_wait
	mov	x0, x19
	bl	_ivtv_udma_unmap
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IVTV_DEBUG_INFO
	mov	x0, x19
	bl	_mutex_unlock
Lloh18:
	adrp	x8, _EINTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x1, _wait@GOTPAGE
Lloh22:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_finish_wait
	mov	x0, x19
	bl	_ivtv_udma_unmap
	mov	x0, x19
	bl	_ivtv_yuv_frame_complete
	mov	x0, x19
	bl	_mutex_unlock
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_IVTV_F_I_UDMA_PENDING,4,2      ; @IVTV_F_I_UDMA_PENDING
	.comm	_IVTV_F_I_UDMA,4,2              ; @IVTV_F_I_UDMA
	.comm	_current,4,2                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"User stopped YUV UDMA\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_ivtv_yuv_udma_frame
.subsections_via_symbols
