	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_format_alloc              ## -- Begin function mmal_format_alloc
	.p2align	4, 0x90
_mmal_format_alloc:                     ## @mmal_format_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movl	$24, %esi
	callq	_vcos_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_MMAL_ES_FORMAT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rax
	addq	$12, %rax
	movq	%rax, (%rbx)
	movq	_EXTRADATA_SIZE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmal format"

	.comm	_MMAL_ES_FORMAT_MAGIC,4,2       ## @MMAL_ES_FORMAT_MAGIC
	.comm	_EXTRADATA_SIZE_DEFAULT,4,2     ## @EXTRADATA_SIZE_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_format_alloc              ; -- Begin function mmal_format_alloc
	.p2align	2
_mmal_format_alloc:                     ; @mmal_format_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	w1, #24
	bl	_vcos_calloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _MMAL_ES_FORMAT_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_ES_FORMAT_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	add	x8, x19, #12
	str	x8, [x19]
Lloh5:
	adrp	x8, _EXTRADATA_SIZE_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXTRADATA_SIZE_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmal format"

	.comm	_MMAL_ES_FORMAT_MAGIC,4,2       ; @MMAL_ES_FORMAT_MAGIC
	.comm	_EXTRADATA_SIZE_DEFAULT,4,2     ; @EXTRADATA_SIZE_DEFAULT
.subsections_via_symbols
