	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_format_commit        ## -- Begin function mmal_port_format_commit
	.p2align	4, 0x90
_mmal_port_format_commit:               ## @mmal_port_format_commit
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	48(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	64(%rbx), %rax
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.3:
	movslq	56(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	48(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rbx)
	movq	_MMAL_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_26
## %bb.7:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdx
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.2(%rip), %rdx
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_11:
	movq	40(%rbx), %rax
	movl	16(%rax), %esi
	movl	(%rbx), %edx
	movl	72(%rbx), %ecx
	movq	64(%rbx), %rax
	movl	8(%rax), %r9d
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %r8
	callq	_LOG_TRACE
	movq	48(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.12:
	movq	%rbx, %rdi
	callq	_LOCK_PORT
	movq	48(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mmal_port_name_update
	movq	16(%rbx), %rax
	cmpq	%rax, 8(%rbx)
	jge	LBB0_14
## %bb.13:
	movq	%rax, 8(%rbx)
LBB0_14:
	movq	32(%rbx), %rax
	cmpq	%rax, 24(%rbx)
	jge	LBB0_16
## %bb.15:
	movq	%rax, 24(%rbx)
LBB0_16:
	movq	(%rbx), %rax
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.17:
	movq	40(%rbx), %rcx
	movl	(%rcx), %eax
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:
	movq	8(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_24
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	16(%rsi), %rdi
	cmpq	%rdi, 8(%rsi)
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rdi, 8(%rsi)
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	32(%rsi), %rdi
	cmpq	%rdi, 24(%rsi)
	jge	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rdi, 24(%rsi)
	jmp	LBB0_19
LBB0_24:
	movq	%rbx, %rdi
	callq	_UNLOCK_PORT
	jmp	LBB0_6
LBB0_25:
	movslq	56(%rbx), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid port (%p/%p)"

	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s: port format has been overwritten, resetting %p to %p"

	.comm	_MMAL_EFAULT,4,2                ## @MMAL_EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"<NO-FORMAT>"

L_.str.3:                               ## @.str.3
	.asciz	"%4.4s"

L_.str.4:                               ## @.str.4
	.asciz	"%s(%i:%i) port %p format %i:%s"

L_.str.5:                               ## @.str.5
	.asciz	"%s: no component implementation"

	.comm	_MMAL_ENOSYS,4,2                ## @MMAL_ENOSYS
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ## @MMAL_PORT_TYPE_INPUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_format_commit        ; -- Begin function mmal_port_format_commit
	.p2align	2
_mmal_port_format_commit:               ; @mmal_port_format_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x9, [x19, #48]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x8, [x19, #64]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.3:
	ldrsw	x1, [x19, #56]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	str	x8, [x19, #64]
Lloh5:
	adrp	x8, _MMAL_EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_EFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	str	xzr, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_LOG_ERROR
Lloh9:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x9, [x8]
	cbz	x9, LBB0_10
; %bb.9:
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_11:
	add	x0, sp, #24
	mov	w1, #16
	bl	_snprintf
	ldr	x8, [x19, #40]
	ldr	w1, [x8, #16]
	ldr	w2, [x19]
	ldr	w3, [x19, #72]
	ldr	x8, [x19, #64]
	ldr	w5, [x8, #8]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x6, sp, #24
	mov	x4, x19
	bl	_LOG_TRACE
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.12:
	mov	x0, x19
	bl	_LOCK_PORT
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_mmal_port_name_update
	ldp	x9, x8, [x19, #8]
	cmp	x9, x8
	b.ge	LBB0_14
; %bb.13:
	str	x8, [x19, #8]
LBB0_14:
	ldp	x9, x8, [x19, #24]
	cmp	x9, x8
	b.ge	LBB0_16
; %bb.15:
	str	x8, [x19, #24]
LBB0_16:
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.17:
	ldr	x9, [x19, #40]
	ldr	w8, [x9]
	cbz	w8, LBB0_24
; %bb.18:
	ldr	x9, [x9, #8]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_24
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldp	x12, x11, [x10, #8]
	cmp	x12, x11
	b.ge	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	str	x11, [x10, #8]
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	ldp	x12, x11, [x10, #24]
	cmp	x12, x11
	b.ge	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	str	x11, [x10, #24]
	b	LBB0_19
LBB0_24:
	mov	x0, x19
	bl	_UNLOCK_PORT
	b	LBB0_6
LBB0_25:
	ldrsw	x1, [x19, #56]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_LOG_ERROR
Lloh25:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
	b	LBB0_5
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid port (%p/%p)"

	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s: port format has been overwritten, resetting %p to %p"

	.comm	_MMAL_EFAULT,4,2                ; @MMAL_EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"<NO-FORMAT>"

l_.str.3:                               ; @.str.3
	.asciz	"%4.4s"

l_.str.4:                               ; @.str.4
	.asciz	"%s(%i:%i) port %p format %i:%s"

l_.str.5:                               ; @.str.5
	.asciz	"%s: no component implementation"

	.comm	_MMAL_ENOSYS,4,2                ; @MMAL_ENOSYS
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ; @MMAL_PORT_TYPE_INPUT
.subsections_via_symbols
