	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_carrier_timeout       ## -- Begin function isdn_tty_carrier_timeout
	.p2align	4, 0x90
_isdn_tty_carrier_timeout:              ## @isdn_tty_carrier_timeout
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ISDN_MAX_CHANNELS@GOTPCREL(%rip), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_dev@GOTPCREL(%rip), %r12
	movq	_REG_WAITC@GOTPCREL(%rip), %r9
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%rdi), %rax
	addq	$24, %rbx
	movl	%esi, %r14d
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %r15
	cmpq	$0, (%r15,%rbx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	16(%r15,%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r15,%rbx)
	movq	8(%r15,%rbx), %rcx
	movq	(%r9), %rdx
	movl	$1, %esi
	cmpq	%rax, (%rcx,%rdx,8)
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r15,%rbx)
	addq	%rbx, %r15
	movq	_RESULT_NO_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_isdn_tty_modem_result
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_isdn_tty_modem_hup
	movq	_REG_WAITC@GOTPCREL(%rip), %r9
	movq	_ISDN_MAX_CHANNELS@GOTPCREL(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	xorl	%esi, %esi
LBB0_8:
	movq	_ISDN_TIMER_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isdn_timer_ctrl                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_MAX_CHANNELS,4,2          ## @ISDN_MAX_CHANNELS
	.comm	_dev,8,3                        ## @dev
	.comm	_REG_WAITC,8,3                  ## @REG_WAITC
	.comm	_RESULT_NO_CARRIER,4,2          ## @RESULT_NO_CARRIER
	.comm	_ISDN_TIMER_CARRIER,4,2         ## @ISDN_TIMER_CARRIER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_carrier_timeout       ; -- Begin function isdn_tty_carrier_timeout
	.p2align	2
_isdn_tty_carrier_timeout:              ; @isdn_tty_carrier_timeout
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x21, _ISDN_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISDN_MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w19, #0
Lloh2:
	adrp	x24, _dev@GOTPAGE
Lloh3:
	ldr	x24, [x24, _dev@GOTPAGEOFF]
Lloh4:
	adrp	x25, _REG_WAITC@GOTPAGE
Lloh5:
	ldr	x25, [x25, _REG_WAITC@GOTPAGEOFF]
Lloh6:
	adrp	x26, _RESULT_NO_CARRIER@GOTPAGE
Lloh7:
	ldr	x26, [x26, _RESULT_NO_CARRIER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x8, x22]
	ldr	w0, [x26]
	mov	x1, x20
	bl	_isdn_tty_modem_result
	mov	x0, x20
	mov	w1, #1
	bl	_isdn_tty_modem_hup
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #24
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8]
	add	x20, x8, x22
	ldr	x9, [x20]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x20, #16]
	add	w10, w9, #1
	str	w10, [x20, #16]
	ldr	x10, [x20, #8]
	ldr	x11, [x25]
	ldr	x10, [x10, x11, lsl #3]
	cmp	x10, x9
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w19, #1
	b	LBB0_3
LBB0_7:
	mov	w19, #0
LBB0_8:
Lloh8:
	adrp	x8, _ISDN_TIMER_CARRIER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISDN_TIMER_CARRIER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_isdn_timer_ctrl
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_MAX_CHANNELS,4,2          ; @ISDN_MAX_CHANNELS
	.comm	_dev,8,3                        ; @dev
	.comm	_REG_WAITC,8,3                  ; @REG_WAITC
	.comm	_RESULT_NO_CARRIER,4,2          ; @RESULT_NO_CARRIER
	.comm	_ISDN_TIMER_CARRIER,4,2         ; @ISDN_TIMER_CARRIER
.subsections_via_symbols
