	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_free                 ## -- Begin function mmal_port_free
	.p2align	4, 0x90
_mmal_port_free:                        ## @mmal_port_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	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
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_LOG_TRACE
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_vcos_assert
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_mmal_format_free
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$28, %rdi
	callq	_vcos_mutex_delete
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$24, %rdi
	callq	_vcos_mutex_delete
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$20, %rdi
	callq	_vcos_semaphore_delete
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$16, %rdi
	callq	_vcos_mutex_delete
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$12, %rdi
	callq	_vcos_mutex_delete
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$8, %rdi
	callq	_vcos_mutex_delete
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vcos_free                      ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	jmp	_LOG_TRACE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s at %p"

L_.str.1:                               ## @.str.1
	.asciz	"<invalid>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_free                 ; -- Begin function mmal_port_free
	.p2align	2
_mmal_port_free:                        ; @mmal_port_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	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	x19, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_LOG_TRACE
	ldp	x8, x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_vcos_assert
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_mmal_format_free
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, #28
	bl	_vcos_mutex_delete
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, #24
	bl	_vcos_mutex_delete
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, #20
	bl	_vcos_semaphore_delete
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, #16
	bl	_vcos_mutex_delete
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, #12
	bl	_vcos_mutex_delete
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, #8
	bl	_vcos_mutex_delete
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vcos_free
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	b	_LOG_TRACE
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s at %p"

l_.str.1:                               ; @.str.1
	.asciz	"<invalid>"

.subsections_via_symbols
