	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdn_tty_check_ats
_isdn_tty_check_ats:                    ## @isdn_tty_check_ats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_6
## %bb.1:
	movl	$1, %eax
	leaq	LJTI0_0(%rip), %r8
	movslq	(%r8,%rdi,4), %rdi
	addq	%r8, %rdi
	jmpq	*%rdi
LBB0_7:
	popq	%rbp
	retq
LBB0_2:
	movq	_ISDN_PROTO_L2_MAX@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jl	LBB0_7
	jmp	LBB0_6
LBB0_3:
	shll	$4, %esi
	movq	_ISDN_SERIAL_XMIT_MAX@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jg	LBB0_7
## %bb.4:
	movl	%esi, (%rdx)
	movq	(%rcx), %rax
	movl	$-133, %ecx
	addl	528(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_6
## %bb.5:
	movslq	%esi, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, (%rdx)
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_ISDN_PROTO_L2_MAX,4,2          ## @ISDN_PROTO_L2_MAX
	.comm	_ISDN_SERIAL_XMIT_MAX,4,2       ## @ISDN_SERIAL_XMIT_MAX
	.comm	_REG_SI1,8,3                    ## @REG_SI1
	.comm	_VBUFX,4,2                      ## @VBUFX
	.no_dead_strip	_isdn_tty_check_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_check_ats
_isdn_tty_check_ats:                    ; @isdn_tty_check_ats
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.1:
	mov	w0, #1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ret
LBB0_3:
Lloh2:
	adrp	x8, _ISDN_PROTO_L2_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISDN_PROTO_L2_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_9
; %bb.4:
	mov	w0, #1
	ret
LBB0_5:
	lsl	w8, w1, #4
Lloh5:
	adrp	x9, _ISDN_SERIAL_XMIT_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISDN_SERIAL_XMIT_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.6:
	mov	w0, #1
	ret
LBB0_7:
	str	w8, [x2]
	ldr	x9, [x3]
	ldr	w9, [x9, #528]
	sub	w9, w9, #133
	cmp	w9, #2
	b.hi	LBB0_9
; %bb.8:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x2]
LBB0_9:
	mov	w0, #0
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_ISDN_PROTO_L2_MAX,4,2          ; @ISDN_PROTO_L2_MAX
	.comm	_ISDN_SERIAL_XMIT_MAX,4,2       ; @ISDN_SERIAL_XMIT_MAX
	.comm	_REG_SI1,8,3                    ; @REG_SI1
	.comm	_VBUFX,4,2                      ; @VBUFX
	.no_dead_strip	_isdn_tty_check_ats
.subsections_via_symbols
