	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_clear_pci_pme_status
__rtl8821ae_clear_pci_pme_status:       ## @_rtl8821ae_clear_pci_pme_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	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r13
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	movl	$52, %esi
	callq	_pci_read_config_byte
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$201, %r14d
	movl	-44(%rbp), %esi
	leaq	-52(%rbp), %r15
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_pci_read_config_word
	movzbl	-52(%rbp), %ebx
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$1, %ebx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %eax
	shrl	$8, %eax
	movzbl	%al, %esi
	movl	%esi, -44(%rbp)
	leal	1(%rsi), %eax
	cmpb	$2, %al
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%r14d
	jne	LBB0_1
LBB0_4:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_9
LBB0_5:
	movl	-44(%rbp), %esi
	movl	(%r13), %edi
	addl	$5, %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_byte
	movl	-48(%rbp), %ebx
	movl	$7, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movl	-48(%rbp), %ebx
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	%ebx, -48(%rbp)
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	addl	$5, %esi
	movl	%ebx, %edx
	callq	_pci_write_config_byte
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	addl	$5, %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_byte
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r8d
	addl	$5, %r8d
	movl	-48(%rbp), %r9d
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r8d
	addl	$5, %r8d
	movl	-48(%rbp), %r9d
	leaq	L_.str.3(%rip), %rcx
LBB0_8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI configuration 0x34 = 0x%2x\n"

L_.str.1:                               ## @.str.1
	.asciz	"in pci configuration, cap_pointer%x = %x\n"

	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
L_.str.2:                               ## @.str.2
	.asciz	"Clear PME status 0x%2x to 0x%2x\n"

L_.str.3:                               ## @.str.3
	.asciz	"PME status(0x%2x) = 0x%2x\n"

	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Cannot find PME Capability\n"

	.no_dead_strip	__rtl8821ae_clear_pci_pme_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_clear_pci_pme_status
__rtl8821ae_clear_pci_pme_status:       ; @_rtl8821ae_clear_pci_pme_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x20, x0
	ldr	w0, [x0]
	add	x2, sp, #24
	mov	w1, #52
	bl	_pci_read_config_byte
Lloh0:
	adrp	x22, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _COMP_INIT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w24, #201
	ldr	w1, [sp, #24]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	add	x2, sp, #28
	bl	_pci_read_config_word
	ldrb	w25, [sp, #28]
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w8, [sp, #24]
	stp	x8, x25, [sp]
	mov	x0, x19
	mov	x3, x21
	bl	_RT_TRACE
	cmp	w25, #1
	b.eq	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w1, [sp, #29]
	str	w1, [sp, #24]
	cbz	w1, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w1, #255
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w24, w24, #1
	b.ne	LBB0_1
LBB0_5:
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str.4@PAGE
Lloh12:
	add	x3, x3, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_RT_TRACE
	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
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	w8, [sp, #24]
	ldr	w0, [x20]
	add	w1, w8, #5
	add	x2, sp, #20
	bl	_pci_read_config_byte
	ldr	w21, [sp, #20]
	mov	w0, #7
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_9
; %bb.8:
	ldr	w21, [sp, #20]
	mov	w0, #7
	bl	_BIT
	orr	w2, w0, w21
	str	w2, [sp, #20]
	ldr	w0, [x20]
	ldr	w8, [sp, #24]
	add	w1, w8, #5
	bl	_pci_write_config_byte
	ldr	w0, [x20]
	ldr	w8, [sp, #24]
	add	w1, w8, #5
	add	x2, sp, #20
	bl	_pci_read_config_byte
	ldr	w1, [x22]
Lloh13:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldp	w9, w8, [sp, #20]
	add	w8, w8, #5
	stp	x8, x9, [sp]
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_9:
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldp	w9, w8, [sp, #20]
	add	w8, w8, #5
	stp	x8, x9, [sp]
Lloh21:
	adrp	x3, l_.str.3@PAGE
Lloh22:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI configuration 0x34 = 0x%2x\n"

l_.str.1:                               ; @.str.1
	.asciz	"in pci configuration, cap_pointer%x = %x\n"

	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
l_.str.2:                               ; @.str.2
	.asciz	"Clear PME status 0x%2x to 0x%2x\n"

l_.str.3:                               ; @.str.3
	.asciz	"PME status(0x%2x) = 0x%2x\n"

	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Cannot find PME Capability\n"

	.no_dead_strip	__rtl8821ae_clear_pci_pme_status
.subsections_via_symbols
