	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_vc_port_flush_normal
_mmal_vc_port_flush_normal:             ## @mmal_vc_port_flush_normal
	.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), %rax
	movq	(%rax), %rax
	movq	$8, -24(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -28(%rbp)
	movq	_MMAL_WORKER_PORT_ACTION_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -32(%rbp)
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	xorl	%eax, %eax
	callq	_mmal_vc_get_client
	movq	_MMAL_WORKER_PORT_ACTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MMAL_FALSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rsp)
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %r8
	leaq	-24(%rbp), %r9
	movl	%eax, %edi
	movl	$16, %edx
	callq	_mmal_vc_sendwait_message
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$8, -24(%rbp)
	sete	%dil
	callq	_vcos_assert
	movq	-48(%rbp), %rbx
	movq	(%r14), %rax
LBB0_2:
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LOG_ERROR
LBB0_4:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_WORKER_PORT_ACTION_FLUSH,4,2 ## @MMAL_WORKER_PORT_ACTION_FLUSH
	.comm	_MMAL_WORKER_PORT_ACTION,4,2    ## @MMAL_WORKER_PORT_ACTION
	.comm	_MMAL_FALSE,4,2                 ## @MMAL_FALSE
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable port - reason %d"

	.no_dead_strip	_mmal_vc_port_flush_normal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_vc_port_flush_normal
_mmal_vc_port_flush_normal:             ; @mmal_vc_port_flush_normal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w9, #8
	str	x9, [sp]
Lloh0:
	adrp	x9, _MMAL_WORKER_PORT_ACTION_FLUSH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_WORKER_PORT_ACTION_FLUSH@GOTPAGEOFF]
	ldr	w10, [x8, #4]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w10, [sp, #16]
	ldr	w8, [x8]
	str	w8, [sp, #12]
	bl	_mmal_vc_get_client
Lloh3:
	adrp	x8, _MMAL_WORKER_PORT_ACTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_WORKER_PORT_ACTION@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	add	x1, sp, #8
	add	x4, sp, #24
	mov	x5, sp
	mov	w2, #16
	bl	_mmal_vc_sendwait_message
Lloh9:
	adrp	x20, _MMAL_SUCCESS@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp]
	cmp	x8, #8
	cset	w0, eq
	bl	_vcos_assert
	ldr	x19, [sp, #24]
	ldr	x8, [x20]
	cmp	x19, x8
	b.ne	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	cmp	x19, x8
	b.eq	LBB0_4
LBB0_3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_LOG_ERROR
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_WORKER_PORT_ACTION_FLUSH,4,2 ; @MMAL_WORKER_PORT_ACTION_FLUSH
	.comm	_MMAL_WORKER_PORT_ACTION,4,2    ; @MMAL_WORKER_PORT_ACTION
	.comm	_MMAL_FALSE,4,2                 ; @MMAL_FALSE
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable port - reason %d"

	.no_dead_strip	_mmal_vc_port_flush_normal
.subsections_via_symbols
