	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_check_pcie_dma_hang
__rtl8821ae_check_pcie_dma_hang:        ## @_rtl8821ae_check_pcie_dma_hang
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_rtl_priv
	movq	%rax, %r14
	movq	_REG_DBI_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	$3, %rsi
	movq	%rax, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %r15
	addq	$3, %r15
	movl	$2, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movl	$100, %edi
	callq	_mdelay
LBB0_2:
	movq	(%r12), %rsi
	addq	$3, %rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%r15d, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_5
LBB0_4:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DBI_CTRL,8,3               ## @REG_DBI_CTRL
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CheckPcieDMAHang8821AE(): true! Reset PCIE DMA!\n"

	.no_dead_strip	__rtl8821ae_check_pcie_dma_hang
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_check_pcie_dma_hang
__rtl8821ae_check_pcie_dma_hang:        ; @_rtl8821ae_check_pcie_dma_hang
	.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
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _REG_DBI_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_DBI_CTRL@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, #3
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #2
	bl	_BIT
	tst	w0, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	add	x21, x8, #3
	mov	w0, #2
	bl	_BIT
	orr	w2, w0, w20
	mov	x0, x19
	mov	x1, x21
	bl	_rtl_write_byte
	mov	w0, #100
	bl	_mdelay
LBB0_2:
	ldr	x8, [x22]
	add	x1, x8, #3
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w0, #1
LBB0_5:
	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
LBB0_6:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DBI_CTRL,8,3               ; @REG_DBI_CTRL
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CheckPcieDMAHang8821AE(): true! Reset PCIE DMA!\n"

	.no_dead_strip	__rtl8821ae_check_pcie_dma_hang
.subsections_via_symbols
