	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function container_to_mmal_format
_container_to_mmal_format:              ## @container_to_mmal_format
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	36(%rsi), %edi
	callq	_container_to_mmal_es_type
	movl	%eax, (%r15)
	movq	_MMAL_ES_TYPE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movl	32(%r14), %edi
	callq	_container_to_mmal_encoding
	movl	%eax, 44(%r15)
	movl	28(%r14), %esi
	movl	32(%r14), %edi
	callq	_container_to_mmal_variant
	movl	%eax, 40(%r15)
	movl	24(%r14), %eax
	movl	%eax, 36(%r15)
	movq	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	je	LBB0_4
## %bb.3:
	movq	_MMAL_ES_FORMAT_FLAG_FRAMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	%eax, 32(%r15)
	movq	24(%r15), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	(%r15), %esi
	cmpl	$129, %esi
	je	LBB0_7
## %bb.5:
	cmpl	$128, %esi
	jne	LBB0_8
## %bb.6:
	movq	16(%r14), %rax
	movq	24(%r15), %rcx
	movups	32(%rax), %xmm0
	movups	%xmm0, 32(%rcx)
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%rcx)
	jmp	LBB0_9
LBB0_7:
	movq	16(%r14), %rax
	movq	24(%r15), %rcx
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_9:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_mmal_format_extradata_alloc
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_15
## %bb.11:
	movq	8(%r14), %rdx
	movq	%rdx, 8(%r15)
	movl	16(%r15), %edi
	movl	4(%r14), %esi
	callq	_memcpy
LBB0_12:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rbx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ES_TYPE_UNKNOWN,4,2       ## @MMAL_ES_TYPE_UNKNOWN
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ## @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.comm	_MMAL_ES_FORMAT_FLAG_FRAMED,4,2 ## @MMAL_ES_FORMAT_FLAG_FRAMED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format es type not handled (%i)"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"couldn't allocate extradata"

	.no_dead_strip	_container_to_mmal_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function container_to_mmal_format
_container_to_mmal_format:              ; @container_to_mmal_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w0, [x1, #36]
	bl	_container_to_mmal_es_type
	str	w0, [x20]
Lloh0:
	adrp	x8, _MMAL_ES_TYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_ES_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	b	LBB0_12
LBB0_2:
	ldr	w0, [x19, #32]
	bl	_container_to_mmal_encoding
	str	w0, [x20, #44]
	ldp	w1, w0, [x19, #28]
	bl	_container_to_mmal_variant
	str	w0, [x20, #40]
	ldr	w8, [x19, #24]
	ldr	w9, [x19]
Lloh6:
	adrp	x10, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MMAL_ES_FORMAT_FLAG_FRAMED@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MMAL_ES_FORMAT_FLAG_FRAMED@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	stp	w9, w8, [x20, #32]
	ldr	x0, [x20, #24]
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #24]
	ldr	q0, [x8, #32]
	str	q0, [x9, #32]
	ldr	q0, [x8, #16]
	str	q0, [x9, #16]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #24]
	ldr	q0, [x8]
	str	q0, [x9]
	b	LBB0_7
LBB0_6:
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
LBB0_7:
	ldr	x1, [x19, #8]
Lloh14:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	cbz	x1, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_mmal_format_extradata_alloc
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	ldr	x2, [x19, #8]
	str	x2, [x20, #8]
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #4]
	bl	_memcpy
LBB0_10:
	ldr	x21, [x22]
	b	LBB0_12
LBB0_11:
	mov	x21, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ES_TYPE_UNKNOWN,4,2       ; @MMAL_ES_TYPE_UNKNOWN
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ; @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.comm	_MMAL_ES_FORMAT_FLAG_FRAMED,4,2 ; @MMAL_ES_FORMAT_FLAG_FRAMED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format es type not handled (%i)"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"couldn't allocate extradata"

	.no_dead_strip	_container_to_mmal_format
.subsections_via_symbols
