	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_readmodem             ## -- Begin function isdn_tty_readmodem
	.p2align	4, 0x90
_isdn_tty_readmodem:                    ## @isdn_tty_readmodem
	.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), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_15
## %bb.1:
	xorl	%ebx, %ebx
	movq	_dev@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, 8(%r13,%r12)
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%rdx), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rax
	movq	(%rax), %rcx
	movl	(%rcx,%rbx,4), %ecx
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %r13
	imulq	$56, %rcx, %r12
	cmpq	$0, 48(%r13,%r12)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r13,%r12), %r15
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_UART_MCR_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13,%r12)
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r13,%r12), %rax
	movq	_REG_CPPP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_BIT_CPPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ecx, %ecx
	andl	(%rax,%rdx,4), %esi
	setne	%cl
	movl	12(%r13,%r12), %esi
	movl	16(%r13,%r12), %edi
	movq	%r15, %rdx
	callq	_isdn_readbchan_tty
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_tty_flip_buffer_push
	movl	$1, %edi
	movq	_ISDN_MAX_CHANNELS@GOTPCREL(%rip), %rdx
	movq	_dev@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r14d
	movq	_ISDN_MAX_CHANNELS@GOTPCREL(%rip), %rdx
	movq	_dev@GOTPCREL(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_13:
	testl	%edi, %edi
	je	LBB0_15
## %bb.14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ISDN_TIMER_MODEMREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	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	_UART_MCR_RTS,4,2               ## @UART_MCR_RTS
	.comm	_REG_CPPP,8,3                   ## @REG_CPPP
	.comm	_BIT_CPPP,4,2                   ## @BIT_CPPP
	.comm	_ISDN_TIMER_MODEMREAD,4,2       ## @ISDN_TIMER_MODEMREAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_readmodem             ; -- Begin function isdn_tty_readmodem
	.p2align	2
_isdn_tty_readmodem:                    ; @isdn_tty_readmodem
	.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	x20, _ISDN_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ISDN_MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x21, #0
	mov	w24, #0
Lloh2:
	adrp	x22, _dev@GOTPAGE
Lloh3:
	ldr	x22, [x22, _dev@GOTPAGEOFF]
	mov	w23, #56
Lloh4:
	adrp	x25, _UART_MCR_RTS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _UART_MCR_RTS@GOTPAGEOFF]
Lloh6:
	adrp	x27, _BIT_CPPP@GOTPAGE
Lloh7:
	ldr	x27, [x27, _BIT_CPPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_tty_flip_buffer_push
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
	mov	w24, #1
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	madd	x9, x28, x23, x26
	str	w8, [x9, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x8]
	ldr	w28, [x9, x21, lsl #2]
	tbnz	w28, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [x8, #8]
	madd	x8, x28, x23, x26
	ldr	x8, [x8, #48]
	cbz	x8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x28, x23, x26
	ldr	x19, [x8, #40]
	cbz	x19, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x28, x23, x26
	ldr	w8, [x8, #4]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x28, x23, x26
	ldr	x9, [x8, #24]
Lloh8:
	adrp	x10, _REG_CPPP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _REG_CPPP@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	ldr	w10, [x27]
	tst	w10, w9
	cset	w3, ne
	ldp	w1, w0, [x8, #12]
	mov	x2, x19
	bl	_isdn_readbchan_tty
	cbnz	w0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	b	LBB0_4
LBB0_12:
	cbz	w24, LBB0_14
; %bb.13:
	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
	ret
LBB0_14:
Lloh11:
	adrp	x8, _ISDN_TIMER_MODEMREAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISDN_TIMER_MODEMREAD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_MAX_CHANNELS,4,2          ; @ISDN_MAX_CHANNELS
	.comm	_dev,8,3                        ; @dev
	.comm	_UART_MCR_RTS,4,2               ; @UART_MCR_RTS
	.comm	_REG_CPPP,8,3                   ; @REG_CPPP
	.comm	_BIT_CPPP,4,2                   ; @BIT_CPPP
	.comm	_ISDN_TIMER_MODEMREAD,4,2       ; @ISDN_TIMER_MODEMREAD
.subsections_via_symbols
