	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prefixlen
_prefixlen:                             ## @prefixlen
	.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, %r14
	callq	_atoi
	movq	_RTA_NETMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_rtm_addrs@GOTPCREL(%rip), %rdx
	orl	%ecx, (%rdx)
	movl	%eax, %ebx
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_memset
	cmpl	$8, %ebx
	jb	LBB0_5
## %bb.3:
	movl	%ebx, %edx
	shrl	$3, %edx
	movl	$255, %esi
	jmp	LBB0_4
LBB0_1:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errx
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_4:
	callq	_memset
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTA_NETMASK,4,2                ## @RTA_NETMASK
	.comm	_rtm_addrs,4,2                  ## @rtm_addrs
	.comm	_af,4,2                         ## @af
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prefixlen not supported in this af"

	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
L_.str.1:                               ## @.str.1
	.asciz	"%s: invalid prefixlen"

	.comm	_RTAX_NETMASK,8,3               ## @RTAX_NETMASK
	.comm	_so,8,3                         ## @so
	.no_dead_strip	_prefixlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prefixlen
_prefixlen:                             ; @prefixlen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	bl	_atoi
	mov	x19, x0
Lloh0:
	adrp	x8, _RTA_NETMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTA_NETMASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _rtm_addrs@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rtm_addrs@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
	tbnz	w19, #31, LBB0_3
; %bb.1:
	mov	w1, #0
	mov	w2, #0
	bl	_memset
	cmp	w19, #8
	b.lo	LBB0_5
; %bb.2:
	lsr	w2, w19, #3
	mov	w1, #255
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
	mov	w1, #0
	mov	w2, #0
LBB0_4:
	bl	_memset
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RTA_NETMASK,4,2                ; @RTA_NETMASK
	.comm	_rtm_addrs,4,2                  ; @rtm_addrs
	.comm	_af,4,2                         ; @af
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prefixlen not supported in this af"

	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
l_.str.1:                               ; @.str.1
	.asciz	"%s: invalid prefixlen"

	.comm	_RTAX_NETMASK,8,3               ; @RTAX_NETMASK
	.comm	_so,8,3                         ; @so
	.no_dead_strip	_prefixlen
.subsections_via_symbols
