	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_me_hw_config
_mei_me_hw_config:                      ## @mei_me_hw_config
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_me_hw
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mei_hcsr_read
	movq	_H_CBD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sarl	$24, %eax
	movl	%eax, (%r14)
	movl	$0, -36(%rbp)
	movq	_PCI_CFG_HFS_1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movl	-36(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_trace_mei_pci_cfg_read
	movq	_PCI_CFG_HFS_1_D0I3_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-36(%rbp), %ecx
	andl	%eax, %ecx
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	sete	%dl
	movl	%edx, 4(%r14)
	movq	_MEI_PG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_mei_me_d0i3c_read
	movq	_H_D0I3C_I3@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_MEI_PG_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_CBD,4,2                      ## @H_CBD
	.comm	_PCI_CFG_HFS_1,4,2              ## @PCI_CFG_HFS_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI_CFG_HFS_1"

	.comm	_PCI_CFG_HFS_1_D0I3_MSK,4,2     ## @PCI_CFG_HFS_1_D0I3_MSK
	.comm	_MEI_PG_OFF,4,2                 ## @MEI_PG_OFF
	.comm	_H_D0I3C_I3,4,2                 ## @H_D0I3C_I3
	.comm	_MEI_PG_ON,4,2                  ## @MEI_PG_ON
	.no_dead_strip	_mei_me_hw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_me_hw_config
_mei_me_hw_config:                      ; @mei_me_hw_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_pci_dev
	mov	x21, x0
	mov	x0, x20
	bl	_to_me_hw
	mov	x19, x0
	mov	x0, x20
	bl	_mei_hcsr_read
Lloh0:
	adrp	x8, _H_CBD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H_CBD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w8, w8, #24
	str	w8, [x19]
	str	wzr, [sp, #12]
Lloh3:
	adrp	x22, _PCI_CFG_HFS_1@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCI_CFG_HFS_1@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x21
	bl	_pci_read_config_dword
	ldr	w0, [x20]
	ldr	w2, [x22]
	ldr	w3, [sp, #12]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_trace_mei_pci_cfg_read
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x9, _PCI_CFG_HFS_1_D0I3_MSK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PCI_CFG_HFS_1_D0I3_MSK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, w9
	cset	w8, eq
Lloh10:
	adrp	x9, _MEI_PG_OFF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MEI_PG_OFF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #4]
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_mei_me_d0i3c_read
Lloh13:
	adrp	x8, _H_D0I3C_I3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _H_D0I3C_I3@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh16:
	adrp	x8, _MEI_PG_ON@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MEI_PG_ON@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_H_CBD,4,2                      ; @H_CBD
	.comm	_PCI_CFG_HFS_1,4,2              ; @PCI_CFG_HFS_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI_CFG_HFS_1"

	.comm	_PCI_CFG_HFS_1_D0I3_MSK,4,2     ; @PCI_CFG_HFS_1_D0I3_MSK
	.comm	_MEI_PG_OFF,4,2                 ; @MEI_PG_OFF
	.comm	_H_D0I3C_I3,4,2                 ; @H_D0I3C_I3
	.comm	_MEI_PG_ON,4,2                  ; @MEI_PG_ON
	.no_dead_strip	_mei_me_hw_config
.subsections_via_symbols
