	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meyeioc_stilljcapt
_meyeioc_stilljcapt:                    ## @meyeioc_stilljcapt
	.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	_meye@GOTPCREL(%rip), %r14
	cmpl	$0, 16(%r14)
	je	LBB0_1
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_MEYE_BUF_UNUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%rdi, %rbx
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_MEYE_BUF_USING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$-1, (%rbx)
	movq	_gbufsize@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_mchip_take_picture
	movl	16(%r14), %edi
	movl	(%r15), %esi
	callq	_mchip_compress_frame
	movl	%eax, (%rbx)
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	_MEYE_BUF_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_meye,24,3                      ## @meye
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEYE_BUF_UNUSED,8,3            ## @MEYE_BUF_UNUSED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MEYE_BUF_USING,8,3             ## @MEYE_BUF_USING
	.comm	_gbufsize,4,2                   ## @gbufsize
	.comm	_MEYE_BUF_DONE,8,3              ## @MEYE_BUF_DONE
	.no_dead_strip	_meyeioc_stilljcapt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meyeioc_stilljcapt
_meyeioc_stilljcapt:                    ; @meyeioc_stilljcapt
	.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
Lloh0:
	adrp	x19, _meye@GOTPAGE
Lloh1:
	ldr	x19, [x19, _meye@GOTPAGEOFF]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _MEYE_BUF_UNUSED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEYE_BUF_UNUSED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
Lloh5:
	adrp	x8, _MEYE_BUF_USING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEYE_BUF_USING@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9]
	mov	w8, #-1
	str	w8, [x20]
Lloh8:
	adrp	x21, _gbufsize@GOTPAGE
Lloh9:
	ldr	x21, [x21, _gbufsize@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_mchip_take_picture
	ldr	w0, [x19, #16]
	ldr	w1, [x21]
	bl	_mchip_compress_frame
	str	w0, [x20]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.4:
Lloh10:
	adrp	x8, _MEYE_BUF_DONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MEYE_BUF_DONE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_meye,24,3                      ; @meye
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEYE_BUF_UNUSED,8,3            ; @MEYE_BUF_UNUSED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MEYE_BUF_USING,8,3             ; @MEYE_BUF_USING
	.comm	_gbufsize,4,2                   ; @gbufsize
	.comm	_MEYE_BUF_DONE,8,3              ; @MEYE_BUF_DONE
	.no_dead_strip	_meyeioc_stilljcapt
.subsections_via_symbols
