	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_poll
_mei_poll:                              ## @mei_poll
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_poll_requested_events
	movl	%eax, %r12d
	movq	(%r15), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 40(%r13)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_19
LBB0_5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %r14
	leaq	16(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$0, 36(%r13)
	setne	%bl
	movq	_EPOLLPRI@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	setne	%dl
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	_MEI_DEV_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movl	%edx, %r14d
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	andb	%r14b, %dl
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.9:
	leaq	32(%r13), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	xorl	%r12d, %r12d
	cmpq	$0, 24(%r13)
	je	LBB0_11
## %bb.10:
	movq	_EPOLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	movq	_EPOLLIN@GOTPCREL(%rip), %rcx
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%rcx), %eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_15
## %bb.12:
	leaq	16(%r13), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	leaq	12(%r13), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	%r13, %rdi
	callq	_mei_cl_mtu
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_mei_cl_read_start
	jmp	LBB0_15
LBB0_7:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	orl	(%rbx), %r12d
LBB0_15:
	movq	_EPOLLOUT@GOTPCREL(%rip), %rbx
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rbx), %eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_18
## %bb.16:
	leaq	8(%r13), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rax
	jge	LBB0_18
## %bb.17:
	orl	(%rbx), %r12d
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
	.comm	_MEI_DEV_ENABLED,8,3            ## @MEI_DEV_ENABLED
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ## @EPOLLWRNORM
	.no_dead_strip	_mei_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_poll
_mei_poll:                              ; @mei_poll
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_poll_requested_events
	mov	x23, x0
	ldr	x22, [x21]
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x8, [x22, #40]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	b	LBB0_10
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	x25, [x22, #40]
	add	x20, x25, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x22, #36]
Lloh3:
	adrp	x24, _EPOLLPRI@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EPOLLPRI@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w23
	ccmp	w8, #0, #4, ne
	cset	w26, ne
	ldr	x8, [x25]
Lloh5:
	adrp	x9, _MEI_DEV_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEI_DEV_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_8
; %bb.6:
	cbz	w26, LBB0_11
; %bb.7:
	add	x1, x22, #32
	mov	x0, x21
	mov	x2, x19
	bl	_poll_wait
	ldr	x8, [x22, #24]
	ldr	w9, [x24]
	cmp	x8, #0
	csel	w24, wzr, w9, eq
	b	LBB0_12
LBB0_8:
Lloh8:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w24, #0
LBB0_12:
Lloh11:
	adrp	x26, _EPOLLIN@GOTPAGE
Lloh12:
	ldr	x26, [x26, _EPOLLIN@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh13:
	adrp	x27, _EPOLLRDNORM@GOTPAGE
Lloh14:
	ldr	x27, [x27, _EPOLLRDNORM@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w9, w8
	tst	w8, w23
	b.eq	LBB0_16
; %bb.13:
	add	x1, x22, #16
	mov	x0, x21
	mov	x2, x19
	bl	_poll_wait
	add	x0, x22, #12
	bl	_list_empty
	cbz	w0, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_mei_cl_mtu
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_mei_cl_read_start
	b	LBB0_16
LBB0_15:
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w8, w24
	orr	w24, w8, w9
LBB0_16:
Lloh15:
	adrp	x26, _EPOLLOUT@GOTPAGE
Lloh16:
	ldr	x26, [x26, _EPOLLOUT@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh17:
	adrp	x27, _EPOLLWRNORM@GOTPAGE
Lloh18:
	ldr	x27, [x27, _EPOLLWRNORM@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w9, w8
	tst	w8, w23
	b.eq	LBB0_9
; %bb.17:
	add	x1, x22, #8
	mov	x0, x21
	mov	x2, x19
	bl	_poll_wait
	ldr	x8, [x22]
	ldr	x9, [x25, #8]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.18:
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w8, w24
	orr	w24, w8, w9
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
	.comm	_MEI_DEV_ENABLED,8,3            ; @MEI_DEV_ENABLED
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ; @EPOLLWRNORM
	.no_dead_strip	_mei_poll
.subsections_via_symbols
