	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_queue_init
_vino_queue_init:                       ## @vino_queue_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%r13), %rax
	movq	_VINO_QUEUE_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_2:
	movq	8(%r13), %rax
	movq	_VINO_MEMORY_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.3:
	cmpl	$0, (%r14)
	je	LBB0_18
## %bb.4:
	leaq	20(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_VINO_FRAMEBUFFER_COUNT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r14)
	jbe	LBB0_6
## %bb.5:
	movl	%eax, (%r14)
LBB0_6:
	movl	$0, 16(%r13)
	xorl	%r15d, %r15d
	cmpl	$0, (%r14)
	movl	$0, %esi
	je	LBB0_24
## %bb.7:
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	leal	-1(%rbx), %ecx
	movq	(%rax,%rcx,8), %rcx
	movq	8(%rcx), %rax
	addq	16(%rcx), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, 16(%rdi)
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	32(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dprintk
	incl	%ebx
	movl	(%r14), %esi
	cmpl	%esi, %ebx
	jae	LBB0_24
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	32(%r13), %rcx
	movl	%ebx, %r12d
	movq	%rax, (%rcx,%r12,8)
	movq	32(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_VINO_FRAMEBUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vino_allocate_buffer
	movl	%eax, %r14d
	movq	32(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	testl	%r14d, %r14d
	jne	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, (%rdi)
	testl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
LBB0_15:
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	negl	%eax
	movl	%eax, %r15d
	jmp	LBB0_22
LBB0_21:
	callq	_kfree
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	%r14d, %r15d
LBB0_22:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_vino_queue_free_with_count
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_25
LBB0_23:
	movl	(%r14), %esi
LBB0_24:
	movl	%esi, 16(%r13)
	leaq	28(%r13), %rdi
	callq	_vino_fifo_init
	leaq	24(%r13), %rdi
	movl	16(%r13), %esi
	callq	_vino_fifo_init
	movq	_VINO_MEMORY_MMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_VINO_QUEUE_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_25:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vino_queue_init(): length = %d\n"

	.comm	_VINO_QUEUE_MAGIC,8,3           ## @VINO_QUEUE_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"vino_queue_init(): queue already initialized!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VINO_MEMORY_NONE,8,3           ## @VINO_MEMORY_NONE
	.comm	_VINO_FRAMEBUFFER_COUNT_MAX,4,2 ## @VINO_FRAMEBUFFER_COUNT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"vino_queue_init(): allocating buffer %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"vino_queue_init(): kmalloc() failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VINO_FRAMEBUFFER_SIZE,4,2      ## @VINO_FRAMEBUFFER_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"vino_queue_init(): vino_allocate_buffer() failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"vino_queue_init(): buffer = %d, offset = %d, size = %d\n"

	.comm	_VINO_MEMORY_MMAP,8,3           ## @VINO_MEMORY_MMAP
	.no_dead_strip	_vino_queue_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_queue_init
_vino_queue_init:                       ; @vino_queue_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19]
Lloh2:
	adrp	x26, _VINO_QUEUE_MAGIC@GOTPAGE
Lloh3:
	ldr	x26, [x26, _VINO_QUEUE_MAGIC@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _VINO_MEMORY_NONE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VINO_MEMORY_NONE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.3:
	add	x20, x19, #20
	mov	x0, x20
	bl	_mutex_lock
	ldr	w9, [x21]
Lloh7:
	adrp	x8, _VINO_FRAMEBUFFER_COUNT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VINO_FRAMEBUFFER_COUNT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ls	LBB0_5
; %bb.4:
	str	w8, [x21]
LBB0_5:
	str	wzr, [x19, #16]
	ldr	w8, [x21]
	cbz	w8, LBB0_16
; %bb.6:
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	w22, #0
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh12:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	adrp	x28, _VINO_FRAMEBUFFER_SIZE@GOTPAGE
Lloh15:
	ldr	x28, [x28, _VINO_FRAMEBUFFER_SIZE@GOTPAGEOFF]
Lloh16:
	adrp	x24, l_.str.5@PAGE
Lloh17:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_7:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_8:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_9:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	w9, w22, #1
	ldr	x8, [x8, w9, uxtw #3]
	ldp	x8, x9, [x8, #8]
	add	x8, x8, x9
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x8, [x0, #16]
	add	x0, x0, #24
	bl	_spin_lock_init
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x20, lsl #3]
	ldp	x8, x9, [x8, #8]
	stp	x9, x8, [sp, #8]
	mov	x8, x22
	str	x8, [sp]
	mov	x0, x24
	bl	_dprintk
	add	w22, w22, #1
	ldr	w1, [x21]
	cmp	w22, w1
	b.hs	LBB0_19
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	x22, [sp]
	mov	x0, x23
	bl	_dprintk
	ldr	w1, [x27]
	mov	w0, #4
	bl	_kmalloc
	ldr	x8, [x19, #32]
	mov	w20, w22
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x9]
	cbz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x28]
	bl	_vino_allocate_buffer
	mov	x25, x0
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x20, lsl #3]
	cbnz	w25, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	str	w22, [x0]
	cbnz	w22, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
	b	LBB0_11
LBB0_16:
	mov	w1, #0
	b	LBB0_23
LBB0_17:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	cbz	w8, LBB0_22
; %bb.18:
	neg	w25, w8
	b	LBB0_21
LBB0_19:
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_23
LBB0_20:
	bl	_kfree
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
LBB0_21:
	mov	x0, x19
	mov	x1, x22
	bl	_vino_queue_free_with_count
	str	wzr, [x21]
	b	LBB0_24
LBB0_22:
	ldr	w1, [x21]
LBB0_23:
	str	w1, [x19, #16]
	add	x0, x19, #28
	bl	_vino_fifo_init
	add	x0, x19, #24
	ldr	w1, [x19, #16]
	bl	_vino_fifo_init
	mov	w25, #0
Lloh30:
	adrp	x8, _VINO_MEMORY_MMAP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VINO_MEMORY_MMAP@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x9, [x26]
	stp	x9, x8, [x19]
LBB0_24:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vino_queue_init(): length = %d\n"

	.comm	_VINO_QUEUE_MAGIC,8,3           ; @VINO_QUEUE_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"vino_queue_init(): queue already initialized!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VINO_MEMORY_NONE,8,3           ; @VINO_MEMORY_NONE
	.comm	_VINO_FRAMEBUFFER_COUNT_MAX,4,2 ; @VINO_FRAMEBUFFER_COUNT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"vino_queue_init(): allocating buffer %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"vino_queue_init(): kmalloc() failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VINO_FRAMEBUFFER_SIZE,4,2      ; @VINO_FRAMEBUFFER_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"vino_queue_init(): vino_allocate_buffer() failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"vino_queue_init(): buffer = %d, offset = %d, size = %d\n"

	.comm	_VINO_MEMORY_MMAP,8,3           ; @VINO_MEMORY_MMAP
	.no_dead_strip	_vino_queue_init
.subsections_via_symbols
