	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdn_tty_getdial
_isdn_tty_getdial:                      ## @isdn_tty_getdial
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ISDN_MSNLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movsbl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	decl	%r13d
	incq	%rbx
	movb	$1, %cl
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %r15d
	jl	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-48(%rax), %edx
	cmpb	$10, %dl
	jb	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edx
	andb	$-2, %dl
	cmpb	$82, %dl
	sete	%dl
	testb	%dl, %cl
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$42, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$35, %al
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, (%r14)
	incq	%r14
	decl	%r13d
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_strchr
	incq	%rbx
	decl	%r15d
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_11:
	movb	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_MSNLEN,4,2                ## @ISDN_MSNLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" 0123456789,#.*WPTSR-"

	.no_dead_strip	_isdn_tty_getdial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isdn_tty_getdial
_isdn_tty_getdial:                      ; @isdn_tty_getdial
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ISDN_MSNLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISDN_MSNLEN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldrsb	w1, [x0]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.1:
	sub	w22, w22, #1
	add	x23, x21, #1
	mov	w8, #1
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w9, [x23, #-1]
	cmp	w9, #0
	ccmp	w20, #2, #8, ne
	b.lt	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w9, #48
	cmp	w10, #10
	b.lo	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w10, w9, #0xfe
	cmp	w10, #82
	cset	w10, eq
	and	w8, w8, w10
	tbnz	w8, #0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w9, #0xff
	cmp	w8, #42
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #35
	b.ne	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	strb	w9, [x19], #1
	sub	w22, w22, #1
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w22, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w1, [x23], #1
	mov	x0, x21
	bl	_strchr
	mov	w8, #0
	sub	w20, w20, #1
	cbnz	x0, LBB0_2
LBB0_10:
	strb	wzr, [x19]
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_MSNLEN,4,2                ; @ISDN_MSNLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" 0123456789,#.*WPTSR-"

	.no_dead_strip	_isdn_tty_getdial
.subsections_via_symbols
