	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_modem_escape          ## -- Begin function isdn_tty_modem_escape
	.p2align	4, 0x90
_isdn_tty_modem_escape:                 ## @isdn_tty_modem_escape
	.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), %r15
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_dev@GOTPCREL(%rip), %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	16(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_USG_MODEM
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rcx
	movl	(%rcx,%rbx,4), %ecx
	testl	%ecx, %ecx
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %r13
	leaq	(%rcx,%rcx,2), %r14
	cmpq	$0, (%r13,%r14,8)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$3, 8(%r13,%r14,8)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PLUSWAIT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13,%r14,8), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%r14,8), %rsi
	addq	%r13, %rsi
	movl	$0, 8(%rsi)
	movq	$0, (%rsi)
	movq	_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isdn_tty_modem_result
	jmp	LBB0_9
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	_ISDN_TIMER_MODEMPLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	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	_jiffies,4,2                    ## @jiffies
	.comm	_PLUSWAIT2,8,3                  ## @PLUSWAIT2
	.comm	_RESULT_OK,4,2                  ## @RESULT_OK
	.comm	_ISDN_TIMER_MODEMPLUS,4,2       ## @ISDN_TIMER_MODEMPLUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_modem_escape          ; -- Begin function isdn_tty_modem_escape
	.p2align	2
_isdn_tty_modem_escape:                 ; @isdn_tty_modem_escape
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _ISDN_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISDN_MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	mov	w19, #0
Lloh2:
	adrp	x23, _dev@GOTPAGE
Lloh3:
	ldr	x23, [x23, _dev@GOTPAGEOFF]
	mov	w24, #24
Lloh4:
	adrp	x25, _jiffies@GOTPAGE
Lloh5:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PLUSWAIT2@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PLUSWAIT2@GOTPAGEOFF]
Lloh8:
	adrp	x27, _RESULT_OK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _RESULT_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w19, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, x22, lsl #2]
	bl	_USG_MODEM
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23]
	ldr	x8, [x9]
	ldr	w8, [x8, x22, lsl #2]
	tbnz	w8, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x9, #8]
	madd	x20, x8, x24, x9
	ldr	x10, [x20]
	cbz	x10, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x19, x8, x24, x9
	ldr	w10, [x19, #8]!
	cmp	w10, #3
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	madd	x8, x8, x24, x9
	ldr	x8, [x8, #16]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x19]
	str	xzr, [x20]
	ldr	w0, [x27]
	mov	x1, x20
	bl	_isdn_tty_modem_result
	b	LBB0_2
LBB0_10:
	mov	w19, #0
LBB0_11:
Lloh10:
	adrp	x8, _ISDN_TIMER_MODEMPLUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISDN_TIMER_MODEMPLUS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_isdn_timer_ctrl
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_MAX_CHANNELS,4,2          ; @ISDN_MAX_CHANNELS
	.comm	_dev,8,3                        ; @dev
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_PLUSWAIT2,8,3                  ; @PLUSWAIT2
	.comm	_RESULT_OK,4,2                  ; @RESULT_OK
	.comm	_ISDN_TIMER_MODEMPLUS,4,2       ; @ISDN_TIMER_MODEMPLUS
.subsections_via_symbols
