	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdn_ppp_if_get_unit
_isdn_ppp_if_get_unit:                  ## @isdn_ppp_if_get_unit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strncmp
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.1:
	cmpl	$8, %r14d
	jg	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	movl	$0, %edx
	movl	$0, %ecx
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.3:
	leal	-1(%r14), %ecx
	movslq	%ecx, %rcx
	movzbl	(%rbx,%rcx), %esi
	leal	-48(%rsi), %edi
	movl	$0, %edx
	movl	$0, %ecx
	cmpb	$9, %dil
	ja	LBB0_10
## %bb.4:
	addl	$-48, %esi
	cmpl	$1, %r14d
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %edx
	jmp	LBB0_9
LBB0_6:
	leal	-2(%r14), %ecx
	movslq	%ecx, %rcx
	movzbl	(%rbx,%rcx), %ecx
	leal	-48(%rcx), %edi
	movl	$1, %edx
	cmpb	$9, %dil
	ja	LBB0_9
## %bb.7:
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rsi,%rcx,2), %ecx
	addl	$-480, %ecx                     ## imm = 0xFE20
	cmpl	$2, %r14d
	jne	LBB0_12
LBB0_8:
	movl	%r14d, %edx
	jmp	LBB0_10
LBB0_9:
	movl	%esi, %ecx
LBB0_10:
	subl	%edx, %r14d
	cmpl	$4, %r14d
	movl	$-1, %esi
	cmovel	%ecx, %esi
	cmpl	$1, %edx
	sbbl	%eax, %eax
	orl	%esi, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	leal	-3(%r14), %edx
	movslq	%edx, %rdx
	movzbl	(%rbx,%rdx), %esi
	leal	-48(%rsi), %edi
	movl	$2, %edx
	cmpb	$9, %dil
	ja	LBB0_10
## %bb.13:
	imull	$100, %esi, %edx
	addl	%edx, %ecx
	addl	$-4800, %ecx                    ## imm = 0xED40
	cmpl	$3, %r14d
	je	LBB0_8
## %bb.14:
	leal	-4(%r14), %edx
	movslq	%edx, %rdx
	movzbl	(%rbx,%rdx), %esi
	leal	-48(%rsi), %edi
	movl	$3, %edx
	cmpb	$9, %dil
	ja	LBB0_10
## %bb.15:
	imull	$1000, %esi, %edx               ## imm = 0x3E8
	addl	%edx, %ecx
	addl	$-48000, %ecx                   ## imm = 0xFFFF4480
	cmpl	$4, %r14d
	je	LBB0_8
## %bb.16:
	leal	-5(%r14), %edx
	movslq	%edx, %rdx
	movzbl	(%rbx,%rdx), %esi
	leal	-48(%rsi), %edi
	movl	$4, %edx
	cmpb	$9, %dil
	ja	LBB0_10
## %bb.17:
	imull	$10000, %esi, %edx              ## imm = 0x2710
	addl	%edx, %ecx
	addl	$-480000, %ecx                  ## imm = 0xFFF8AD00
	cmpl	$5, %r14d
	je	LBB0_8
## %bb.18:
	leal	-6(%r14), %edx
	movslq	%edx, %rdx
	movzbl	(%rbx,%rdx), %esi
	leal	-48(%rsi), %edi
	movl	$5, %edx
	cmpb	$9, %dil
	ja	LBB0_10
## %bb.19:
	imull	$100000, %esi, %edx             ## imm = 0x186A0
	addl	%edx, %ecx
	addl	$-4800000, %ecx                 ## imm = 0xFFB6C200
	cmpl	$6, %r14d
	je	LBB0_8
## %bb.20:
	leal	-7(%r14), %edx
	movslq	%edx, %rdx
	movzbl	(%rbx,%rdx), %esi
	leal	-48(%rsi), %edi
	movl	$6, %edx
	cmpb	$9, %dil
	ja	LBB0_10
## %bb.21:
	imull	$1000000, %esi, %edx            ## imm = 0xF4240
	addl	%edx, %ecx
	addl	$-48000000, %ecx                ## imm = 0xFD239400
	cmpl	$7, %r14d
	je	LBB0_8
## %bb.22:
	leal	-8(%r14), %edx
	movslq	%edx, %rdx
	movzbl	(%rbx,%rdx), %esi
	leal	-48(%rsi), %edi
	movl	$7, %edx
	cmpb	$9, %dil
	ja	LBB0_10
## %bb.23:
	imull	$10000000, %esi, %edx           ## imm = 0x989680
	addl	%edx, %ecx
	addl	$-480000000, %ecx               ## imm = 0xE363C800
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ippp"

	.no_dead_strip	_isdn_ppp_if_get_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isdn_ppp_if_get_unit
