	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_txe_fw_status
_mei_txe_fw_status:                     ## @mei_txe_fw_status
	.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	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	_mei_txe_fw_sts@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.3:
	movq	_MEI_FW_STATUS_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.4:
	movl	$1, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r14), %esi
	movq	8(%r12), %rdx
	addq	%r14, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_read_config_dword
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	8(%r13), %rax
	movl	(%rax,%r14), %edx
	movq	8(%r12), %rax
	movl	(%rax,%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_trace_mei_pci_cfg_read
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r13), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %r15
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r14
	leaq	1(%r15), %rax
	movq	_MEI_FW_STATUS_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r15
	movq	%rax, %r15
	jl	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mei_txe_fw_sts,16,3            ## @mei_txe_fw_sts
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEI_FW_STATUS_MAX,4,2          ## @MEI_FW_STATUS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI_CFG_HSF_X"

	.no_dead_strip	_mei_txe_fw_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_txe_fw_status
_mei_txe_fw_status:                     ; @mei_txe_fw_status
	.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	x20, x0
	ldr	w0, [x0]
	bl	_to_pci_dev
	cbz	x19, LBB0_6
; %bb.1:
Lloh0:
	adrp	x24, _mei_txe_fw_sts@GOTPAGE
Lloh1:
	ldr	x24, [x24, _mei_txe_fw_sts@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x19]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _MEI_FW_STATUS_MAX@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MEI_FW_STATUS_MAX@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, #1
	ccmp	w9, #1, #8, ge
	b.lt	LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x26, #0
	mov	w27, #1
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	w1, [x8, x26]
	ldr	x8, [x19, #8]
	add	x2, x8, x26
	mov	x0, x21
	bl	_pci_read_config_dword
	mov	x23, x0
	ldr	w0, [x20]
	ldr	x8, [x24, #8]
	ldr	w2, [x8, x26]
	ldr	x8, [x19, #8]
	ldr	w3, [x8, x26]
	mov	x1, x22
	bl	_trace_mei_pci_cfg_read
	cbnz	w23, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x24]
	ldrsw	x9, [x25]
	add	x26, x26, #4
	cmp	x27, x8
	ccmp	x27, x9, #0, lt
	add	x27, x27, #1
	b.lt	LBB0_3
LBB0_5:
	mov	w23, #0
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mei_txe_fw_sts,16,3            ; @mei_txe_fw_sts
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEI_FW_STATUS_MAX,4,2          ; @MEI_FW_STATUS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI_CFG_HSF_X"

	.no_dead_strip	_mei_txe_fw_status
.subsections_via_symbols
