	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_modem_ring            ## -- Begin function isdn_tty_modem_ring
	.p2align	4, 0x90
_isdn_tty_modem_ring:                   ## @isdn_tty_modem_ring
	.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), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_dev@GOTPCREL(%rip), %r15
	movq	_UART_MSR_RI@GOTPCREL(%rip), %r12
	movq	_RESULT_RING@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	%ecx, %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%r12), %edx
	testl	%edx, (%rax,%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %rax
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_isdn_tty_modem_result
	movq	_ISDN_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	jmp	LBB0_5
LBB0_1:
	xorl	%esi, %esi
LBB0_6:
	movq	_ISDN_TIMER_MODEMRING@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	_UART_MSR_RI,4,2                ## @UART_MSR_RI
	.comm	_RESULT_RING,4,2                ## @RESULT_RING
	.comm	_ISDN_TIMER_MODEMRING,4,2       ## @ISDN_TIMER_MODEMRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_tty_modem_ring            ; -- Begin function isdn_tty_modem_ring
	.p2align	2
_isdn_tty_modem_ring:                   ; @isdn_tty_modem_ring
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x19, _ISDN_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ISDN_MAX_CHANNELS@GOTPAGEOFF]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	mov	x21, #0
	mov	w1, #0
Lloh2:
	adrp	x22, _dev@GOTPAGE
Lloh3:
	ldr	x22, [x22, _dev@GOTPAGEOFF]
Lloh4:
	adrp	x23, _UART_MSR_RI@GOTPAGE
Lloh5:
	ldr	x23, [x23, _UART_MSR_RI@GOTPAGEOFF]
Lloh6:
	adrp	x24, _RESULT_RING@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RESULT_RING@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x20, x20, #4
	cmp	x21, w9, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x8, x8, x20
	ldr	w10, [x8]
	ldr	w11, [x23]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	mov	x1, x8
	bl	_isdn_tty_modem_result
	ldr	w9, [x19]
	mov	w1, #1
	b	LBB0_2
LBB0_5:
	mov	w1, #0
LBB0_6:
Lloh8:
	adrp	x8, _ISDN_TIMER_MODEMRING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISDN_TIMER_MODEMRING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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	_UART_MSR_RI,4,2                ; @UART_MSR_RI
	.comm	_RESULT_RING,4,2                ; @RESULT_RING
	.comm	_ISDN_TIMER_MODEMRING,4,2       ; @ISDN_TIMER_MODEMRING
.subsections_via_symbols
