	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meyeioc_sync
_meyeioc_sync:                          ## @meyeioc_sync
	.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
	movl	(%rdx), %eax
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_gbuffers@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_2
## %bb.4:
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	_meye@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r14), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,8), %edx
	cmpl	$128, %edx
	je	LBB0_8
## %bb.5:
	cmpl	$130, %edx
	je	LBB0_12
## %bb.6:
	cmpl	$129, %edx
	jne	LBB0_13
## %bb.7:
	movq	_meye@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	_meye@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movl	24(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_wait_event_interruptible
	testl	%eax, %eax
	je	LBB0_11
## %bb.15:
	movq	_meye@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_EINTR@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_11:
	movq	8(%r14), %rax
	movslq	(%r15), %rcx
LBB0_12:
	movl	$129, (%rax,%rcx,8)
	leaq	20(%r14), %rdi
	leaq	16(%r14), %rcx
	leaq	-28(%rbp), %rsi
	movl	$4, %edx
	callq	_kfifo_out_locked
	movq	8(%r14), %rax
	movslq	(%r15), %rcx
LBB0_13:
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, (%r15)
	movq	_meye@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gbuffers,4,2                   ## @gbuffers
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_meye,32,3                      ## @meye
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_meyeioc_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meyeioc_sync
_meyeioc_sync:                          ; @meyeioc_sync
	.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
	ldr	w8, [x2]
	tbnz	w8, #31, LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, _gbuffers@GOTPAGE
Lloh1:
	ldr	x9, [x9, _gbuffers@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.2:
	mov	x19, x2
	mov	x21, x0
Lloh3:
	adrp	x20, _meye@GOTPAGE
Lloh4:
	ldr	x20, [x20, _meye@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19]
	lsl	x10, x9, #3
	ldr	w10, [x8, x10]
	cmp	w10, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w10, #130
	b.eq	LBB0_13
; %bb.4:
	cmp	w10, #129
	b.ne	LBB0_14
; %bb.5:
Lloh5:
	adrp	x0, _meye@GOTPAGE
Lloh6:
	ldr	x0, [x0, _meye@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_8:
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh12:
	adrp	x0, _meye@GOTPAGE
Lloh13:
	ldr	x0, [x0, _meye@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	ldr	w0, [x20, #24]
	mov	w1, #0
	bl	_wait_event_interruptible
	cbz	w0, LBB0_12
; %bb.11:
Lloh16:
	adrp	x0, _meye@GOTPAGE
Lloh17:
	ldr	x0, [x0, _meye@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh18:
	adrp	x8, _EINTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_7
LBB0_12:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19]
LBB0_13:
	lsl	x9, x9, #3
	mov	w10, #129
	str	w10, [x8, x9]
	add	x0, x20, #20
	add	x3, x20, #16
	add	x1, sp, #12
	mov	w2, #4
	bl	_kfifo_out_locked
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19]
LBB0_14:
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	str	w8, [x19]
Lloh20:
	adrp	x0, _meye@GOTPAGE
Lloh21:
	ldr	x0, [x0, _meye@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_gbuffers,4,2                   ; @gbuffers
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_meye,32,3                      ; @meye
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_meyeioc_sync
.subsections_via_symbols
