	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitex_init                  ## -- Begin function raspitex_init
	.p2align	4, 0x90
_raspitex_init:                         ## @raspitex_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, %r12
	xorl	%eax, %eax
	callq	_vcos_init
	movq	_VCOS_LOG_CATEGORY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_register
	movl	(%rbx), %edi
	cmpq	$0, 16(%r12)
	jne	LBB0_1
## %bb.2:
	movq	_VCOS_LOG_WARN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VCOS_LOG_INFO@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_vcos_log_set_level
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_vcos_log_trace
	leaq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edx
	callq	_vcos_semaphore_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_15
## %bb.4:
	leaq	4(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_vcos_semaphore_create
	cmpq	(%r15), %rax
	jne	LBB0_15
## %bb.5:
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_15
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r12, %rdi
	callq	_yuv_open
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	callq	_vcsm_square_open
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_9:
	movq	%r12, %rdi
	callq	_teapot_open
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_7:
	movq	%r12, %rdi
	callq	_square_open
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_11:
	movq	%r12, %rdi
	callq	_sobel_open
	testl	%eax, %eax
	je	LBB0_14
LBB0_15:
	movl	(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_vcos_log_error
	movl	$-1, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	callq	_mirror_open
	testl	%eax, %eax
	jne	LBB0_15
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RaspiTex"

	.comm	_VCOS_LOG_CATEGORY,4,2          ## @VCOS_LOG_CATEGORY
	.comm	_VCOS_LOG_INFO,4,2              ## @VCOS_LOG_INFO
	.comm	_VCOS_LOG_WARN,4,2              ## @VCOS_LOG_WARN
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
L_.str.2:                               ## @.str.2
	.asciz	"glcap_start_sem"

	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"glcap_completed_sem"

L_.str.4:                               ## @.str.4
	.asciz	"%s: failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitex_init                  ; -- Begin function raspitex_init
	.p2align	2
_raspitex_init:                         ; @raspitex_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	x19, x0
	bl	_vcos_init
Lloh0:
	adrp	x20, _VCOS_LOG_CATEGORY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VCOS_LOG_CATEGORY@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_register
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _VCOS_LOG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VCOS_LOG_INFO@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh6:
	adrp	x10, _VCOS_LOG_WARN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VCOS_LOG_WARN@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	bl	_vcos_log_set_level
Lloh8:
	adrp	x20, _VCOS_FUNCTION@GOTPAGE
Lloh9:
	ldr	x20, [x20, _VCOS_FUNCTION@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_trace
	add	x0, x19, #8
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_vcos_semaphore_create
Lloh14:
	adrp	x21, _VCOS_SUCCESS@GOTPAGE
Lloh15:
	ldr	x21, [x21, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.1:
	add	x0, x19, #4
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_vcos_semaphore_create
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.3:
Lloh18:
	adrp	x9, lJTI0_0@PAGE
Lloh19:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x19
	bl	_yuv_open
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_vcsm_square_open
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_teapot_open
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_square_open
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_sobel_open
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_mirror_open
LBB0_10:
	cbz	w0, LBB0_12
LBB0_11:
	ldr	w1, [x20]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_vcos_log_error
	mov	w0, #-1
LBB0_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
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RaspiTex"

	.comm	_VCOS_LOG_CATEGORY,4,2          ; @VCOS_LOG_CATEGORY
	.comm	_VCOS_LOG_INFO,4,2              ; @VCOS_LOG_INFO
	.comm	_VCOS_LOG_WARN,4,2              ; @VCOS_LOG_WARN
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
l_.str.2:                               ; @.str.2
	.asciz	"glcap_start_sem"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"glcap_completed_sem"

l_.str.4:                               ; @.str.4
	.asciz	"%s: failed"

.subsections_via_symbols
