	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_msgq_pool_create          ## -- Begin function vcos_msgq_pool_create
	.p2align	4, 0x90
_vcos_msgq_pool_create:                 ## @vcos_msgq_pool_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	addl	$4, %edx
	movq	_VCOS_BLOCKPOOL_ALIGN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_vcos_blockpool_create_on_heap
	movq	%rax, %rbx
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.1:
	leaq	12(%r12), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_vcos_semaphore_create
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.2:
	movq	_vcos_msgq_pool_on_reply@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	callq	_vcos_blockpool_delete
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_BLOCKPOOL_ALIGN_DEFAULT,4,2 ## @VCOS_BLOCKPOOL_ALIGN_DEFAULT
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_vcos_msgq_pool_on_reply,4,2    ## @vcos_msgq_pool_on_reply
	.comm	_MAGIC,4,2                      ## @MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_msgq_pool_create          ; -- Begin function vcos_msgq_pool_create
	.p2align	2
_vcos_msgq_pool_create:                 ; @vcos_msgq_pool_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x1
	mov	x19, x0
	add	w2, w2, #4
Lloh0:
	adrp	x8, _VCOS_BLOCKPOOL_ALIGN_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_BLOCKPOOL_ALIGN_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w4, #0
	mov	x5, x21
	bl	_vcos_blockpool_create_on_heap
	mov	x20, x0
Lloh3:
	adrp	x23, _VCOS_SUCCESS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	add	x0, x19, #12
	mov	x1, x21
	mov	x2, x22
	bl	_vcos_semaphore_create
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _vcos_msgq_pool_on_reply@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vcos_msgq_pool_on_reply@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MAGIC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAGIC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_vcos_blockpool_delete
LBB0_4:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_BLOCKPOOL_ALIGN_DEFAULT,4,2 ; @VCOS_BLOCKPOOL_ALIGN_DEFAULT
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_vcos_msgq_pool_on_reply,4,2    ; @vcos_msgq_pool_on_reply
	.comm	_MAGIC,4,2                      ; @MAGIC
.subsections_via_symbols
