	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_encoder_component
_create_encoder_component:              ## @create_encoder_component
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	movq	_MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_mmal_component_create
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	cmpl	$0, 28(%rax)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 24(%rax)
	je	LBB0_4
## %bb.7:
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	(%rcx), %r15
	movq	56(%r15), %rdi
	movq	56(%rax), %rsi
	callq	_mmal_format_copy
	movl	72(%r14), %eax
	movq	56(%r15), %rcx
	movl	%eax, (%rcx)
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	cmpq	%rcx, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, (%r15)
	movq	32(%r15), %rax
	movq	40(%r15), %rcx
	cmpq	%rcx, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, 24(%r15)
	movq	%r15, %rdi
	callq	_mmal_port_format_commit
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.9:
	movq	_MMAL_PARAMETER_JPEG_Q_FACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	64(%r14), %rdx
	movq	%r15, %rdi
	callq	_mmal_port_parameter_set_uint32
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.11:
	movq	_MMAL_PARAMETER_JPEG_RESTART_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%r14), %rdx
	movq	%r15, %rdi
	callq	_mmal_port_parameter_set_uint32
	cmpq	$0, 56(%r14)
	je	LBB0_14
## %bb.12:
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_8:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_10:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_vcos_log_error
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.6:
	callq	_mmal_component_destroy
LBB0_24:
	movq	%rbx, %rax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	movq	_MMAL_PARAMETER_THUMBNAIL_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	cmpq	$0, 48(%r14)
	je	LBB0_18
