	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm3510_refresh_state
_bcm3510_refresh_state:                 ## @bcm3510_refresh_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	8(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CMD_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MSGID_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	20(%rbx), %r9
	movl	$4, (%rsp)
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bcm3510_do_hab_cmd
	movl	(%r15), %esi
	movq	_MSGID_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%rbx), %r9
	movl	$4, (%rsp)
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bcm3510_do_hab_cmd
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rbx), %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	cltq
	addq	(%r14), %rax
	movq	%rax, 8(%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CMD_STATUS,4,2                 ## @CMD_STATUS
	.comm	_MSGID_STATUS1,4,2              ## @MSGID_STATUS1
	.comm	_MSGID_STATUS2,4,2              ## @MSGID_STATUS2
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_bcm3510_refresh_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm3510_refresh_state
_bcm3510_refresh_state:                 ; @bcm3510_refresh_state
	.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	x19, x0
Lloh0:
	adrp	x20, _jiffies@GOTPAGE
Lloh1:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	x1, [x19, #8]
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x21, _CMD_STATUS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CMD_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _MSGID_STATUS1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSGID_STATUS1@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x5, x19, #20
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	mov	w6, #4
	bl	_bcm3510_do_hab_cmd
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _MSGID_STATUS2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSGID_STATUS2@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x5, x19, #16
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	mov	w6, #4
	bl	_bcm3510_do_hab_cmd
	ldr	x8, [x20]
	ldr	w9, [x19]
Lloh10:
	adrp	x10, _HZ@GOTPAGE
Lloh11:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	x8, x8, w9, sxtw
	str	x8, [x19, #8]
LBB0_2:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CMD_STATUS,4,2                 ; @CMD_STATUS
	.comm	_MSGID_STATUS1,4,2              ; @MSGID_STATUS1
	.comm	_MSGID_STATUS2,4,2              ; @MSGID_STATUS2
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_bcm3510_refresh_state
.subsections_via_symbols
