	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_capture_resume            ## -- Begin function fimc_capture_resume
	.p2align	4, 0x90
_fimc_capture_resume:                   ## @fimc_capture_resume
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ST_CAPT_SUSPENDED@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leaq	28(%r14), %r15
	leaq	24(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 16(%r14)
	movq	_open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_fimc_pipeline_call
	movq	%r14, %rdi
	callq	_fimc_capture_hw_init
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	cmpl	$0, 8(%r14)
	jle	LBB0_5
## %bb.2:
	leaq	8(%r14), %r15
	addq	$12, %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_fimc_pending_queue_pop
	movq	%rax, %rdi
	callq	_buffer_queue
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_CAPT_SUSPENDED,4,2          ## @ST_CAPT_SUSPENDED
	.comm	_open,4,2                       ## @open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_capture_resume            ; -- Begin function fimc_capture_resume
	.p2align	2
_fimc_capture_resume:                   ; @fimc_capture_resume
	.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
Lloh0:
	adrp	x21, _ST_CAPT_SUSPENDED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ST_CAPT_SUSPENDED@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_and_clear_bit
	cbz	w0, LBB0_5
; %bb.1:
	add	x20, x19, #28
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	str	xzr, [x19, #16]
Lloh2:
	adrp	x8, _open@GOTPAGE
Lloh3:
	ldr	x8, [x8, _open@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x20
	mov	w3, #0
	bl	_fimc_pipeline_call
	mov	x0, x19
	bl	_fimc_capture_hw_init
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w21, #0
	add	x20, x19, #8
	add	x19, x19, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_list_empty
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_fimc_pending_queue_pop
	bl	_buffer_queue
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_3
LBB0_5:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_CAPT_SUSPENDED,4,2          ; @ST_CAPT_SUSPENDED
	.comm	_open,4,2                       ; @open
.subsections_via_symbols
