	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_txe_read
_mei_txe_read:                          ## @mei_txe_read
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_to_txe_hw
	movq	%rax, %r14
	testq	%rbx, %rbx
	sete	%al
	testq	%r12, %r12
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	andl	$3, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mei_txe_out_data_read
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_dev_dbg
	movq	_MEI_SLOT_SIZE@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	cmpq	%r12, (%rax)
	jbe	LBB0_4
## %bb.3:
                                        ## implicit-def: $r12
	movl	$1, %esi
	jmp	LBB0_10
LBB0_4:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rbx
	leaq	1(%r14), %rsi
	cmpq	%rax, %r14
	movq	%rsi, %r14
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r14), %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mei_txe_out_data_read
	movq	%rax, %r12
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_dev_dbg
	movq	%r12, (%rbx)
	movq	_MEI_SLOT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_10:
	movq	%r12, -56(%rbp)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_mei_txe_out_data_read
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_memcpy
LBB0_12:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mei_txe_output_ready_set
	xorl	%eax, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer-length = %lu buf[0]0x%08X\n"

	.comm	_MEI_SLOT_SIZE,8,3              ## @MEI_SLOT_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"buf[%d] = 0x%08X\n"

	.no_dead_strip	_mei_txe_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_txe_read
_mei_txe_read:                          ; @mei_txe_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x2
	mov	x19, x1
	mov	x21, x0
	bl	_to_txe_hw
	mov	x20, x0
	cmp	x19, #0
	ccmp	x23, #0, #4, ne
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	and	x22, x23, #0x3
	ldr	w24, [x21]
	mov	x0, x21
	mov	x1, #0
	bl	_mei_txe_out_data_read
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	bl	_dev_dbg
Lloh5:
	adrp	x28, _MEI_SLOT_SIZE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _MEI_SLOT_SIZE@GOTPAGEOFF]
	ldr	x8, [x28]
	mov	w1, #1
	cmp	x8, x23
	b.ls	LBB0_4
; %bb.3:
                                        ; implicit-def: $x24
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x25, l_.str.1@PAGE
Lloh8:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x1
	sub	x27, x1, #1
	mov	x0, x21
	bl	_mei_txe_out_data_read
	mov	x24, x0
	ldr	w0, [x21]
	mov	x1, x25
	mov	x2, x27
	mov	x3, x24
	bl	_dev_dbg
	str	x24, [x19], #8
	ldr	x8, [x28]
	udiv	x8, x23, x8
	add	x1, x26, #1
	cmp	x26, x8
	b.lo	LBB0_5
LBB0_6:
	str	x24, [sp, #8]
	cbz	x22, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_mei_txe_out_data_read
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_memcpy
LBB0_8:
	mov	x0, x20
	bl	_mei_txe_output_ready_set
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer-length = %lu buf[0]0x%08X\n"

	.comm	_MEI_SLOT_SIZE,8,3              ; @MEI_SLOT_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"buf[%d] = 0x%08X\n"

	.no_dead_strip	_mei_txe_read
.subsections_via_symbols
