	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_sec_enable_sec_engine      ## -- Begin function rtw_sec_enable_sec_engine
	.p2align	4, 0x90
_rtw_sec_enable_sec_engine:             ## @rtw_sec_enable_sec_engine
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$1, (%rdi)
	movq	_REG_CR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_rtw_read16
	movq	_RTW_SEC_ENGINE_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtw_write16
	movq	_RTW_SEC_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtw_read16
	movq	_RTW_SEC_TX_DEC_EN@GOTPCREL(%rip), %rcx
	movq	_RTW_SEC_RX_DEC_EN@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_RTW_SEC_TX_UNI_USE_DK@GOTPCREL(%rip), %rcx
	movq	_RTW_SEC_RX_UNI_USE_DK@GOTPCREL(%rip), %rdx
	movq	_RTW_SEC_TX_BC_USE_DK@GOTPCREL(%rip), %rsi
	movq	_RTW_SEC_RX_BC_USE_DK@GOTPCREL(%rip), %rdi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
LBB0_2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtw_write16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CR,4,2                     ## @REG_CR
	.comm	_RTW_SEC_ENGINE_EN,4,2          ## @RTW_SEC_ENGINE_EN
	.comm	_RTW_SEC_CONFIG,4,2             ## @RTW_SEC_CONFIG
	.comm	_RTW_SEC_TX_DEC_EN,4,2          ## @RTW_SEC_TX_DEC_EN
	.comm	_RTW_SEC_RX_DEC_EN,4,2          ## @RTW_SEC_RX_DEC_EN
	.comm	_RTW_SEC_TX_UNI_USE_DK,4,2      ## @RTW_SEC_TX_UNI_USE_DK
	.comm	_RTW_SEC_RX_UNI_USE_DK,4,2      ## @RTW_SEC_RX_UNI_USE_DK
	.comm	_RTW_SEC_TX_BC_USE_DK,4,2       ## @RTW_SEC_TX_BC_USE_DK
	.comm	_RTW_SEC_RX_BC_USE_DK,4,2       ## @RTW_SEC_RX_BC_USE_DK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_sec_enable_sec_engine      ; -- Begin function rtw_sec_enable_sec_engine
	.p2align	2
_rtw_sec_enable_sec_engine:             ; @rtw_sec_enable_sec_engine
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x20, _REG_CR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_CR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_rtw_read16
Lloh2:
	adrp	x8, _RTW_SEC_ENGINE_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTW_SEC_ENGINE_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write16
Lloh5:
	adrp	x20, _RTW_SEC_CONFIG@GOTPAGE
Lloh6:
	ldr	x20, [x20, _RTW_SEC_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read16
Lloh7:
	adrp	x8, _RTW_SEC_TX_DEC_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTW_SEC_TX_DEC_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _RTW_SEC_RX_DEC_EN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RTW_SEC_RX_DEC_EN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _RTW_SEC_TX_UNI_USE_DK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RTW_SEC_TX_UNI_USE_DK@GOTPAGEOFF]
Lloh15:
	adrp	x9, _RTW_SEC_RX_UNI_USE_DK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RTW_SEC_RX_UNI_USE_DK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _RTW_SEC_TX_BC_USE_DK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _RTW_SEC_TX_BC_USE_DK@GOTPAGEOFF]
Lloh21:
	adrp	x11, _RTW_SEC_RX_BC_USE_DK@GOTPAGE
Lloh22:
	ldr	x11, [x11, _RTW_SEC_RX_BC_USE_DK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	ldr	w11, [x11]
	orr	w8, w8, w2
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, w11
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtw_write16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CR,4,2                     ; @REG_CR
	.comm	_RTW_SEC_ENGINE_EN,4,2          ; @RTW_SEC_ENGINE_EN
	.comm	_RTW_SEC_CONFIG,4,2             ; @RTW_SEC_CONFIG
	.comm	_RTW_SEC_TX_DEC_EN,4,2          ; @RTW_SEC_TX_DEC_EN
	.comm	_RTW_SEC_RX_DEC_EN,4,2          ; @RTW_SEC_RX_DEC_EN
	.comm	_RTW_SEC_TX_UNI_USE_DK,4,2      ; @RTW_SEC_TX_UNI_USE_DK
	.comm	_RTW_SEC_RX_UNI_USE_DK,4,2      ; @RTW_SEC_RX_UNI_USE_DK
	.comm	_RTW_SEC_TX_BC_USE_DK,4,2       ; @RTW_SEC_TX_BC_USE_DK
	.comm	_RTW_SEC_RX_BC_USE_DK,4,2       ; @RTW_SEC_RX_BC_USE_DK
.subsections_via_symbols
