	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_me_hw_reset
_mei_me_hw_reset:                       ## @mei_me_hw_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_to_me_hw
	movq	%rax, %r14
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_mei_me_intr_enable
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_mei_me_d0i3_exit_sync
	testl	%eax, %eax
	jne	LBB0_13
LBB0_3:
	movl	4(%r12), %edi
	callq	_pm_runtime_set_active
	movq	%r12, %rdi
	callq	_mei_hcsr_read
	movl	%eax, %ebx
	movq	_H_RST@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%ebx, %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_5
## %bb.4:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mei_hcsr_set
	movq	%r12, %rdi
	callq	_mei_hcsr_read
	movl	%eax, %ebx
	movl	(%r13), %eax
LBB0_5:
	orl	%ebx, %eax
	movq	_H_IG@GOTPCREL(%rip), %rcx
	movq	_H_CSR_IS_MASK@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_H_CSR_IE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	movl	%r15d, %edx
	negl	%edx
	sbbl	%esi, %esi
	notl	%ecx
	orl	%ecx, %esi
	andl	%eax, %esi
	movl	$0, (%r12)
	movq	%r12, %rdi
	callq	_mei_hcsr_write
	movq	%r12, %rdi
	callq	_mei_hcsr_read
	movl	%eax, %ebx
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.6:
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_7:
	movq	_H_RDY@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_9
## %bb.8:
	movl	4(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_10
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	callq	_mei_me_hw_reset_release
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_mei_me_d0i3_enter
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_H_RST,4,2                      ## @H_RST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"H_RST is set = 0x%08X"

	.comm	_H_IG,4,2                       ## @H_IG
	.comm	_H_CSR_IS_MASK,4,2              ## @H_CSR_IS_MASK
	.comm	_H_CSR_IE_MASK,4,2              ## @H_CSR_IE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"H_RST is not set = 0x%08X"

	.comm	_H_RDY,4,2                      ## @H_RDY
L_.str.2:                               ## @.str.2
	.asciz	"H_RDY is not cleared 0x%08X"

	.no_dead_strip	_mei_me_hw_reset
.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_reset
_mei_me_hw_reset:                       ; @mei_me_hw_reset
	.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	x21, x1
	mov	x19, x0
	bl	_to_me_hw
	mov	x20, x0
	cbz	w21, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_mei_me_intr_enable
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mei_me_d0i3_exit_sync
	cbnz	w0, LBB0_11
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_mei_hcsr_read
	mov	x22, x0
Lloh0:
	adrp	x23, _H_RST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _H_RST@GOTPAGEOFF]
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
	ldr	w8, [x23]
	bic	w1, w22, w8
	mov	x0, x19
	bl	_mei_hcsr_set
	mov	x0, x19
	bl	_mei_hcsr_read
	mov	x22, x0
	ldr	w8, [x23]
LBB0_5:
Lloh4:
	adrp	x9, _H_IG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _H_IG@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _H_CSR_IS_MASK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _H_CSR_IS_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w8, w8, w10
Lloh10:
	adrp	x9, _H_CSR_IE_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _H_CSR_IE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w21, #0
	mov	w10, #-1
	csinv	w9, w10, w9, ne
	and	w1, w8, w9
	str	wzr, [x19]
	mov	x0, x19
	bl	_mei_hcsr_write
	mov	x0, x19
	bl	_mei_hcsr_read
	mov	x22, x0
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
LBB0_7:
Lloh15:
	adrp	x8, _H_RDY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H_RDY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bics	wzr, w8, w22
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
LBB0_9:
	cbz	w21, LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
LBB0_12:
	mov	x0, x19
	bl	_mei_me_hw_reset_release
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.13:
	mov	x0, x19
	bl	_mei_me_d0i3_enter
	cbnz	w0, LBB0_11
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_H_RST,4,2                      ; @H_RST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"H_RST is set = 0x%08X"

	.comm	_H_IG,4,2                       ; @H_IG
	.comm	_H_CSR_IS_MASK,4,2              ; @H_CSR_IS_MASK
	.comm	_H_CSR_IE_MASK,4,2              ; @H_CSR_IE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"H_RST is not set = 0x%08X"

	.comm	_H_RDY,4,2                      ; @H_RDY
l_.str.2:                               ; @.str.2
	.asciz	"H_RDY is not cleared 0x%08X"

	.no_dead_strip	_mei_me_hw_reset
.subsections_via_symbols
