	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitex_configure_preview_port ## -- Begin function raspitex_configure_preview_port
	.p2align	4, 0x90
_raspitex_configure_preview_port:       ## @raspitex_configure_preview_port
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	callq	_vcos_log_trace
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mmal_port_parameter_set_boolean
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_mmal_port_format_commit
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.4:
	movq	%r15, 8(%r14)
	movl	32(%r15), %esi
	movl	%esi, 16(%r15)
	movq	24(%r15), %rdx
	movq	%rdx, 8(%r15)
	leaq	L_.str.3(%rip), %rdi
	callq	_vcos_log_trace
	movl	16(%r15), %esi
	movq	8(%r15), %rdx
	movq	%r15, %rdi
	callq	_mmal_port_pool_create
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	callq	_mmal_queue_create
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, (%r15)
	movq	_preview_output_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mmal_port_enable
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_11
LBB0_1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_3:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
LBB0_11:
	callq	_vcos_log_error
LBB0_12:
	xorl	%eax, %eax
	cmpq	(%r12), %rbx
	setne	%al
	negl	%eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.5(%rip), %rdi
LBB0_6:
	callq	_vcos_log_error
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s port %p"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ## @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_TRUE,4,2                  ## @MMAL_TRUE
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable zero copy on camera preview port"

L_.str.2:                               ## @.str.2
	.asciz	"camera viewfinder format couldn't be set"

L_.str.3:                               ## @.str.3
	.asciz	"Creating buffer pool for GL renderer num %d size %d"

L_.str.4:                               ## @.str.4
	.asciz	"Error allocating pool"

	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"Error allocating queue"

	.comm	_preview_output_cb,4,2          ## @preview_output_cb
L_.str.6:                               ## @.str.6
	.asciz	"Failed to camera preview port"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitex_configure_preview_port ; -- Begin function raspitex_configure_preview_port
	.p2align	2
_raspitex_configure_preview_port:       ; @raspitex_configure_preview_port
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VCOS_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_vcos_log_trace
Lloh5:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mmal_port_parameter_set_boolean
Lloh11:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_mmal_port_format_commit
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	str	x19, [x20, #8]
	ldr	w1, [x19, #32]
	str	w1, [x19, #16]
	ldr	x2, [x19, #24]
	str	x2, [x19, #8]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_vcos_log_trace
	ldr	w1, [x19, #16]
	ldr	x2, [x19, #8]
	mov	x0, x19
	bl	_mmal_port_pool_create
	str	w0, [x20, #4]
	cbz	w0, LBB0_10
; %bb.3:
	bl	_mmal_queue_create
	str	w0, [x20]
	cbz	w0, LBB0_11
; %bb.4:
	str	x20, [x19]
Lloh15:
	adrp	x8, _preview_output_cb@GOTPAGE
Lloh16:
	ldr	x8, [x8, _preview_output_cb@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmal_port_enable
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.5:
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x21, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x21, x0
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_vcos_log_error
LBB0_9:
	ldr	x8, [x22]
	cmp	x21, x8
	csetm	w0, ne
	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
LBB0_10:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_12:
	bl	_vcos_log_error
Lloh28:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	x21, [x8]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s port %p"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ; @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_TRUE,4,2                  ; @MMAL_TRUE
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable zero copy on camera preview port"

l_.str.2:                               ; @.str.2
	.asciz	"camera viewfinder format couldn't be set"

l_.str.3:                               ; @.str.3
	.asciz	"Creating buffer pool for GL renderer num %d size %d"

l_.str.4:                               ; @.str.4
	.asciz	"Error allocating pool"

	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"Error allocating queue"

	.comm	_preview_output_cb,4,2          ; @preview_output_cb
l_.str.6:                               ; @.str.6
	.asciz	"Failed to camera preview port"

.subsections_via_symbols
