	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scheduler_input_port_format_commit
_scheduler_input_port_format_commit:    ## @scheduler_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, %rbx
	movq	32(%rdi), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	cmpl	$0, 28(%rdi)
	je	LBB0_7
## %bb.1:
	movq	_MMAL_EVENT_FORMAT_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	callq	_mmal_port_event_get
	movq	%rax, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_2
## %bb.3:
	movq	-40(%rbp), %rdi
	callq	_mmal_event_format_changed_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	16(%rax), %edi
	movl	24(%rbx), %esi
	callq	_mmal_format_copy
	movups	8(%rbx), %xmm0
	movups	%xmm0, (%r15)
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	-40(%rbp), %rsi
	callq	_mmal_port_event_send
	jmp	LBB0_6
LBB0_7:
	movl	24(%rdi), %edi
	movl	24(%rbx), %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_format_full_copy          ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	jmp	LBB0_6
LBB0_4:
	movq	-40(%rbp), %rdi
	callq	_mmal_buffer_header_release
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_6:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EVENT_FORMAT_CHANGED,4,2  ## @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get an event buffer"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set format"

	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.no_dead_strip	_scheduler_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 scheduler_input_port_format_commit
_scheduler_input_port_format_commit:    ; @scheduler_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	x22, [x0, #32]
	ldr	x8, [x22]
	ldr	x0, [x8]
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_mmal_port_event_get
	mov	x19, x0
Lloh3:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_mmal_event_format_changed_get
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x20, #24]
	bl	_mmal_format_copy
	ldur	q0, [x20, #8]
	str	q0, [x21]
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x1, [sp, #8]
	bl	_mmal_port_event_send
	b	LBB0_7
LBB0_4:
	ldr	w0, [x0, #24]
	ldr	w1, [x20, #24]
	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_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_mmal_buffer_header_release
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
Lloh10:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x8]
LBB0_7:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EVENT_FORMAT_CHANGED,4,2  ; @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get an event buffer"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set format"

	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.no_dead_strip	_scheduler_input_port_format_commit
.subsections_via_symbols
