	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92cu_init_queue_reserved_page
__rtl92cu_init_queue_reserved_page:     ## @_rtl92cu_init_queue_reserved_page
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movl	(%rax), %edi
	callq	_IS_NORMAL_CHIP
	movl	%eax, %ecx
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.4:
	movq	_TX_SELE_HQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r15d, %ebx
	testl	%ecx, %ecx
	movq	_WMM_CHIP_B_PAGE_NUM_HPQ@GOTPCREL(%rip), %rdx
	cmoveq	_WMM_CHIP_A_PAGE_NUM_HPQ@GOTPCREL(%rip), %rdx
	movq	_WMM_CHIP_B_PAGE_NUM_LPQ@GOTPCREL(%rip), %rax
	cmoveq	_WMM_CHIP_A_PAGE_NUM_LPQ@GOTPCREL(%rip), %rax
	movq	_TX_SELE_LQ@GOTPCREL(%rip), %rsi
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	(%rdx), %ebx
LBB0_6:
	movl	(%rsi), %r12d
	andl	%r15d, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movl	(%rax), %r12d
LBB0_8:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.10:
	movq	_WMM_CHIP_B_PAGE_NUM_PUBQ@GOTPCREL(%rip), %rax
	movq	_TX_SELE_NQ@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	je	LBB0_12
## %bb.11:
	movq	_WMM_CHIP_B_PAGE_NUM_NPQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_12:
	movl	(%rax), %r13d
	jmp	LBB0_13
LBB0_1:
	testl	%ecx, %ecx
	movq	_CHIP_B_PAGE_NUM_PUBQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CHIP_A_PAGE_NUM_PUBQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%edx, %r8d
	cmovel	%r13d, %edx
	movq	_TX_TOTAL_PAGE_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%edx, %eax
	cltd
	idivl	%r14d
	movq	_TX_SELE_HQ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r15d, %esi
	cmovnel	%eax, %esi
	movq	_TX_SELE_LQ@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r12d
	andl	%r15d, %r12d
	cmovnel	%eax, %r12d
	xorl	%ebx, %ebx
	cmpl	$2, %r14d
	cmovgel	%edx, %ebx
	addl	%esi, %ebx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	movq	_TX_SELE_NQ@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	cmovnel	%eax, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r8d, %r13d
LBB0_13:
	movl	%r15d, %edi
	callq	__NPQ
	movq	_REG_RQPN_NPQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl_write_byte
	jmp	LBB0_14
LBB0_9:
	movq	_WMM_CHIP_A_PAGE_NUM_PUBQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_14
LBB0_2:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_14:
	movl	%ebx, %edi
	callq	__HPQ
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	__LPQ
	orl	%eax, %ebx
	movl	%r13d, %edi
	callq	__PUBQ
	orl	%eax, %ebx
	movq	_LD_RQPN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_REG_RQPN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_write_dword                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_B_PAGE_NUM_PUBQ,4,2       ## @CHIP_B_PAGE_NUM_PUBQ
	.comm	_CHIP_A_PAGE_NUM_PUBQ,4,2       ## @CHIP_A_PAGE_NUM_PUBQ
	.comm	_TX_TOTAL_PAGE_NUMBER,4,2       ## @TX_TOTAL_PAGE_NUMBER
	.comm	_TX_SELE_HQ,4,2                 ## @TX_SELE_HQ
	.comm	_TX_SELE_LQ,4,2                 ## @TX_SELE_LQ
	.comm	_TX_SELE_NQ,4,2                 ## @TX_SELE_NQ
	.comm	_REG_RQPN_NPQ,4,2               ## @REG_RQPN_NPQ
	.comm	_WMM_CHIP_B_PAGE_NUM_PUBQ,4,2   ## @WMM_CHIP_B_PAGE_NUM_PUBQ
	.comm	_WMM_CHIP_A_PAGE_NUM_PUBQ,4,2   ## @WMM_CHIP_A_PAGE_NUM_PUBQ
	.comm	_WMM_CHIP_B_PAGE_NUM_HPQ,4,2    ## @WMM_CHIP_B_PAGE_NUM_HPQ
	.comm	_WMM_CHIP_A_PAGE_NUM_HPQ,4,2    ## @WMM_CHIP_A_PAGE_NUM_HPQ
	.comm	_WMM_CHIP_B_PAGE_NUM_LPQ,4,2    ## @WMM_CHIP_B_PAGE_NUM_LPQ
	.comm	_WMM_CHIP_A_PAGE_NUM_LPQ,4,2    ## @WMM_CHIP_A_PAGE_NUM_LPQ
	.comm	_WMM_CHIP_B_PAGE_NUM_NPQ,4,2    ## @WMM_CHIP_B_PAGE_NUM_NPQ
	.comm	_LD_RQPN,4,2                    ## @LD_RQPN
	.comm	_REG_RQPN,4,2                   ## @REG_RQPN
	.no_dead_strip	__rtl92cu_init_queue_reserved_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92cu_init_queue_reserved_page
