	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92cu_set_beacon_related_registers ## -- Begin function rtl92cu_set_beacon_related_registers
	.p2align	4, 0x90
_rtl92cu_set_beacon_related_registers:  ## @rtl92cu_set_beacon_related_registers
	.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, %r12
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movq	_REG_ATIMWND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_rtl_write_word
	movq	_REG_BCN_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_word
	movq	%r14, %rdi
	callq	__rtl92cu_init_beacon_parameters
	movq	_REG_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$9, %edx
	callq	_rtl_write_byte
	movq	_REG_TCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rtl_read_dword
	movq	_TSFRST@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_dword
	orl	(%r15), %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_dword
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movq	_COMP_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %r8d
	callq	_RT_TRACE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	movq	_REG_RXTSF_OFFSET_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$80, %edx
	callq	_rtl_write_byte
	movq	_REG_RXTSF_OFFSET_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$80, %edx
	callq	_rtl_write_byte
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__beacon_function_enable        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ATIMWND,4,2                ## @REG_ATIMWND
	.comm	_REG_BCN_INTERVAL,4,2           ## @REG_BCN_INTERVAL
	.comm	_REG_SLOT,4,2                   ## @REG_SLOT
	.comm	_REG_TCR,4,2                    ## @REG_TCR
	.comm	_TSFRST,4,2                     ## @TSFRST
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_COMP_BEACON,4,2                ## @COMP_BEACON
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SetBeaconRelatedRegisters8192CUsb(): Set TCR(%x)\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_REG_RXTSF_OFFSET_CCK,4,2       ## @REG_RXTSF_OFFSET_CCK
	.comm	_REG_RXTSF_OFFSET_OFDM,4,2      ## @REG_RXTSF_OFFSET_OFDM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92cu_set_beacon_related_registers ; -- Begin function rtl92cu_set_beacon_related_registers
	.p2align	2
_rtl92cu_set_beacon_related_registers:  ; @rtl92cu_set_beacon_related_registers
	.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	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x8, _REG_ATIMWND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_ATIMWND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #2
	bl	_rtl_write_word
Lloh3:
	adrp	x8, _REG_BCN_INTERVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_BCN_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_rtl_write_word
	mov	x0, x19
	bl	__rtl92cu_init_beacon_parameters
Lloh6:
	adrp	x8, _REG_SLOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_SLOT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #9
	bl	_rtl_write_byte
Lloh9:
	adrp	x23, _REG_TCR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _REG_TCR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_rtl_read_dword
Lloh11:
	adrp	x24, _TSFRST@GOTPAGE
Lloh12:
	ldr	x24, [x24, _TSFRST@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w22, w0, w8
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x22
	bl	_rtl_write_dword
	ldr	w8, [x24]
	orr	w22, w8, w22
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x22
	bl	_rtl_write_dword
Lloh13:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh15:
	adrp	x9, _COMP_BEACON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _COMP_BEACON@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh19:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x22
	bl	_RT_TRACE
	ldr	x8, [x21, #8]
Lloh24:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
Lloh27:
	adrp	x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh30:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
Lloh33:
	adrp	x8, _REG_RXTSF_OFFSET_CCK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REG_RXTSF_OFFSET_CCK@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #80
	bl	_rtl_write_byte
Lloh36:
	adrp	x8, _REG_RXTSF_OFFSET_OFDM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _REG_RXTSF_OFFSET_OFDM@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #80
	bl	_rtl_write_byte
LBB0_4:
	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	__beacon_function_enable
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ATIMWND,4,2                ; @REG_ATIMWND
	.comm	_REG_BCN_INTERVAL,4,2           ; @REG_BCN_INTERVAL
	.comm	_REG_SLOT,4,2                   ; @REG_SLOT
	.comm	_REG_TCR,4,2                    ; @REG_TCR
	.comm	_TSFRST,4,2                     ; @TSFRST
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_COMP_BEACON,4,2                ; @COMP_BEACON
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SetBeaconRelatedRegisters8192CUsb(): Set TCR(%x)\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_REG_RXTSF_OFFSET_CCK,4,2       ; @REG_RXTSF_OFFSET_CCK
	.comm	_REG_RXTSF_OFFSET_OFDM,4,2      ; @REG_RXTSF_OFFSET_OFDM
.subsections_via_symbols
