	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspipreview_create            ## -- Begin function raspipreview_create
	.p2align	4, 0x90
_raspipreview_create:                   ## @raspipreview_create
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	cmpl	$0, 28(%rdi)
	je	LBB0_1
## %bb.4:
	movq	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-32(%rbp), %rsi
	callq	_mmal_component_create
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.6:
	movq	-32(%rbp), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_7
## %bb.8:
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_MMAL_PARAMETER_DISPLAYREGION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-56(%rbp), %rsi
	movl	%eax, -52(%rbp)
	movl	$28, -56(%rbp)
	movq	_MMAL_DISPLAY_SET_LAYER@GOTPCREL(%rip), %rcx
	movq	_PREVIEW_LAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_MMAL_DISPLAY_SET_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	24(%r14), %ecx
	movl	%ecx, -44(%rbp)
	cmpq	$0, 16(%r14)
	je	LBB0_10
## %bb.9:
	movq	_MMAL_DISPLAY_SET_FULLSCREEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -64(%rbp)
	movl	$1, %eax
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	leaq	-32(%rbp), %rsi
	callq	_mmal_component_create
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
LBB0_17:
	movq	-32(%rbp), %rdi
	callq	_mmal_component_enable
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_18
## %bb.19:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_20
LBB0_5:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_18:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_14
LBB0_7:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_vcos_log_error
	jmp	LBB0_15
LBB0_10:
	movq	_MMAL_DISPLAY_SET_DEST_RECT@GOTPCREL(%rip), %rcx
	movq	_MMAL_DISPLAY_SET_FULLSCREEN@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, -64(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -48(%rbp)
	xorl	%eax, %eax
LBB0_11:
	movl	%eax, -60(%rbp)
	callq	_mmal_port_parameter_set
	cmpq	(%r15), %rax
	je	LBB0_17
## %bb.12:
	movq	%rax, %rbx
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_17
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
LBB0_14:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_error
LBB0_15:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.16:
	callq	_mmal_component_destroy
LBB0_20:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vc.null_sink"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Unable to create null sink component"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,8,3 ## @MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER
L_.str.2:                               ## @.str.2
	.asciz	"Unable to create preview component"

	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.3:                               ## @.str.3
	.asciz	"No input ports found on component"

	.comm	_MMAL_PARAMETER_DISPLAYREGION,4,2 ## @MMAL_PARAMETER_DISPLAYREGION
	.comm	_MMAL_DISPLAY_SET_LAYER,4,2     ## @MMAL_DISPLAY_SET_LAYER
	.comm	_PREVIEW_LAYER,4,2              ## @PREVIEW_LAYER
	.comm	_MMAL_DISPLAY_SET_ALPHA,4,2     ## @MMAL_DISPLAY_SET_ALPHA
	.comm	_MMAL_DISPLAY_SET_FULLSCREEN,4,2 ## @MMAL_DISPLAY_SET_FULLSCREEN
	.comm	_MMAL_DISPLAY_SET_DEST_RECT,4,2 ## @MMAL_DISPLAY_SET_DEST_RECT
L_.str.4:                               ## @.str.4
	.asciz	"unable to set preview port parameters (%u)"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to enable preview/null sink component (%u)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspipreview_create            ; -- Begin function raspipreview_create
	.p2align	2
_raspipreview_create:                   ; @raspipreview_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	xzr, [sp, #40]
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	add	x1, sp, #40
	bl	_mmal_component_create
Lloh3:
	adrp	x21, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [sp, #40]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_11
; %bb.3:
	ldr	x8, [x8]
	ldr	x0, [x8]
Lloh5:
	adrp	x8, _MMAL_PARAMETER_DISPLAYREGION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_PARAMETER_DISPLAYREGION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	x9, sp, #8
	add	x1, x9, #8
	mov	w9, #28
	stp	w9, w8, [sp, #16]
Lloh8:
	adrp	x8, _MMAL_DISPLAY_SET_LAYER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_DISPLAY_SET_LAYER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PREVIEW_LAYER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PREVIEW_LAYER@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x9]
Lloh14:
	adrp	x9, _MMAL_DISPLAY_SET_ALPHA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MMAL_DISPLAY_SET_ALPHA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	w8, [x19, #24]
	stp	w8, w10, [sp, #28]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.4:
Lloh17:
	adrp	x8, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [sp, #8]
	mov	w8, #1
	b	LBB0_13
LBB0_5:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #40
	bl	_mmal_component_create
Lloh22:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_6:
	ldr	x0, [sp, #40]
	bl	_mmal_component_enable
	mov	x20, x0
Lloh25:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [sp, #40]
	str	x8, [x19]
	b	LBB0_18
LBB0_8:
	mov	x20, x0
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_9:
	mov	x20, x0
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_10:
	str	x20, [sp]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_11:
Lloh34:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh36:
	ldr	x20, [x8]
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_12:
Lloh39:
	adrp	x10, _MMAL_DISPLAY_SET_DEST_RECT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _MMAL_DISPLAY_SET_DEST_RECT@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
Lloh42:
	adrp	x11, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGE
Lloh43:
	ldr	x11, [x11, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGEOFF]
Lloh44:
	ldr	w11, [x11]
	orr	w9, w10, w9
	orr	w9, w9, w11
	ldr	w10, [x19, #8]
	str	w9, [sp, #8]
	str	w10, [sp, #24]
LBB0_13:
	str	w8, [sp, #12]
	bl	_mmal_port_parameter_set
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.14:
	mov	x20, x0
Lloh45:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.15:
	str	x20, [sp]
Lloh48:
	adrp	x0, l_.str.4@PAGE
Lloh49:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_16:
	bl	_vcos_log_error
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_mmal_component_destroy
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vc.null_sink"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Unable to create null sink component"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,8,3 ; @MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER
l_.str.2:                               ; @.str.2
	.asciz	"Unable to create preview component"

	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.3:                               ; @.str.3
	.asciz	"No input ports found on component"

	.comm	_MMAL_PARAMETER_DISPLAYREGION,4,2 ; @MMAL_PARAMETER_DISPLAYREGION
	.comm	_MMAL_DISPLAY_SET_LAYER,4,2     ; @MMAL_DISPLAY_SET_LAYER
	.comm	_PREVIEW_LAYER,4,2              ; @PREVIEW_LAYER
	.comm	_MMAL_DISPLAY_SET_ALPHA,4,2     ; @MMAL_DISPLAY_SET_ALPHA
	.comm	_MMAL_DISPLAY_SET_FULLSCREEN,4,2 ; @MMAL_DISPLAY_SET_FULLSCREEN
	.comm	_MMAL_DISPLAY_SET_DEST_RECT,4,2 ; @MMAL_DISPLAY_SET_DEST_RECT
l_.str.4:                               ; @.str.4
	.asciz	"unable to set preview port parameters (%u)"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to enable preview/null sink component (%u)"

.subsections_via_symbols