__rtl92cu_init_queue_reserved_page:     ; @_rtl92cu_init_queue_reserved_page
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_hal
	ldr	w0, [x0]
	bl	_IS_NORMAL_CHIP
	cbz	w20, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _TX_SELE_HQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_SELE_HQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WMM_CHIP_B_PAGE_NUM_HPQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WMM_CHIP_B_PAGE_NUM_HPQ@GOTPAGEOFF]
Lloh5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_B_PAGE_NUM_PUBQ@GOTPAGEOFF]
Lloh25:
	adrp	x9, _CHIP_A_PAGE_NUM_PUBQ@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CHIP_A_PAGE_NUM_PUBQ@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w20, [x9]
	cmp	w0, #0
	csel	w9, w20, w8, eq
Lloh29:
	adrp	x10, _TX_TOTAL_PAGE_NUMBER@GOTPAGE
Lloh30:
	ldr	x10, [x10, _TX_TOTAL_PAGE_NUMBER@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	sub	w10, w10, w9
	sdiv	w9, w10, w23
	msub	w10, w9, w23, w10
Lloh32:
	adrp	x11, _TX_SELE_HQ@GOTPAGE
Lloh33:
	ldr	x11, [x11, _TX_SELE_HQ@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	tst	w11, w21
	csel	w11, wzr, w9, eq
Lloh35:
	adrp	x12, _TX_SELE_LQ@GOTPAGE
Lloh36:
	ldr	x12, [x12, _TX_SELE_LQ@GOTPAGEOFF]
Lloh37:
	ldr	w12, [x12]
	tst	w12, w21
	csel	w22, wzr, w9, eq
	cmp	w10, #0
	ccmp	w23, #1, #4, ne
	csel	w10, w10, wzr, gt
	add	w23, w11, w10
	cbz	w0, LBB0_7
; %bb.4:
Lloh38:
	adrp	x10, _TX_SELE_NQ@GOTPAGE
Lloh39:
	ldr	x10, [x10, _TX_SELE_NQ@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	w10, w21
	csel	w0, wzr, w9, eq
	mov	x20, x8
LBB0_5:
	bl	__NPQ
	mov	x2, x0
Lloh41:
	adrp	x8, _REG_RQPN_NPQ@GOTPAGE
Lloh42:
	ldr	x8, [x8, _REG_RQPN_NPQ@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_rtl_write_byte
	b	LBB0_7
LBB0_6:
Lloh44:
	adrp	x8, _WMM_CHIP_A_PAGE_NUM_PUBQ@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WMM_CHIP_A_PAGE_NUM_PUBQ@GOTPAGEOFF]
Lloh46:
	ldr	w20, [x8]
LBB0_7:
	mov	x0, x23
	bl	__HPQ
	mov	x21, x0
	mov	x0, x22
	bl	__LPQ
	orr	w21, w0, w21
	mov	x0, x20
	bl	__PUBQ
	orr	w8, w21, w0
Lloh47:
	adrp	x9, _LD_RQPN@GOTPAGE
Lloh48:
	ldr	x9, [x9, _LD_RQPN@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh50:
	adrp	x8, _REG_RQPN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _REG_RQPN@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtl_write_dword
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_B_PAGE_NUM_PUBQ,4,2       ; @CHIP_B_PAGE_NUM_PUBQ
	.comm	_CHIP_A_PAGE_NUM_PUBQ,4,2       ; @CHIP_A_PAGE_NUM_PUBQ
	.comm	_TX_TOTAL_PAGE_NUMBER,4,2       ; @TX_TOTAL_PAGE_NUMBER
	.comm	_TX_SELE_HQ,4,2                 ; @TX_SELE_HQ
	.comm	_TX_SELE_LQ,4,2                 ; @TX_SELE_LQ
	.comm	_TX_SELE_NQ,4,2                 ; @TX_SELE_NQ
	.comm	_REG_RQPN_NPQ,4,2               ; @REG_RQPN_NPQ
	.comm	_WMM_CHIP_B_PAGE_NUM_PUBQ,4,2   ; @WMM_CHIP_B_PAGE_NUM_PUBQ
	.comm	_WMM_CHIP_A_PAGE_NUM_PUBQ,4,2   ; @WMM_CHIP_A_PAGE_NUM_PUBQ
	.comm	_WMM_CHIP_B_PAGE_NUM_HPQ,4,2    ; @WMM_CHIP_B_PAGE_NUM_HPQ
	.comm	_WMM_CHIP_A_PAGE_NUM_HPQ,4,2    ; @WMM_CHIP_A_PAGE_NUM_HPQ
	.comm	_WMM_CHIP_B_PAGE_NUM_LPQ,4,2    ; @WMM_CHIP_B_PAGE_NUM_LPQ
	.comm	_WMM_CHIP_A_PAGE_NUM_LPQ,4,2    ; @WMM_CHIP_A_PAGE_NUM_LPQ
	.comm	_WMM_CHIP_B_PAGE_NUM_NPQ,4,2    ; @WMM_CHIP_B_PAGE_NUM_NPQ
	.comm	_LD_RQPN,4,2                    ; @LD_RQPN
	.comm	_REG_RQPN,4,2                   ; @REG_RQPN
	.no_dead_strip	__rtl92cu_init_queue_reserved_page
.subsections_via_symbols
