	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_teles3
_reset_teles3:                          ## @reset_teles3
	.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), %rcx
	movq	_ISDN_CTYPE_TELESPCMCIA@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	movq	_ISDN_CTYPE_COMPAQ_ISA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	cmpq	%rax, %rcx
	je	LBB0_6
## %bb.3:
	movl	8(%rbx), %ecx
	addl	$-2, %ecx
	movl	$1, %eax
	cmpl	$13, %ecx
	ja	LBB0_11
## %bb.4:
	movl	$10127, %edx                    ## imm = 0x278F
	btl	%ecx, %edx
	jae	LBB0_11
## %bb.5:
	movslq	%ecx, %rax
	leaq	l_switch.table.reset_teles3(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	addq	$4, %rdi
	movl	%r14d, %esi
	callq	_byteout
	movq	_HZ@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$34, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	incl	%edi
	callq	_HZDELAY
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	orl	$1, %r14d
	movl	%r14d, %esi
	callq	_byteout
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$34, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %r14d
	incl	%r14d
	jmp	LBB0_10
LBB0_6:
	cmpq	%rax, %rcx
	jne	LBB0_8
## %bb.7:
	movl	$255, %esi
	callq	_byteout
	movl	$2, %r14d
	movl	$2, %edi
	callq	_HZDELAY
	movq	24(%rbx), %rdi
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_8:
	movq	16(%rbx), %rdi
	addq	$60, %rdi
	xorl	%esi, %esi
	callq	_byteout
	movl	$2, %r14d
	movl	$2, %edi
	callq	_HZDELAY
	movq	16(%rbx), %rdi
	addq	$60, %rdi
	movl	$1, %esi
LBB0_9:
	callq	_byteout
LBB0_10:
	movl	%r14d, %edi
	callq	_HZDELAY
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_CTYPE_TELESPCMCIA,8,3     ## @ISDN_CTYPE_TELESPCMCIA
	.comm	_ISDN_CTYPE_COMPAQ_ISA,8,3      ## @ISDN_CTYPE_COMPAQ_ISA
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_reset_teles3
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.reset_teles3
l_switch.table.reset_teles3:
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	8                               ## 0x8
	.long	10                              ## 0xa
	.long	12                              ## 0xc
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	14                              ## 0xe

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_teles3
_reset_teles3:                          ; @reset_teles3
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ISDN_CTYPE_TELESPCMCIA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISDN_CTYPE_TELESPCMCIA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #24]
Lloh3:
	adrp	x9, _ISDN_CTYPE_COMPAQ_ISA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISDN_CTYPE_COMPAQ_ISA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_4
; %bb.2:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	mov	w1, #255
	bl	_byteout
	mov	w20, #2
	mov	w0, #2
	bl	_HZDELAY
	ldr	x0, [x19, #24]
	mov	w1, #0
	b	LBB0_8
LBB0_4:
	ldr	w8, [x19, #8]
	sub	w8, w8, #2
	cmp	w8, #13
	b.hi	LBB0_6
; %bb.5:
	mov	w9, #10127
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_9
LBB0_6:
	mov	w0, #1
	b	LBB0_12
LBB0_7:
	ldr	x8, [x19, #16]
	add	x0, x8, #60
	mov	w1, #0
	bl	_byteout
	mov	w20, #2
	mov	w0, #2
	bl	_HZDELAY
	ldr	x8, [x19, #16]
	add	x0, x8, #60
	mov	w1, #1
LBB0_8:
	bl	_byteout
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x9, l_switch.table.reset_teles3@PAGE
Lloh7:
	add	x9, x9, l_switch.table.reset_teles3@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
	add	x0, x0, #4
	mov	x1, x20
	bl	_byteout
Lloh8:
	adrp	x21, _HZ@GOTPAGE
Lloh9:
	ldr	x21, [x21, _HZ@GOTPAGEOFF]
	ldrsw	x8, [x21]
	mov	w22, #26215
	movk	w22, #26214, lsl #16
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w0, w8, #1
	bl	_HZDELAY
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	orr	w1, w20, #0x1
	bl	_byteout
	ldrsw	x8, [x21]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w20, w8, #1
LBB0_10:
	mov	x0, x20
	bl	_HZDELAY
LBB0_11:
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_CTYPE_TELESPCMCIA,8,3     ; @ISDN_CTYPE_TELESPCMCIA
	.comm	_ISDN_CTYPE_COMPAQ_ISA,8,3      ; @ISDN_CTYPE_COMPAQ_ISA
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_reset_teles3
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.reset_teles3
l_switch.table.reset_teles3:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	8                               ; 0x8
	.long	10                              ; 0xa
	.long	12                              ; 0xc
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	14                              ; 0xe

.subsections_via_symbols
