	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mibif_reset_hc_timer           ## -- Begin function mibif_reset_hc_timer
	.p2align	4, 0x90
_mibif_reset_hc_timer:                  ## @mibif_reset_hc_timer
	.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	_mibif_force_hc_update_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.1:
	movq	_mibif_maxspeed@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movl	$10, %edi
	callq	_IF_Mbps
	movl	$300000, %ebx                   ## imm = 0x493E0
	cmpq	%rax, %r15
	jle	LBB0_5
## %bb.2:
	movq	(%r14), %r15
	movl	$100, %edi
	callq	_IF_Mbps
	movl	$30000, %ebx                    ## imm = 0x7530
	cmpq	%rax, %r15
	jle	LBB0_5
## %bb.3:
	movq	(%r14), %r15
	movl	$622, %edi                      ## imm = 0x26E
	callq	_IF_Mbps
	movl	$4000, %ebx                     ## imm = 0xFA0
	cmpq	%rax, %r15
	jl	LBB0_5
## %bb.4:
	movq	(%r14), %rbx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_IF_Mbps
	cmpq	%rax, %rbx
	movl	$100, %eax
	movl	$2000, %ebx                     ## imm = 0x7D0
	cmovgl	%eax, %ebx
LBB0_5:
	movq	_mibif_hc_update_interval@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ebx
	je	LBB0_10
## %bb.6:
	movq	_hc_update_timer@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_timer_stop
	movq	$0, (%r15)
LBB0_8:
	xorl	%edi, %edi
	callq	_update_hc_counters
	movq	_update_hc_counters@GOTPCREL(%rip), %rdx
	movq	_module@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %edi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_timer_start_repeat
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	%ebx, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_syslog                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mibif_force_hc_update_interval,4,2 ## @mibif_force_hc_update_interval
	.comm	_mibif_maxspeed,8,3             ## @mibif_maxspeed
	.comm	_mibif_hc_update_interval,4,2   ## @mibif_hc_update_interval
	.comm	_hc_update_timer,8,3            ## @hc_update_timer
	.comm	_module,4,2                     ## @module
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timer_start(%u): %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mibif_reset_hc_timer           ; -- Begin function mibif_reset_hc_timer
	.p2align	2
_mibif_reset_hc_timer:                  ; @mibif_reset_hc_timer
	.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
Lloh0:
	adrp	x8, _mibif_force_hc_update_interval@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mibif_force_hc_update_interval@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbnz	w19, LBB0_8
; %bb.1:
Lloh3:
	adrp	x19, _mibif_maxspeed@GOTPAGE
Lloh4:
	ldr	x19, [x19, _mibif_maxspeed@GOTPAGEOFF]
	ldr	x20, [x19]
	mov	w0, #10
	bl	_IF_Mbps
	cmp	x20, x0
	b.le	LBB0_5
; %bb.2:
	ldr	x20, [x19]
	mov	w0, #100
	bl	_IF_Mbps
	cmp	x20, x0
	b.le	LBB0_6
; %bb.3:
	ldr	x20, [x19]
	mov	w0, #622
	bl	_IF_Mbps
	cmp	x20, x0
	b.ge	LBB0_7
; %bb.4:
	mov	w19, #4000
	b	LBB0_8
LBB0_5:
	mov	w19, #37856
	movk	w19, #4, lsl #16
	b	LBB0_8
LBB0_6:
	mov	w19, #30000
	b	LBB0_8
LBB0_7:
	ldr	x19, [x19]
	mov	w0, #1000
	bl	_IF_Mbps
	cmp	x19, x0
	mov	w8, #2000
	mov	w9, #100
	csel	w19, w9, w8, gt
LBB0_8:
Lloh5:
	adrp	x20, _mibif_hc_update_interval@GOTPAGE
Lloh6:
	ldr	x20, [x20, _mibif_hc_update_interval@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w19, w8
	b.eq	LBB0_13
; %bb.9:
Lloh7:
	adrp	x21, _hc_update_timer@GOTPAGE
Lloh8:
	ldr	x21, [x21, _hc_update_timer@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_timer_stop
	str	xzr, [x21]
LBB0_11:
	mov	x0, #0
	bl	_update_hc_counters
Lloh9:
	adrp	x2, _update_hc_counters@GOTPAGE
Lloh10:
	ldr	x2, [x2, _update_hc_counters@GOTPAGEOFF]
Lloh11:
	adrp	x8, _module@GOTPAGE
Lloh12:
	ldr	x8, [x8, _module@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x19
	mov	x3, #0
	bl	_timer_start_repeat
	str	x0, [x21]
	cbz	x0, LBB0_14
; %bb.12:
	str	w19, [x20]
LBB0_13:
	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
LBB0_14:
Lloh14:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, 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	_syslog
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mibif_force_hc_update_interval,4,2 ; @mibif_force_hc_update_interval
	.comm	_mibif_maxspeed,8,3             ; @mibif_maxspeed
	.comm	_mibif_hc_update_interval,4,2   ; @mibif_hc_update_interval
	.comm	_hc_update_timer,8,3            ; @hc_update_timer
	.comm	_module,4,2                     ; @module
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timer_start(%u): %m"

.subsections_via_symbols