_isdn_ppp_if_get_unit:                  ; @isdn_ppp_if_get_unit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_strlen
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	w2, #4
	bl	_strncmp
	cmp	x0, #0
	ccmp	w19, #8, #0, eq
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_8
LBB0_2:
	subs	w8, w19, #1
	b.lt	LBB0_6
; %bb.3:
	ldrb	w8, [x20, w8, sxtw]
	sub	w8, w8, #48
	cmp	w8, #9
	b.hi	LBB0_6
; %bb.4:
	cmp	w19, #1
	b.ne	LBB0_9
LBB0_5:
	mov	x9, x19
	b	LBB0_7
LBB0_6:
	mov	w9, #0
	mov	w8, #0
LBB0_7:
	sub	w10, w19, w9
	cmp	w10, #4
	ccmp	w9, #0, #4, eq
	csinv	w0, w8, wzr, ne
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	sub	w9, w19, #2
	ldrb	w9, [x20, w9, sxtw]
	sub	w10, w9, #48
	cmp	w10, #9
	b.hi	LBB0_23
; %bb.10:
	mov	w10, #10
	madd	w8, w9, w10, w8
	sub	w8, w8, #480
	cmp	w19, #2
	b.eq	LBB0_5
; %bb.11:
	sub	w9, w19, #3
	ldrb	w9, [x20, w9, sxtw]
	sub	w10, w9, #48
	cmp	w10, #9
	b.hi	LBB0_24
; %bb.12:
	mov	w10, #100
	madd	w8, w9, w10, w8
	mov	w9, #-4800
	add	w8, w8, w9
	cmp	w19, #3
	b.eq	LBB0_5
; %bb.13:
	sub	w9, w19, #4
	ldrb	w9, [x20, w9, sxtw]
	sub	w10, w9, #48
	cmp	w10, #9
	b.hi	LBB0_25
; %bb.14:
	mov	w10, #1000
	madd	w8, w9, w10, w8
	mov	w9, #-48000
	add	w8, w8, w9
	cmp	w19, #4
	b.eq	LBB0_5
; %bb.15:
	sub	w9, w19, #5
	ldrb	w9, [x20, w9, sxtw]
	sub	w10, w9, #48
	cmp	w10, #9
	b.hi	LBB0_26
; %bb.16:
	mov	w10, #10000
	madd	w8, w9, w10, w8
	sub	w8, w8, #117, lsl #12           ; =479232
	sub	w8, w8, #768
	cmp	w19, #5
	b.eq	LBB0_5
; %bb.17:
	sub	w9, w19, #6
	ldrb	w9, [x20, w9, sxtw]
	sub	w10, w9, #48
	cmp	w10, #9
	b.hi	LBB0_27
; %bb.18:
	mov	w10, #34464
	movk	w10, #1, lsl #16
	madd	w8, w9, w10, w8
	sub	w8, w8, #1171, lsl #12          ; =4796416
	sub	w8, w8, #3584
	cmp	w19, #6
	b.eq	LBB0_5
; %bb.19:
	sub	w9, w19, #7
	ldrb	w9, [x20, w9, sxtw]
	sub	w10, w9, #48
	cmp	w10, #9
	b.hi	LBB0_28
; %bb.20:
	mov	w10, #16960
	movk	w10, #15, lsl #16
	madd	w8, w9, w10, w8
	mov	w9, #37888
	movk	w9, #64803, lsl #16
	add	w8, w8, w9
	cmp	w19, #7
	b.eq	LBB0_5
; %bb.21:
	sub	w9, w19, #8
	ldrb	w9, [x20, w9, sxtw]
	sub	w10, w9, #48
	cmp	w10, #9
	b.hi	LBB0_29
; %bb.22:
	mov	w10, #38528
	movk	w10, #152, lsl #16
	madd	w8, w9, w10, w8
	mov	w9, #51200
	movk	w9, #58211, lsl #16
	add	w8, w8, w9
	b	LBB0_5
LBB0_23:
	mov	w9, #1
	b	LBB0_7
LBB0_24:
	mov	w9, #2
	b	LBB0_7
LBB0_25:
	mov	w9, #3
	b	LBB0_7
LBB0_26:
	mov	w9, #4
	b	LBB0_7
LBB0_27:
	mov	w9, #5
	b	LBB0_7
LBB0_28:
	mov	w9, #6
	b	LBB0_7
LBB0_29:
	mov	w9, #7
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ippp"

	.no_dead_strip	_isdn_ppp_if_get_unit
.subsections_via_symbols
