	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_check_positive
__rtl8821ae_check_positive:             ## @_rtl8821ae_check_positive
	.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
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	callq	_rtl_priv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r14
	movq	_CHIP_VER_RTL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%r14), %r12d
	movq	_CHIP_VER_RTL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movq	8(%r14), %rax
	movq	_INTF_USB@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_BIT
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	16(%r14), %ebx
	movl	$4, %edi
	callq	_BIT
	movl	%eax, %r15d
	andl	%ebx, %r15d
	sarl	$4, %r15d
	movl	16(%r14), %ebx
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %r13d
	andl	%ebx, %r13d
	sarl	$2, %r13d
	andl	$-2, %r13d
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %ebx
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	sarl	$5, %ebx
	andl	$-262148, %ebx                  ## imm = 0xFFFBFFFC
	orl	%r13d, %ebx
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$6, %edi
	callq	_BIT
	movl	%eax, %r13d
	andl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	sarl	$3, %r13d
	andl	$-262152, %r13d                 ## imm = 0xFFFBFFF8
	orl	%ebx, %r13d
	movl	16(%r14), %ebx
	movl	$2, %edi
	callq	_BIT
	andl	%ebx, %eax
	shll	$2, %eax
	andl	$-262160, %eax                  ## imm = 0xFFFBFFF0
	shll	$24, %r12d
	movl	20(%r14), %edx
	movl	28(%r14), %ecx
	shll	$12, %edx
	orl	%r13d, %edx
	orl	%eax, %edx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	shll	$8, %ebx
	orl	%r15d, %ebx
	orl	%r12d, %ebx
	orl	%edx, %ebx
	movl	%ebx, %r12d
	orl	$262144, %r12d                  ## imm = 0x40000
	shll	$8, %ecx
	orl	24(%r14), %ecx
	movl	32(%r14), %eax
	shll	$16, %eax
	movl	36(%r14), %r13d
	shll	$24, %r13d
	orl	%eax, %r13d
	orl	%ecx, %r13d
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_RT_TRACE
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_RT_TRACE
	movq	_COMP_INIT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movl	$4, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_RT_TRACE
	movl	(%r12), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r14), %r8d
	movl	20(%r14), %r9d
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	movl	%esi, %ecx
	andl	$61440, %ecx                    ## imm = 0xF000
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edx
	andl	$61440, %edx                    ## imm = 0xF000
	cmpl	%edx, %ecx
	jne	LBB0_8
LBB0_2:
	movl	%esi, %ecx
	andl	$251658240, %ecx                ## imm = 0xF000000
	je	LBB0_4
## %bb.3:
	andl	$251658240, %ebx                ## imm = 0xF000000
	cmpl	%ebx, %ecx
	jne	LBB0_8
LBB0_4:
	movl	%esi, %ebx
	andl	$16715775, %ebx                 ## imm = 0xFF0FFF
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	testl	%ecx, %ebx
	jne	LBB0_8
## %bb.5:
	testb	$15, %sil
	je	LBB0_6
## %bb.7:
	xorl	%edi, %edi
	callq	_BIT
	andl	%ebx, %eax
	movl	$255, %r14d
	cmovel	%eax, %r14d
	movl	$1, %edi
	callq	_BIT
	movl	%r14d, %r15d
	orl	$65280, %r15d                   ## imm = 0xFF00
	testl	%ebx, %eax
	cmovel	%r14d, %r15d
	movl	$2, %edi
	callq	_BIT
	movl	%r15d, %r14d
	orl	$16711680, %r14d                ## imm = 0xFF0000
	testl	%ebx, %eax
	cmovel	%r15d, %r14d
	movl	$3, %edi
	callq	_BIT
	movl	%r14d, %ecx
	orl	$-16777216, %ecx                ## imm = 0xFF000000
	testl	%ebx, %eax
	cmovel	%r14d, %ecx
	xorl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%eax, %eax
	testl	%r13d, %ecx
	sete	%al
	jmp	LBB0_8
LBB0_6:
	movl	$1, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_VER_RTL_MASK,4,2          ## @CHIP_VER_RTL_MASK
	.comm	_CHIP_VER_RTL_SHIFT,4,2         ## @CHIP_VER_RTL_SHIFT
	.comm	_INTF_USB,8,3                   ## @INTF_USB
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"===> [8812A] CheckPositive (cond1, cond2) = (0x%X 0x%X)\n"

L_.str.1:                               ## @.str.1
	.asciz	"===> [8812A] CheckPositive (driver1, driver2) = (0x%X 0x%X)\n"

L_.str.2:                               ## @.str.2
	.asciz	"\t(Platform, Interface) = (0x%X, 0x%X)\n"

L_.str.3:                               ## @.str.3
	.asciz	"\t(Board, Package) = (0x%X, 0x%X)\n"

	.no_dead_strip	__rtl8821ae_check_positive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_check_positive
