	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_input_port_format_commit
_copy_input_port_format_commit:         ## @copy_input_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	48(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	40(%rdi), %edi
	movl	40(%rbx), %esi
	callq	_mmal_format_compare
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%rbx), %r15
	cmpq	8(%rbx), %r15
	jne	LBB0_4
## %bb.2:
	movq	(%r14), %rdi
	movq	16(%r14), %rsi
	callq	_MMAL_MAX
	cmpq	%rax, %r15
	jne	LBB0_4
## %bb.3:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_8
LBB0_4:
	cmpl	$0, 44(%rbx)
	je	LBB0_9
## %bb.5:
	movq	_MMAL_EVENT_FORMAT_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mmal_port_event_get
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_6
## %bb.7:
	movq	-40(%rbp), %rdi
	callq	_mmal_event_format_changed_get
	movq	%rax, %r12
	movl	24(%rax), %edi
	movl	40(%r14), %esi
	callq	_mmal_format_copy
	movl	36(%rbx), %eax
	movl	%eax, 20(%r12)
	movl	32(%rbx), %eax
	movl	%eax, 16(%r12)
	movq	(%r14), %rdi
	movq	16(%r14), %rsi
	callq	_MMAL_MAX
	movq	%rax, (%r12)
	movq	%rax, 8(%r12)
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mmal_port_event_send
	jmp	LBB0_8
LBB0_9:
	movq	(%r14), %rsi
	movq	16(%r14), %rdi
	callq	_MMAL_MAX
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movl	40(%rbx), %edi
	movl	40(%r14), %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_format_full_copy          ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
LBB0_8:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_EVENT_FORMAT_CHANGED,4,2  ## @MMAL_EVENT_FORMAT_CHANGED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get an event buffer"

	.no_dead_strip	_copy_input_port_format_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_input_port_format_commit
_copy_input_port_format_commit:         ; @copy_input_port_format_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x8, [x0, #48]
	ldr	x8, [x8]
	ldr	x19, [x8]
	ldr	w0, [x0, #40]
	ldr	w1, [x19, #40]
	bl	_mmal_format_compare
	cbnz	w0, LBB0_4
; %bb.1:
	ldp	x21, x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [x20]
	ldr	x1, [x20, #16]
	bl	_MMAL_MAX
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mmal_port_event_get
	mov	x21, x0
Lloh6:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_mmal_event_format_changed_get
	mov	x22, x0
	ldr	w0, [x0, #24]
	ldr	w1, [x20, #40]
	bl	_mmal_format_copy
	ldr	d0, [x19, #32]
	str	d0, [x22, #16]
	ldr	x0, [x20]
	ldr	x1, [x20, #16]
	bl	_MMAL_MAX
	stp	x0, x0, [x22]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_mmal_port_event_send
	b	LBB0_9
LBB0_7:
	ldr	x0, [x20, #16]
	ldr	x1, [x20]
	bl	_MMAL_MAX
	stp	x0, x0, [x19]
	ldr	w0, [x19, #40]
	ldr	w1, [x20, #40]
	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
	add	sp, sp, #64
	b	_mmal_format_full_copy
LBB0_8:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_EVENT_FORMAT_CHANGED,4,2  ; @MMAL_EVENT_FORMAT_CHANGED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get an event buffer"

	.no_dead_strip	_copy_input_port_format_commit
.subsections_via_symbols
