	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92cu_enable_hw_security_config ## -- Begin function rtl92cu_enable_hw_security_config
	.p2align	4, 0x90
_rtl92cu_enable_hw_security_config:     ## @rtl92cu_enable_hw_security_config
	.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
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	24(%rbx), %r9d
	movl	28(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_2
LBB0_7:
	movq	_COMP_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_2:
	movq	_SCR_TXENCENABLE@GOTPCREL(%rip), %rax
	movq	_SCR_RXDECENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	%r15d, -44(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_SCR_TXUSEDK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_SCR_RXUSEDK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, -44(%rbp)
LBB0_4:
	movl	(%r12), %edi
	callq	_IS_NORMAL_CHIP
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SCR_RXBCUSEDK@GOTPCREL(%rip), %rax
	movq	_SCR_TXBCUSEDK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, %r15d
	movl	%r15d, -44(%rbp)
LBB0_6:
	movq	_REG_CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_rtl_write_byte
	movq	_COMP_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_WPA_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PairwiseEncAlgorithm = %d GroupEncAlgorithm = %d\n"

	.comm	_COMP_SEC,4,2                   ## @COMP_SEC
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
L_.str.1:                               ## @.str.1
	.asciz	"not open sw encryption\n"

	.comm	_SCR_TXENCENABLE,4,2            ## @SCR_TXENCENABLE
	.comm	_SCR_RXDECENABLE,4,2            ## @SCR_RXDECENABLE
	.comm	_SCR_TXUSEDK,4,2                ## @SCR_TXUSEDK
	.comm	_SCR_RXUSEDK,4,2                ## @SCR_RXUSEDK
	.comm	_SCR_RXBCUSEDK,4,2              ## @SCR_RXBCUSEDK
	.comm	_SCR_TXBCUSEDK,4,2              ## @SCR_TXBCUSEDK
	.comm	_REG_CR,8,3                     ## @REG_CR
L_.str.2:                               ## @.str.2
	.asciz	"The SECR-value %x\n"

	.comm	_HW_VAR_WPA_CONFIG,4,2          ## @HW_VAR_WPA_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92cu_enable_hw_security_config ; -- Begin function rtl92cu_enable_hw_security_config
	.p2align	2
_rtl92cu_enable_hw_security_config:     ; @rtl92cu_enable_hw_security_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	bl	_rtl_hal
	mov	x21, x0
Lloh0:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x22]
	ldp	w9, w8, [x20, #24]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _COMP_SEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _COMP_SEC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_RT_TRACE
LBB0_3:
Lloh15:
	adrp	x8, _SCR_TXENCENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCR_TXENCENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SCR_RXDECENABLE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SCR_RXDECENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w23, w9, w8
	str	w23, [sp, #28]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _SCR_TXUSEDK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SCR_TXUSEDK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh24:
	adrp	x9, _SCR_RXUSEDK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SCR_RXUSEDK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w23, w9, w8
	str	w23, [sp, #28]
LBB0_5:
	ldr	w0, [x21]
	bl	_IS_NORMAL_CHIP
	cbz	x0, LBB0_7
; %bb.6:
Lloh27:
	adrp	x8, _SCR_RXBCUSEDK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SCR_RXBCUSEDK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _SCR_TXBCUSEDK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SCR_TXBCUSEDK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	orr	w23, w8, w23
	str	w23, [sp, #28]
LBB0_7:
Lloh33:
	adrp	x8, _REG_CR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REG_CR@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x20
	mov	w2, #2
	bl	_rtl_write_byte
Lloh36:
	adrp	x8, _COMP_SEC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _COMP_SEC@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [x22]
	str	x23, [sp]
Lloh39:
	adrp	x3, l_.str.2@PAGE
Lloh40:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _HW_VAR_WPA_CONFIG@GOTPAGE
Lloh42:
	ldr	x9, [x9, _HW_VAR_WPA_CONFIG@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x9]
	add	x2, sp, #28
	mov	x0, x19
	blr	x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PairwiseEncAlgorithm = %d GroupEncAlgorithm = %d\n"

	.comm	_COMP_SEC,4,2                   ; @COMP_SEC
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
l_.str.1:                               ; @.str.1
	.asciz	"not open sw encryption\n"

	.comm	_SCR_TXENCENABLE,4,2            ; @SCR_TXENCENABLE
	.comm	_SCR_RXDECENABLE,4,2            ; @SCR_RXDECENABLE
	.comm	_SCR_TXUSEDK,4,2                ; @SCR_TXUSEDK
	.comm	_SCR_RXUSEDK,4,2                ; @SCR_RXUSEDK
	.comm	_SCR_RXBCUSEDK,4,2              ; @SCR_RXBCUSEDK
	.comm	_SCR_TXBCUSEDK,4,2              ; @SCR_TXBCUSEDK
	.comm	_REG_CR,8,3                     ; @REG_CR
l_.str.2:                               ; @.str.2
	.asciz	"The SECR-value %x\n"

	.comm	_HW_VAR_WPA_CONFIG,4,2          ; @HW_VAR_WPA_CONFIG
.subsections_via_symbols
