	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scheduler_event_process
_scheduler_event_process:               ## @scheduler_event_process
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_MMAL_EVENT_FORMAT_CHANGED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_mmal_event_format_changed_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	20(%r14), %edi
	movl	(%rax), %esi
	callq	_mmal_format_full_copy
	movq	%rax, %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_mmal_port_format_commit
	movq	%rax, %r12
	movq	(%r13), %rbx
LBB0_4:
	cmpq	%rbx, %r12
	je	LBB0_8
## %bb.5:
	movslq	16(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	%r12, %rbx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_LOG_DEBUG
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_mmal_event_forward
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_8:
	movq	$0, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mmal_port_buffer_header_callback
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.comm	_MMAL_EVENT_FORMAT_CHANGED,8,3  ## @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format commit failed on port %s (%i)"

L_.str.1:                               ## @.str.1
	.asciz	"forwarding unknown event %4.4s"

L_.str.2:                               ## @.str.2
	.asciz	"unable to forward event %4.4s"

	.no_dead_strip	_scheduler_event_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scheduler_event_process
_scheduler_event_process:               ; @scheduler_event_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_mmal_event_format_changed_get
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x20, #20]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_mmal_format_full_copy
Lloh6:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x23]
	cmp	x0, x21
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_mmal_port_format_commit
	mov	x22, x0
	ldr	x21, [x23]
	cmp	x22, x21
	b.ne	LBB0_7
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_LOG_DEBUG
	ldp	x9, x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_mmal_event_forward
	mov	x21, x0
Lloh10:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_LOG_ERROR
	b	LBB0_8
LBB0_6:
	mov	x22, x0
	cmp	x22, x21
	b.eq	LBB0_8
LBB0_7:
	ldrsw	x1, [x20, #16]
	str	x22, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	mov	x21, x22
LBB0_8:
	str	xzr, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_mmal_port_buffer_header_callback
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.comm	_MMAL_EVENT_FORMAT_CHANGED,8,3  ; @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format commit failed on port %s (%i)"

l_.str.1:                               ; @.str.1
	.asciz	"forwarding unknown event %4.4s"

l_.str.2:                               ; @.str.2
	.asciz	"unable to forward event %4.4s"

	.no_dead_strip	_scheduler_event_process
.subsections_via_symbols
