	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdn_tty_cmd_ATS
_isdn_tty_cmd_ATS:                      ## @isdn_tty_cmd_ATS
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_isdn_getnum
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movsbl	(%rax), %ecx
	cmpl	$46, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$63, %ecx
	je	LBB0_8
## %bb.2:
	cmpl	$61, %ecx
	jne	LBB0_9
## %bb.3:
	incq	%rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_isdn_getnum
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r15, %rcx
	callq	_isdn_tty_check_ats
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_9
LBB0_4:
	incq	%rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_isdn_getnum
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movsbl	(%rax), %ecx
	cmpl	$63, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	$61, %ecx
	jne	LBB0_9
## %bb.6:
	incq	%rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_isdn_getnum
	movq	(%r15), %rcx
	movslq	%r14d, %r13
	movl	(%rcx,%r13,4), %ebx
	movl	%ebx, %ecx
	btrl	%r12d, %ecx
	btsl	%r12d, %ebx
	testl	%eax, %eax
	cmovel	%ecx, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r15, %rcx
	callq	_isdn_tty_check_ats
	movq	(%r15), %rax
	movl	%ebx, (%rax,%r13,4)
	jmp	LBB0_9
LBB0_8:
	incq	%rax
	movq	%rax, (%rbx)
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_isdn_tty_show_profile
	jmp	LBB0_9
LBB0_7:
	incq	%rax
	movq	%rax, (%rbx)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_isdn_tty_at_cout
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %eax
	btl	%r12d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmovaeq	%rax, %rdi
	movq	%r15, %rsi
	callq	_isdn_tty_at_cout
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_MODEM_NUMREG,4,2          ## @ISDN_MODEM_NUMREG
	.comm	_PARSE_ERROR1,4,2               ## @PARSE_ERROR1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"1"

L_.str.2:                               ## @.str.2
	.asciz	"0"

	.no_dead_strip	_isdn_tty_cmd_ATS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isdn_tty_cmd_ATS
_isdn_tty_cmd_ATS:                      ; @isdn_tty_cmd_ATS
	.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	x19, x1
	mov	x21, x0
	bl	_isdn_getnum
	mov	x20, x0
	ldr	x8, [x21]
	ldrsb	w9, [x8]
	cmp	w9, #46
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #63
	b.eq	LBB0_7
; %bb.2:
	cmp	w9, #61
	b.ne	LBB0_9
; %bb.3:
	add	x8, x8, #1
	str	x8, [x21]
	mov	x0, x21
	bl	_isdn_getnum
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x19
	bl	_isdn_tty_check_ats
	ldr	x8, [x19]
	str	w21, [x8, w20, sxtw #2]
	b	LBB0_9
LBB0_4:
	add	x8, x8, #1
	str	x8, [x21]
	mov	x0, x21
	bl	_isdn_getnum
	mov	x22, x0
	ldr	x8, [x21]
	ldrsb	w9, [x8]
	cmp	w9, #63
	b.eq	LBB0_8
; %bb.5:
	cmp	w9, #61
	b.ne	LBB0_9
; %bb.6:
	add	x8, x8, #1
	str	x8, [x21]
	mov	x0, x21
	bl	_isdn_getnum
	ldr	x8, [x19]
	sbfiz	x23, x20, #2, #32
	ldr	w8, [x8, x23]
	mov	w9, #1
	lsl	w9, w9, w22
	bic	w10, w8, w9
	orr	w8, w8, w9
	cmp	w0, #0
	csel	w21, w10, w8, eq
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x19
	bl	_isdn_tty_check_ats
	ldr	x8, [x19]
	str	w21, [x8, x23]
	b	LBB0_9
LBB0_7:
	add	x8, x8, #1
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_isdn_tty_show_profile
	b	LBB0_9
LBB0_8:
	add	x8, x8, #1
	str	x8, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_isdn_tty_at_cout
	ldr	x8, [x19]
	ldr	w8, [x8, w20, sxtw #2]
	lsr	w8, w8, w22
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, #0x1
	csel	x0, x10, x9, eq
	mov	x1, x19
	bl	_isdn_tty_at_cout
LBB0_9:
	mov	w0, #0
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_MODEM_NUMREG,4,2          ; @ISDN_MODEM_NUMREG
	.comm	_PARSE_ERROR1,4,2               ; @PARSE_ERROR1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"1"

l_.str.2:                               ; @.str.2
	.asciz	"0"

	.no_dead_strip	_isdn_tty_cmd_ATS
.subsections_via_symbols
