	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8812ae_read_amplifier_type
__rtl8812ae_read_amplifier_type:        ## @_rtl8812ae_read_amplifier_type
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %rbx
	movl	756(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$2, %edi
	callq	_BIT
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	756(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$6, %edi
	callq	_BIT
	movl	%eax, %r12d
	movl	764(%r14), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$2, %edi
	callq	_BIT
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	764(%r14), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	$6, %edi
	callq	_BIT
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	756(%r14), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_BIT
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	756(%r14), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	$5, %edi
	callq	_BIT
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	$4, %edi
	callq	_BIT
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	764(%r14), %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movl	$1, %edi
	callq	_BIT
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	764(%r14), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	$5, %edi
	callq	_BIT
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	$4, %edi
	callq	_BIT
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	__rtl8812ae_read_pa_type
	movq	%rbx, %r13
	movl	(%rbx), %r15d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$4, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r14d, %ebx
	andl	%r15d, %ebx
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$4, %edi
	callq	_BIT
	orl	%r14d, %eax
	cmpl	%eax, %ebx
	jne	LBB0_2
## %bb.1:
	andl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	andl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	sarl	$2, %eax
	sarl	$4, %r12d
	andl	$-4, %r12d
	orl	%eax, %r12d
	movl	%r12d, 4(%r13)
LBB0_2:
	movl	8(%r13), %r15d
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r14d, %ebx
	andl	%r15d, %ebx
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_BIT
	orl	%r14d, %eax
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.3:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	andl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	sarl	$2, %eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	andl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	sarl	$4, %ecx
	andl	$-4, %ecx
	orl	%eax, %ecx
	movl	%ecx, 12(%r13)
LBB0_4:
	movl	16(%r13), %r15d
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r14d, %ebx
	andl	%r15d, %ebx
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$3, %edi
	callq	_BIT
	orl	%r14d, %eax
	cmpl	%eax, %ebx
	jne	LBB0_6
## %bb.5:
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	orl	-84(%rbp), %eax                 ## 4-byte Folded Reload
	andl	-92(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	orl	-72(%rbp), %ecx                 ## 4-byte Folded Reload
	andl	-80(%rbp), %ecx                 ## 4-byte Folded Reload
	sarl	$2, %ecx
	andl	$-4, %ecx
	orl	%eax, %ecx
	movl	%ecx, 20(%r13)
LBB0_6:
	movl	24(%r13), %r15d
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r14d, %ebx
	andl	%r15d, %ebx
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$3, %edi
	callq	_BIT
	orl	%r14d, %eax
	cmpl	%eax, %ebx
	jne	LBB0_8
## %bb.7:
	movl	-116(%rbp), %eax                ## 4-byte Reload
	orl	-108(%rbp), %eax                ## 4-byte Folded Reload
	andl	-112(%rbp), %eax                ## 4-byte Folded Reload
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	orl	-96(%rbp), %ecx                 ## 4-byte Folded Reload
	andl	-104(%rbp), %ecx                ## 4-byte Folded Reload
	sarl	$2, %ecx
	andl	$-4, %ecx
	orl	%eax, %ecx
	movl	%ecx, 28(%r13)
LBB0_8:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__rtl8812ae_read_amplifier_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8812ae_read_amplifier_type
__rtl8812ae_read_amplifier_type:        ; @_rtl8812ae_read_amplifier_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x19, x0
	ldr	w26, [x24, #756]
	mov	w0, #2
	bl	_BIT
	mov	x21, x0
	ldr	w27, [x24, #756]
	mov	w0, #6
	bl	_BIT
	mov	x22, x0
	ldr	w8, [x24, #764]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w0, #2
	bl	_BIT
	mov	x28, x0
	ldr	w8, [x24, #764]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	w0, #6
	bl	_BIT
	mov	x20, x0
	ldr	w8, [x24, #756]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	mov	w0, #1
	bl	_BIT
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	w0, #0
	bl	_BIT
	ldr	w8, [x24, #756]
	stp	w0, w8, [sp, #24]               ; 8-byte Folded Spill
	mov	w0, #5
	bl	_BIT
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	mov	w0, #4
	bl	_BIT
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w8, [x24, #764]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	mov	w0, #1
	bl	_BIT
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	mov	w0, #0
	bl	_BIT
	ldr	w8, [x24, #764]
	stp	w0, w8, [sp, #48]               ; 8-byte Folded Spill
	mov	w0, #5
	bl	_BIT
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	w0, #4
	bl	_BIT
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	bl	__rtl8812ae_read_pa_type
	ldr	w24, [x19]
	mov	w0, #5
	bl	_BIT
	mov	x23, x0
	mov	w0, #4
	bl	_BIT
	orr	w8, w0, w23
	and	w24, w8, w24
	mov	w0, #5
	bl	_BIT
	mov	x23, x0
	mov	w0, #4
	bl	_BIT
	orr	w8, w0, w23
	cmp	w24, w8
	b.ne	LBB0_2
; %bb.1:
	and	w8, w22, w27
	and	w9, w21, w26
	asr	w8, w8, #4
	and	w8, w8, #0xfffffffc
	orr	w8, w8, w9, asr #2
	str	w8, [x19, #4]
LBB0_2:
	ldr	w22, [x19, #8]
	mov	w0, #1
	bl	_BIT
	mov	x21, x0
	mov	w0, #0
	bl	_BIT
	orr	w8, w0, w21
	and	w22, w8, w22
	mov	w0, #1
	bl	_BIT
	mov	x21, x0
	mov	w0, #0
	bl	_BIT
	orr	w8, w0, w21
	cmp	w22, w8
	b.ne	LBB0_4
; %bb.3:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	and	w8, w28, w8
	asr	w8, w8, #2
	and	w9, w20, w9
	asr	w9, w9, #4
	and	w9, w9, #0xfffffffc
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_4:
	ldr	w21, [x19, #16]
	mov	w0, #7
	bl	_BIT
	mov	x20, x0
	mov	w0, #3
	bl	_BIT
	orr	w8, w0, w20
	and	w21, w8, w21
	mov	w0, #7
	bl	_BIT
	mov	x20, x0
	mov	w0, #3
	bl	_BIT
	orr	w8, w0, w20
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	orr	w8, w9, w8
	ldp	w10, w9, [sp, #16]              ; 8-byte Folded Reload
	orr	w9, w10, w9
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	and	w8, w8, w10
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	and	w9, w9, w10
	asr	w9, w9, #2
	and	w9, w9, #0xfffffffc
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_6:
	ldr	w21, [x19, #24]
	mov	w0, #7
	bl	_BIT
	mov	x20, x0
	mov	w0, #3
	bl	_BIT
	orr	w8, w0, w20
	and	w21, w8, w21
	mov	w0, #7
	bl	_BIT
	mov	x20, x0
	mov	w0, #3
	bl	_BIT
	orr	w8, w0, w20
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #48]                   ; 4-byte Folded Reload
	orr	w8, w9, w8
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	ldr	w10, [sp, #32]                  ; 4-byte Folded Reload
	orr	w9, w10, w9
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	and	w8, w8, w10
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	and	w9, w9, w10
	asr	w9, w9, #2
	and	w9, w9, #0xfffffffc
	orr	w8, w9, w8
	str	w8, [x19, #28]
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__rtl8812ae_read_amplifier_type
.subsections_via_symbols
