	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_m2m_shutdown
_fimc_m2m_shutdown:                     ## @fimc_m2m_shutdown
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_fimc_m2m_pending
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_FIMC_CTX_SHUT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_fimc_ctx_state_set
	movl	(%r14), %r14d
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_fimc_ctx_state_is_set
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	_FIMC_SHUTDOWN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_event_timeout             ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_CTX_SHUT,4,2              ## @FIMC_CTX_SHUT
	.comm	_FIMC_SHUTDOWN_TIMEOUT,4,2      ## @FIMC_SHUTDOWN_TIMEOUT
	.no_dead_strip	_fimc_m2m_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_m2m_shutdown
_fimc_m2m_shutdown:                     ; @fimc_m2m_shutdown
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
	mov	x0, x20
	bl	_fimc_m2m_pending
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _FIMC_CTX_SHUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FIMC_CTX_SHUT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_fimc_ctx_state_set
	ldr	w20, [x20]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_fimc_ctx_state_is_set
	cmp	w0, #0
	cset	w1, eq
Lloh2:
	adrp	x8, _FIMC_SHUTDOWN_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIMC_SHUTDOWN_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wait_event_timeout
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_CTX_SHUT,4,2              ; @FIMC_CTX_SHUT
	.comm	_FIMC_SHUTDOWN_TIMEOUT,4,2      ; @FIMC_SHUTDOWN_TIMEOUT
	.no_dead_strip	_fimc_m2m_shutdown
.subsections_via_symbols