__rtl8821ae_check_positive:             ; @_rtl8821ae_check_positive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	w2, w1, [sp, #8]                ; 8-byte Folded Spill
	bl	_rtl_priv
	mov	x21, x0
	bl	_rtl_hal
	mov	x22, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CHIP_VER_RTL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_VER_RTL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _CHIP_VER_RTL_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_VER_RTL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w23, w8, w9
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _INTF_USB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INTF_USB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_BIT
	mov	x24, x0
	ldr	w25, [x22, #16]
	mov	w0, #4
	bl	_BIT
	and	w25, w0, w25
	ldr	w26, [x22, #16]
	mov	w0, #3
	bl	_BIT
	and	w8, w0, w26
	asr	w8, w8, #2
	and	w26, w8, #0xfffffffe
	ldr	w27, [x22, #16]
	mov	w0, #7
	bl	_BIT
	and	w8, w0, w27
	mov	w27, #65520
	movk	w27, #65531, lsl #16
	orr	w9, w27, #0xc
	and	w28, w9, w8, asr #5
	ldr	w19, [x22, #16]
	mov	w0, #6
	bl	_BIT
	and	w8, w0, w19
	orr	w9, w27, #0x8
	and	w19, w9, w8, asr #3
	ldr	w20, [x22, #16]
	mov	w0, #2
	bl	_BIT
	and	w8, w0, w20
	and	w8, w27, w8, lsl #2
	ldr	w27, [sp, #8]                   ; 4-byte Folded Reload
	lsl	w9, w24, #8
	orr	w9, w9, w23, lsl #24
	orr	w9, w9, w25, asr #4
	orr	w9, w9, w26
	orr	w9, w9, w28
	orr	w9, w9, w19
	ldp	w10, w11, [x22, #20]
	orr	w9, w9, w10, lsl #12
	orr	w26, w9, w8
	orr	w25, w26, #0x40000
	ldp	w8, w9, [x22, #28]
	orr	w8, w11, w8, lsl #8
	orr	w8, w8, w9, lsl #16
	ldr	w9, [x22, #36]
	orr	w23, w8, w9, lsl #24
Lloh9:
	adrp	x19, _COMP_INIT@GOTPAGE
Lloh10:
	ldr	x19, [x19, _COMP_INIT@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh11:
	adrp	x20, _DBG_TRACE@GOTPAGE
Lloh12:
	ldr	x20, [x20, _DBG_TRACE@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	mov	x4, x28
	mov	x5, x27
	bl	_RT_TRACE
	ldr	w1, [x19]
	ldr	w2, [x20]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x25
	mov	x5, x23
	bl	_RT_TRACE
	ldr	w1, [x19]
	ldr	w2, [x20]
Lloh17:
	adrp	x3, l_.str.2@PAGE
Lloh18:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w4, #4
	mov	x5, x24
	bl	_RT_TRACE
	ldr	w1, [x19]
	ldr	w2, [x20]
	ldp	w4, w5, [x22, #16]
Lloh19:
	adrp	x3, l_.str.3@PAGE
Lloh20:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	ands	w8, w28, #0xf000
	b.eq	LBB0_2
; %bb.1:
	and	w9, w26, #0xf000
	cmp	w8, w9
	b.ne	LBB0_7
LBB0_2:
	ands	w8, w28, #0xf000000
	b.eq	LBB0_4
; %bb.3:
	and	w9, w26, #0xf000000
	cmp	w8, w9
	b.ne	LBB0_7
LBB0_4:
	and	w8, w28, #0xffffff
	and	w21, w8, #0xffff0fff
	bics	wzr, w21, w25
	b.ne	LBB0_7
; %bb.5:
	tst	w28, #0xf
	b.eq	LBB0_9
; %bb.6:
	mov	w0, #0
	bl	_BIT
	tst	w0, w21
	mov	w8, #255
	csel	w19, wzr, w8, eq
	mov	w0, #1
	bl	_BIT
	orr	w8, w19, #0xff00
	tst	w0, w21
	csel	w19, w19, w8, eq
	mov	w0, #2
	bl	_BIT
	orr	w8, w19, #0xff0000
	tst	w0, w21
	csel	w19, w19, w8, eq
	mov	w0, #3
	bl	_BIT
	orr	w8, w19, #0xff000000
	tst	w0, w21
	csel	w8, w19, w8, eq
	eor	w9, w23, w27
	tst	w8, w9
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	mov	w0, #1
	b	LBB0_8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_VER_RTL_MASK,4,2          ; @CHIP_VER_RTL_MASK
	.comm	_CHIP_VER_RTL_SHIFT,4,2         ; @CHIP_VER_RTL_SHIFT
	.comm	_INTF_USB,8,3                   ; @INTF_USB
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"===> [8812A] CheckPositive (cond1, cond2) = (0x%X 0x%X)\n"

l_.str.1:                               ; @.str.1
	.asciz	"===> [8812A] CheckPositive (driver1, driver2) = (0x%X 0x%X)\n"

l_.str.2:                               ; @.str.2
	.asciz	"\t(Platform, Interface) = (0x%X, 0x%X)\n"

l_.str.3:                               ; @.str.3
	.asciz	"\t(Board, Package) = (0x%X, 0x%X)\n"

	.no_dead_strip	__rtl8821ae_check_positive
.subsections_via_symbols
