	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_clnp_prefix
_decode_clnp_prefix:                    ## @decode_clnp_prefix
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %edi
	callq	_ND_TCHECK
	movl	(%r14), %r13d
	movl	$-1, %ebx
	cmpl	$152, %r13d
	jg	LBB0_4
## %bb.1:
	movl	%r15d, -132(%rbp)               ## 4-byte Spill
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$76, %edx
	callq	_memset
	movl	16(%r14), %edi
	addq	$16, %r14
	leal	7(%r13), %r15d
	leal	14(%r13), %ebx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	sarl	$3, %ebx
	movl	%ebx, %esi
	callq	_ND_TCHECK2
	leaq	-128(%rbp), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	testl	%r13d, %r13d
	cmovnsl	%r13d, %r15d
	andl	$-8, %r15d
	movl	%r13d, %ecx
	subl	%r15d, %ecx
	je	LBB0_3
## %bb.2:
	movl	$65280, %eax                    ## imm = 0xFF00
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movslq	%ebx, %rcx
	movzbl	-132(%rbp,%rcx,4), %edx
	andl	%eax, %edx
	movl	%edx, -132(%rbp,%rcx,4)
LBB0_3:
	leaq	-128(%rbp), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_isonsap_string
	leaq	L_.str(%rip), %rdx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	-132(%rbp), %esi                ## 4-byte Reload
	movq	%rax, %rcx
	movl	%r13d, %r8d
	callq	_snprintf
	incl	%ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%d"

	.no_dead_strip	_decode_clnp_prefix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_clnp_prefix
_decode_clnp_prefix:                    ; @decode_clnp_prefix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w0, [x1]
	bl	_ND_TCHECK
	ldr	w21, [x24]
	cmp	w21, #152
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	add	x25, sp, #12
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #76
	bl	_memset
	ldr	w0, [x24, #16]!
	add	w8, w21, #7
	add	w9, w21, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w23, w8, #3
	mov	x1, x23
	bl	_ND_TCHECK2
	add	x0, sp, #12
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	negs	w8, w21
	and	w8, w8, #0x7
	and	w9, w21, #0x7
	csneg	w8, w9, w8, mi
	cbz	w8, LBB0_4
; %bb.3:
	mov	w9, #65280
	lsr	w8, w9, w8
	add	x9, x25, w23, sxtw #2
	ldurb	w10, [x9, #-4]
	and	w8, w8, w10
	stur	w8, [x9, #-4]
LBB0_4:
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x23
	bl	_isonsap_string
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_snprintf
	add	w0, w23, #1
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%d"

	.no_dead_strip	_decode_clnp_prefix
.subsections_via_symbols
