	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_enable_aspm_back_door
__rtl8821ae_enable_aspm_back_door:      ## @_rtl8821ae_enable_aspm_back_door
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	__rtl8821ae_mdio_read
	cmpl	$34116, %eax                    ## imm = 0x8544
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$34116, %edx                    ## imm = 0x8544
	callq	__rtl8821ae_mdio_write
LBB0_3:
	movq	%r15, %rdi
	movl	$11, %esi
	callq	__rtl8821ae_mdio_read
	cmpl	$112, %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$11, %esi
	movl	$112, %edx
	callq	__rtl8821ae_mdio_write
LBB0_5:
	movq	%r15, %rdi
	movl	$1807, %esi                     ## imm = 0x70F
	callq	__rtl8821ae_dbi_read
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_ASPM_L1_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	orl	%ebx, %edx
	movq	%r15, %rdi
	movl	$1807, %esi                     ## imm = 0x70F
	callq	__rtl8821ae_dbi_write
	movq	%r15, %rdi
	movl	$1817, %esi                     ## imm = 0x719
	callq	__rtl8821ae_dbi_read
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$4, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	$1817, %esi                     ## imm = 0x719
	movl	%ebx, %edx
	callq	__rtl8821ae_dbi_write
	movq	(%r14), %rax
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	$1816, %esi                     ## imm = 0x718
	callq	__rtl8821ae_dbi_read
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	$1816, %esi                     ## imm = 0x718
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__rtl8821ae_dbi_write           ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ## @HARDWARE_TYPE_RTL8821AE
	.comm	_ASPM_L1_LATENCY,4,2            ## @ASPM_L1_LATENCY
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.no_dead_strip	__rtl8821ae_enable_aspm_back_door
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_enable_aspm_back_door
__rtl8821ae_enable_aspm_back_door:      ; @_rtl8821ae_enable_aspm_back_door
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HARDWARE_TYPE_RTL8821AE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8821AE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #4
	bl	__rtl8821ae_mdio_read
	mov	w8, #34116
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #34116
	bl	__rtl8821ae_mdio_write
LBB0_3:
	mov	x0, x19
	mov	w1, #11
	bl	__rtl8821ae_mdio_read
	cmp	w0, #112
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #11
	mov	w2, #112
	bl	__rtl8821ae_mdio_write
LBB0_5:
	mov	x0, x19
	mov	w1, #1807
	bl	__rtl8821ae_dbi_read
	mov	x21, x0
	mov	w0, #7
	bl	_BIT
	orr	w8, w0, w21
Lloh3:
	adrp	x9, _ASPM_L1_LATENCY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASPM_L1_LATENCY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w8, w9, lsl #3
	mov	x0, x19
	mov	w1, #1807
	bl	__rtl8821ae_dbi_write
	mov	x0, x19
	mov	w1, #1817
	bl	__rtl8821ae_dbi_read
	mov	x21, x0
	mov	w0, #3
	bl	_BIT
	orr	w21, w0, w21
	mov	w0, #4
	bl	_BIT
	orr	w2, w21, w0
	mov	x0, x19
	mov	w1, #1817
	bl	__rtl8821ae_dbi_write
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1816
	bl	__rtl8821ae_dbi_read
	mov	x20, x0
	mov	w0, #4
	bl	_BIT
	orr	w2, w0, w20
	mov	x0, x19
	mov	w1, #1816
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__rtl8821ae_dbi_write
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ; @HARDWARE_TYPE_RTL8821AE
	.comm	_ASPM_L1_LATENCY,4,2            ; @ASPM_L1_LATENCY
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.no_dead_strip	__rtl8821ae_enable_aspm_back_door
.subsections_via_symbols