## %bb.15:
	movq	24(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_18
## %bb.16:
	movq	32(%r14), %rcx
	testq	%rcx, %rcx
	jle	LBB0_18
## %bb.17:
	movl	$1, -96(%rbp)
	movq	%rax, -88(%rbp)
	movq	%rcx, -80(%rbp)
	movl	40(%r14), %eax
	movl	%eax, -68(%rbp)
LBB0_18:
	movq	-40(%rbp), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_mmal_port_parameter_set
	movq	-40(%rbp), %rdi
	callq	_mmal_component_enable
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.20:
	movq	(%r15), %rdx
	movq	24(%r15), %rsi
	movq	%r15, %rdi
	callq	_mmal_port_pool_create
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movl	48(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_error
LBB0_22:
	movq	%r12, 16(%r14)
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r14)
	cmpq	$0, (%r14)
	je	LBB0_24
## %bb.23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_24
LBB0_19:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER,4,2 ## @MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create JPEG encoder component"

	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.1:                               ## @.str.1
	.asciz	"JPEG encoder doesn't have input/output ports"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to set format on video encoder output port"

	.comm	_MMAL_PARAMETER_JPEG_Q_FACTOR,4,2 ## @MMAL_PARAMETER_JPEG_Q_FACTOR
L_.str.3:                               ## @.str.3
	.asciz	"Unable to set JPEG quality"

	.comm	_MMAL_PARAMETER_JPEG_RESTART_INTERVAL,4,2 ## @MMAL_PARAMETER_JPEG_RESTART_INTERVAL
L_.str.4:                               ## @.str.4
	.asciz	"Unable to set JPEG restart interval"

	.comm	_MMAL_PARAMETER_THUMBNAIL_CONFIGURATION,4,2 ## @MMAL_PARAMETER_THUMBNAIL_CONFIGURATION
L_.str.5:                               ## @.str.5
	.asciz	"Unable to enable video encoder component"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to create buffer header pool for encoder output port %s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.7:                               ## @.str.7
	.asciz	"Encoder component done\n"

	.no_dead_strip	_create_encoder_component
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_encoder_component
_create_encoder_component:              ; @create_encoder_component
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x0
	stur	xzr, [x29, #-40]
Lloh0:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sub	x1, x29, #40
	bl	_mmal_component_create
Lloh3:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	ldur	x8, [x29, #-40]
	ldr	w9, [x8, #28]
	cbz	w9, LBB0_9
; %bb.2:
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_9
; %bb.3:
	ldp	x8, x9, [x8, #8]
	ldr	x9, [x9]
	ldr	x21, [x8]
	ldr	x0, [x21, #56]
	ldr	x1, [x9, #56]
	bl	_mmal_format_copy
	ldr	w8, [x19, #72]
	ldr	x9, [x21, #56]
	str	w8, [x9]
	ldp	x8, x9, [x21, #8]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	x8, [x21]
	ldp	x8, x9, [x21, #32]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	x8, [x21, #24]
	mov	x0, x21
	bl	_mmal_port_format_commit
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _MMAL_PARAMETER_JPEG_Q_FACTOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_PARAMETER_JPEG_Q_FACTOR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x19, #64]
	mov	x0, x21
	bl	_mmal_port_parameter_set_uint32
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
Lloh8:
	adrp	x8, _MMAL_PARAMETER_JPEG_RESTART_INTERVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_PARAMETER_JPEG_RESTART_INTERVAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x2, [x19, #56]
	mov	x0, x21
	bl	_mmal_port_parameter_set_uint32
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_15
; %bb.6:
	mov	x20, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.7:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_8:
	mov	x20, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh15:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x20, x0
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x20, x0
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	bl	_vcos_log_error
	ldur	x0, [x29, #-40]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_mmal_component_destroy
LBB0_14:
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
LBB0_15:
	movi.2d	v0, #0000000000000000
	str	xzr, [sp, #64]
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
Lloh24:
	adrp	x8, _MMAL_PARAMETER_THUMBNAIL_CONFIGURATION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MMAL_PARAMETER_THUMBNAIL_CONFIGURATION@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_19
; %bb.16:
	ldr	x8, [x19, #24]
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.17:
	ldr	x9, [x19, #32]
	cmp	x9, #1
	b.lt	LBB0_19
; %bb.18:
	mov	w10, #1
	str	w10, [sp, #16]
	stp	x8, x9, [sp, #24]
	ldr	w8, [x19, #40]
	str	w8, [sp, #44]
LBB0_19:
	ldur	x8, [x29, #-40]
	ldr	w0, [x8]
	add	x8, sp, #16
	add	x1, x8, #24
	bl	_mmal_port_parameter_set
	ldur	x0, [x29, #-40]
	bl	_mmal_component_enable
	mov	x20, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.20:
	ldr	x1, [x21, #24]
	ldr	x2, [x21]
	mov	x0, x21
	bl	_mmal_port_pool_create
	mov	x22, x0
	cbnz	x0, LBB0_22
; %bb.21:
	ldr	w8, [x21, #48]
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_vcos_log_error
LBB0_22:
	ldur	x8, [x29, #-40]
	stp	x8, x22, [x19, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.23:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	b	LBB0_14
LBB0_24:
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER,4,2 ; @MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create JPEG encoder component"

	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.1:                               ; @.str.1
	.asciz	"JPEG encoder doesn't have input/output ports"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to set format on video encoder output port"

	.comm	_MMAL_PARAMETER_JPEG_Q_FACTOR,4,2 ; @MMAL_PARAMETER_JPEG_Q_FACTOR
l_.str.3:                               ; @.str.3
	.asciz	"Unable to set JPEG quality"

	.comm	_MMAL_PARAMETER_JPEG_RESTART_INTERVAL,4,2 ; @MMAL_PARAMETER_JPEG_RESTART_INTERVAL
l_.str.4:                               ; @.str.4
	.asciz	"Unable to set JPEG restart interval"

	.comm	_MMAL_PARAMETER_THUMBNAIL_CONFIGURATION,4,2 ; @MMAL_PARAMETER_THUMBNAIL_CONFIGURATION
l_.str.5:                               ; @.str.5
	.asciz	"Unable to enable video encoder component"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to create buffer header pool for encoder output port %s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.7:                               ; @.str.7
	.asciz	"Encoder component done\n"

	.no_dead_strip	_create_encoder_component
.subsections_via_symbols
