	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in6_prefixlen2mask             ## -- Begin function in6_prefixlen2mask
	.p2align	4, 0x90
_in6_prefixlen2mask:                    ## @in6_prefixlen2mask
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	cmpl	$129, %esi
	jb	LBB0_1
## %bb.6:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log                            ## TAILCALL
LBB0_1:
	movq	%rdi, %r14
	movl	$8, %esi
	callq	_bzero
	movl	%ebx, %r15d
	shrl	$3, %r15d
	movl	%ebx, %r12d
	andl	$7, %r12d
	cmpl	$8, %ebx
	jb	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	leal	(,%r15,4), %edx
	andl	$124, %edx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	decl	%r12d
	leaq	l___const.in6_prefixlen2mask.maskarray(%rip), %rax
	movl	(%rax,%r12,4), %eax
	movq	(%r14), %rcx
	movl	%r15d, %edx
	movl	%eax, (%rcx,%rdx,4)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.in6_prefixlen2mask.maskarray
l___const.in6_prefixlen2mask.maskarray:
	.long	128                             ## 0x80
	.long	192                             ## 0xc0
	.long	224                             ## 0xe0
	.long	240                             ## 0xf0
	.long	248                             ## 0xf8
	.long	252                             ## 0xfc
	.long	254                             ## 0xfe
	.long	255                             ## 0xff

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in6_prefixlen2mask: invalid prefix length(%d)\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in6_prefixlen2mask             ; -- Begin function in6_prefixlen2mask
	.p2align	2
_in6_prefixlen2mask:                    ; @in6_prefixlen2mask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	cmp	w1, #129
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_log
LBB0_2:
	mov	x19, x0
	mov	w1, #8
	bl	_bzero
	lsr	w21, w20, #3
	and	w22, w20, #0x7
	cmp	w20, #8
	b.lo	LBB0_4
; %bb.3:
	ldr	x0, [x19]
	ubfiz	w2, w21, #2, #5
Lloh5:
	adrp	x1, l_.memset_pattern@PAGE
Lloh6:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, l___const.in6_prefixlen2mask.maskarray@PAGE
Lloh8:
	add	x8, x8, l___const.in6_prefixlen2mask.maskarray@PAGEOFF
	sub	w9, w22, #1
	ldr	w8, [x8, w9, uxtw #2]
	ldr	x9, [x19]
	str	w8, [x9, w21, uxtw #2]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.in6_prefixlen2mask.maskarray
l___const.in6_prefixlen2mask.maskarray:
	.long	128                             ; 0x80
	.long	192                             ; 0xc0
	.long	224                             ; 0xe0
	.long	240                             ; 0xf0
	.long	248                             ; 0xf8
	.long	252                             ; 0xfc
	.long	254                             ; 0xfe
	.long	255                             ; 0xff

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in6_prefixlen2mask: invalid prefix length(%d)\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

.subsections_via_symbols
