	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_flush
_merge_flush:                           ## @merge_flush
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_trace
	movq	(%rbx), %rax
	movq	_CLIENT_MAKE_CURRENT_SIZE@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setge	%dil
	callq	_vcos_assert
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jle	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rpc_begin
	movl	8(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -40(%rbp)
	movq	%rbx, %rdi
	callq	_get_handle
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_vchiq_queue_message
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_UNUSED_NDEBUG
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	sete	%dil
	callq	_vcos_assert
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_client_send_make_current
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_vcos_assert
	movq	%rbx, %rdi
	callq	_rpc_end
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_vcos_log_trace
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"merge_flush start"

	.comm	_CLIENT_MAKE_CURRENT_SIZE,8,3   ## @CLIENT_MAKE_CURRENT_SIZE
	.comm	_VCHIQ_SUCCESS,8,3              ## @VCHIQ_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"merge_flush end"

	.no_dead_strip	_merge_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_flush
_merge_flush:                           ; @merge_flush
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_trace
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _CLIENT_MAKE_CURRENT_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CLIENT_MAKE_CURRENT_SIZE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, ge
	bl	_vcos_assert
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rpc_begin
	ldr	w8, [x19, #8]
	str	w8, [sp, #8]
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x0, x19
	bl	_get_handle
	mov	x1, sp
	mov	w2, #1
	bl	_vchiq_queue_message
	mov	x20, x0
	bl	_UNUSED_NDEBUG
Lloh4:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x20, x8
	cset	w0, eq
	bl	_vcos_assert
	str	xzr, [x19]
	mov	x0, x19
	bl	_client_send_make_current
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_vcos_assert
	mov	x0, x19
	bl	_rpc_end
LBB0_2:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_trace
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"merge_flush start"

	.comm	_CLIENT_MAKE_CURRENT_SIZE,8,3   ; @CLIENT_MAKE_CURRENT_SIZE
	.comm	_VCHIQ_SUCCESS,8,3              ; @VCHIQ_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"merge_flush end"

	.no_dead_strip	_merge_flush
.subsections_via_symbols
