	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92de_set_beacon_related_registers ## -- Begin function rtl92de_set_beacon_related_registers
	.p2align	4, 0x90
_rtl92de_set_beacon_related_registers:  ## @rtl92de_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movl	(%rax), %ebx
	movq	_REG_ATIMWND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_rtl_write_word
	movq	_REG_BCN_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_word
	movq	_REG_BCNTCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$26127, %edx                    ## imm = 0x660F
	callq	_rtl_write_word
	movq	_REG_RXTSF_OFFSET_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_rtl_write_byte
	movq	(%r14), %rax
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	_REG_RXTSF_OFFSET_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$4, %edx
	orl	$32, %edx
	movq	%r14, %rdi
	callq	_rtl_write_byte
	movq	%r14, %rdi
	movl	$1542, %esi                     ## imm = 0x606
	movl	$48, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtl_write_byte                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ATIMWND,4,2                ## @REG_ATIMWND
	.comm	_REG_BCN_INTERVAL,4,2           ## @REG_BCN_INTERVAL
	.comm	_REG_BCNTCFG,4,2                ## @REG_BCNTCFG
	.comm	_REG_RXTSF_OFFSET_CCK,4,2       ## @REG_RXTSF_OFFSET_CCK
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.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	_rtl92de_set_beacon_related_registers ; -- Begin function rtl92de_set_beacon_related_registers
	.p2align	2
_rtl92de_set_beacon_related_registers:  ; @rtl92de_set_beacon_related_registers
	.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	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _REG_ATIMWND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_ATIMWND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	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, x19
	mov	x2, x20
	bl	_rtl_write_word
Lloh6:
	adrp	x8, _REG_BCNTCFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_BCNTCFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #26127
	bl	_rtl_write_word
Lloh9:
	adrp	x8, _REG_RXTSF_OFFSET_CCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_RXTSF_OFFSET_CCK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w20, #32
	mov	x0, x19
	mov	w2, #32
	bl	_rtl_write_byte
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _BAND_ON_5G@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BAND_ON_5G@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _REG_RXTSF_OFFSET_OFDM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REG_RXTSF_OFFSET_OFDM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x10]
	cmp	x8, x9
	mov	w8, #48
	csel	w2, w8, w20, eq
	mov	x0, x19
	bl	_rtl_write_byte
	mov	x0, x19
	mov	w1, #1542
	mov	w2, #48
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl_write_byte
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ATIMWND,4,2                ; @REG_ATIMWND
	.comm	_REG_BCN_INTERVAL,4,2           ; @REG_BCN_INTERVAL
	.comm	_REG_BCNTCFG,4,2                ; @REG_BCNTCFG
	.comm	_REG_RXTSF_OFFSET_CCK,4,2       ; @REG_RXTSF_OFFSET_CCK
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_REG_RXTSF_OFFSET_OFDM,4,2      ; @REG_RXTSF_OFFSET_OFDM
.subsections_via_symbols
