	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_mac_config_tsf         ## -- Begin function mt7601u_mac_config_tsf
	.p2align	4, 0x90
_mt7601u_mac_config_tsf:                ## @mt7601u_mac_config_tsf
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_MT_BEACON_TIME_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_mt7601u_rr
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	_MT_BEACON_TIME_CFG_INTVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$4, %ebx
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIELD_PREP                     ## TAILCALL
LBB0_1:
	movq	_MT_BEACON_TIME_CFG_TIMER_EN@GOTPCREL(%rip), %rcx
	movq	_MT_BEACON_TIME_CFG_SYNC_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MT_BEACON_TIME_CFG_TBTT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7601u_wr                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_BEACON_TIME_CFG,4,2         ## @MT_BEACON_TIME_CFG
	.comm	_MT_BEACON_TIME_CFG_TIMER_EN,4,2 ## @MT_BEACON_TIME_CFG_TIMER_EN
	.comm	_MT_BEACON_TIME_CFG_SYNC_MODE,4,2 ## @MT_BEACON_TIME_CFG_SYNC_MODE
	.comm	_MT_BEACON_TIME_CFG_TBTT_EN,4,2 ## @MT_BEACON_TIME_CFG_TBTT_EN
	.comm	_MT_BEACON_TIME_CFG_INTVAL,4,2  ## @MT_BEACON_TIME_CFG_INTVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_mac_config_tsf         ; -- Begin function mt7601u_mac_config_tsf
	.p2align	2
_mt7601u_mac_config_tsf:                ; @mt7601u_mac_config_tsf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MT_BEACON_TIME_CFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT_BEACON_TIME_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_mt7601u_rr
	cbz	w21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MT_BEACON_TIME_CFG_INTVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_BEACON_TIME_CFG_INTVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	lsl	w1, w20, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_FIELD_PREP
LBB0_2:
Lloh5:
	adrp	x8, _MT_BEACON_TIME_CFG_TIMER_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_BEACON_TIME_CFG_TIMER_EN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MT_BEACON_TIME_CFG_SYNC_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MT_BEACON_TIME_CFG_SYNC_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _MT_BEACON_TIME_CFG_TBTT_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MT_BEACON_TIME_CFG_TBTT_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mt7601u_wr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_BEACON_TIME_CFG,4,2         ; @MT_BEACON_TIME_CFG
	.comm	_MT_BEACON_TIME_CFG_TIMER_EN,4,2 ; @MT_BEACON_TIME_CFG_TIMER_EN
	.comm	_MT_BEACON_TIME_CFG_SYNC_MODE,4,2 ; @MT_BEACON_TIME_CFG_SYNC_MODE
	.comm	_MT_BEACON_TIME_CFG_TBTT_EN,4,2 ; @MT_BEACON_TIME_CFG_TBTT_EN
	.comm	_MT_BEACON_TIME_CFG_INTVAL,4,2  ; @MT_BEACON_TIME_CFG_INTVAL
.subsections_via_symbols
