	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_wrapper_control_cb
_mmal_wrapper_control_cb:               ## @mmal_wrapper_control_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %rdx
	movq	8(%rdi), %r14
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rcx
	movq	%rbx, %r8
	callq	_LOG_TRACE
	movq	(%rbx), %rax
	movq	_MMAL_EVENT_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_release
	leaq	16(%r14), %rdi
	callq	_vcos_semaphore_post
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmal_buffer_header_release     ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s(%p),%p,%4.4s"

	.comm	_MMAL_EVENT_ERROR,8,3           ## @MMAL_EVENT_ERROR
	.no_dead_strip	_mmal_wrapper_control_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_wrapper_control_cb
_mmal_wrapper_control_cb:               ; @mmal_wrapper_control_cb
	.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
	mov	x20, x1
	mov	x2, x0
	ldr	x19, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x20
	bl	_LOG_TRACE
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _MMAL_EVENT_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMAL_EVENT_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_mmal_buffer_header_release
	add	x0, x19, #16
	bl	_vcos_semaphore_post
	ldr	x1, [x19]
	cbz	x1, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmal_buffer_header_release
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s(%p),%p,%4.4s"

	.comm	_MMAL_EVENT_ERROR,8,3           ; @MMAL_EVENT_ERROR
	.no_dead_strip	_mmal_wrapper_control_cb
.subsections_via_symbols
