	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_stream_init
_ivtv_stream_init:                      ## @ivtv_stream_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movslq	%esi, %r12
	movq	%r12, %rbx
	shlq	$6, %rbx
	leaq	(%r15,%rbx), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r14, 56(%r15,%rbx)
	movl	%r12d, (%r15,%rbx)
	movq	_ivtv_stream_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r12,%r12,2), %rcx
	movl	20(%rax,%rcx,8), %edx
	movl	%edx, 52(%r15,%rbx)
	movl	16(%rax,%rcx,8), %edx
	movl	%edx, 48(%r15,%rbx)
	cmpq	$0, 8(%rax,%rcx,8)
	je	LBB0_1
## %bb.2:
	movq	_PCI_DMA_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	(%rax,%rcx,8), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 44(%r15,%rbx)
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %ecx
	movl	%ecx, 4(%r15,%rbx)
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %eax
	shll	$10, %eax
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, 8(%r15,%rbx)
LBB0_5:
	leaq	(%r15,%rbx), %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	leaq	(%r15,%rbx), %rdi
	addq	$36, %rdi
	callq	_init_waitqueue_head
	movq	_IVTV_DMA_UNMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15,%rbx)
	leaq	(%r15,%rbx), %rdi
	addq	$28, %rdi
	callq	_ivtv_queue_init
	leaq	(%r15,%rbx), %rdi
	addq	$24, %rdi
	callq	_ivtv_queue_init
	leaq	(%r15,%rbx), %rdi
	addq	$20, %rdi
	callq	_ivtv_queue_init
	leaq	(%r15,%rbx), %rdi
	addq	$16, %rdi
	callq	_ivtv_queue_init
	leaq	(%r15,%rbx), %rdi
	addq	$12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ivtv_queue_init                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ivtv_stream_info,8,3           ## @ivtv_stream_info
	.comm	_PCI_DMA_NONE,4,2               ## @PCI_DMA_NONE
	.comm	_IVTV_DMA_UNMAPPED,4,2          ## @IVTV_DMA_UNMAPPED
	.no_dead_strip	_ivtv_stream_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_stream_init
_ivtv_stream_init:                      ; @ivtv_stream_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	sxtw	x22, w21
	add	x19, x8, x22, lsl #6
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	x20, [x19, #56]
	str	w21, [x19]
Lloh0:
	adrp	x8, _ivtv_stream_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ivtv_stream_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	smaddl	x8, w21, w9, x8
	ldr	d0, [x8, #16]
	str	d0, [x19, #48]
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x10, _PCI_DMA_NONE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCI_DMA_NONE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	x8, [x20]
	ldr	w8, [x8, w21, sxtw #2]
	str	w8, [x19, #4]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	ldr	w9, [x9, x22, lsl #2]
	add	w9, w8, w9, lsl #10
	sub	w9, w9, #1
	sdiv	w8, w9, w8
	str	w8, [x19, #8]
LBB0_2:
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_init_waitqueue_head
Lloh5:
	adrp	x8, _IVTV_DMA_UNMAPPED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IVTV_DMA_UNMAPPED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x0, x19, #28
	bl	_ivtv_queue_init
	add	x0, x19, #24
	bl	_ivtv_queue_init
	add	x0, x19, #20
	bl	_ivtv_queue_init
	add	x0, x19, #16
	bl	_ivtv_queue_init
	add	x0, x19, #12
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ivtv_queue_init
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ivtv_stream_info,8,3           ; @ivtv_stream_info
	.comm	_PCI_DMA_NONE,4,2               ; @PCI_DMA_NONE
	.comm	_IVTV_DMA_UNMAPPED,4,2          ; @IVTV_DMA_UNMAPPED
	.no_dead_strip	_ivtv_stream_init
.subsections_via_symbols
