	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_release              ## -- Begin function mmal_port_release
	.p2align	4, 0x90
_mmal_port_release:                     ## @mmal_port_release
	.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	%rdi, %rdx
	movq	8(%rdi), %rbx
	movq	(%rbx), %r14
	movl	(%rdi), %esi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_LOG_TRACE
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setg	%dil
	callq	_vcos_verify
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_vcos_mutex_lock
	movq	(%rbx), %rax
	decq	(%rax)
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rax)
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmal_component_destroy_internal ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %s(%p), refcount %i"

	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_release              ; -- Begin function mmal_port_release
	.p2align	2
_mmal_port_release:                     ; @mmal_port_release
	.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	x2, x0
	ldr	x19, [x0, #8]
	ldr	x20, [x19]
	ldr	w1, [x0]
	ldr	x3, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, gt
	bl	_vcos_verify
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_vcos_mutex_lock
	ldr	x8, [x19]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_vcos_mutex_unlock
Lloh2:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	bl	_vcos_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmal_component_destroy_internal
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %s(%p), refcount %i"

	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
.subsections_via_symbols
