	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_fsync
_mei_fsync:                             ## @mei_fsync
	.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), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%r15)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movq	16(%r15), %rbx
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_MEI_DEV_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.6:
	movq	%r15, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movq	_MEI_WRITE_COMPLETE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_mei_cl_is_write_queued
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	8(%r15), %ebx
	movq	(%r15), %rcx
	movb	$1, %al
	cmpq	(%r12), %rcx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	sete	%al
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%al, %esi
	movl	%ebx, %edi
	callq	_wait_event_interruptible
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	jne	LBB0_8
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_13:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MEI_DEV_ENABLED,8,3            ## @MEI_DEV_ENABLED
	.comm	_MEI_WRITE_COMPLETE,8,3         ## @MEI_WRITE_COMPLETE
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_mei_fsync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_fsync
_mei_fsync:                             ; @mei_fsync
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	x21, [x20, #16]
	add	x19, x21, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _MEI_DEV_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEI_DEV_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.5:
	mov	x0, x20
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_13
; %bb.6:
Lloh6:
	adrp	x22, _MEI_WRITE_COMPLETE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MEI_WRITE_COMPLETE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mei_cl_is_write_queued
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w21, [x20, #8]
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w1, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_mei_cl_is_connected
	cmp	w0, #0
	cset	w1, eq
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_wait_event_interruptible
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_lock
	cbnz	w21, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_mei_cl_is_connected
	cbnz	w0, LBB0_7
LBB0_13:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x21
	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
LBB0_17:
	mov	w21, #0
	b	LBB0_15
LBB0_18:
Lloh10:
	adrp	x8, _current@GOTPAGE
Lloh11:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_15
; %bb.19:
Lloh13:
	adrp	x8, _EINTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MEI_DEV_ENABLED,8,3            ; @MEI_DEV_ENABLED
	.comm	_MEI_WRITE_COMPLETE,8,3         ; @MEI_WRITE_COMPLETE
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_mei_fsync
.subsections_via_symbols
