	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_write_is_idle              ## -- Begin function mei_write_is_idle
	.p2align	4, 0x90
_mei_write_is_idle:                     ## @mei_write_is_idle
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MEI_DEV_ENABLED@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	12(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	8(%rbx), %rdi
	callq	_list_empty
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_4:
	movl	20(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rdi
	callq	_mei_dev_state_str
	movl	%eax, %r12d
	leaq	16(%rbx), %rdi
	callq	_list_empty
	movq	%rax, %r13
	leaq	12(%rbx), %rdi
	callq	_list_empty
	movq	%rax, %r14
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_dev_dbg
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_DEV_ENABLED,8,3            ## @MEI_DEV_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write pg: is idle[%d] state=%s ctrl=%01d write=%01d wwait=%01d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_write_is_idle              ; -- Begin function mei_write_is_idle
	.p2align	2
_mei_write_is_idle:                     ; @mei_write_is_idle
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MEI_DEV_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEI_DEV_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	add	x0, x19, #16
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, x19, #12
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x19, #8
	bl	_list_empty
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	ldr	w21, [x19, #20]
	ldr	x0, [x19]
	bl	_mei_dev_state_str
	mov	x22, x0
	add	x0, x19, #16
	bl	_list_empty
	mov	x23, x0
	add	x0, x19, #12
	bl	_list_empty
	mov	x24, x0
	add	x0, x19, #8
	bl	_list_empty
	mov	x6, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_dev_dbg
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_DEV_ENABLED,8,3            ; @MEI_DEV_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write pg: is idle[%d] state=%s ctrl=%01d write=%01d wwait=%01d\n"

.subsections_via_symbols
