	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_udma_prepare              ## -- Begin function ivtv_udma_prepare
	.p2align	4, 0x90
_ivtv_udma_prepare:                     ## @ivtv_udma_prepare
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_IVTV_F_I_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IVTV_F_I_UDMA_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_ivtv_udma_start
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IVTV_F_I_DMA,4,2               ## @IVTV_F_I_DMA
	.comm	_IVTV_F_I_UDMA_PENDING,4,2      ## @IVTV_F_I_UDMA_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_udma_prepare              ; -- Begin function ivtv_udma_prepare
	.p2align	2
_ivtv_udma_prepare:                     ; @ivtv_udma_prepare
	.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
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _IVTV_F_I_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IVTV_F_I_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IVTV_F_I_UDMA_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IVTV_F_I_UDMA_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ivtv_udma_start
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IVTV_F_I_DMA,4,2               ; @IVTV_F_I_DMA
	.comm	_IVTV_F_I_UDMA_PENDING,4,2      ; @IVTV_F_I_UDMA_PENDING
.subsections_via_symbols
