	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_netaddr_masktoprefixlen    ## -- Begin function isc_netaddr_masktoprefixlen
	.p2align	4, 0x90
_isc_netaddr_masktoprefixlen:           ## @isc_netaddr_masktoprefixlen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.2:
	addq	$8, %rdi
	movl	$4, %r8d
	jmp	LBB0_4
LBB0_3:
	addq	$4, %rdi
	movl	$16, %r8d
LBB0_4:
	movl	%r8d, %r11d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rcx), %eax
	cmpb	$-1, %al
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	1(%rdi,%rcx), %eax
	cmpb	$-1, %al
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	2(%rdi,%rcx), %eax
	cmpb	$-1, %al
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	3(%rdi,%rcx), %eax
	cmpb	$-1, %al
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rcx
	cmpq	%rcx, %r11
	jne	LBB0_5
## %bb.10:
	xorl	%r9d, %r9d
	jmp	LBB0_36
LBB0_11:
	movq	_ISC_R_NOTIMPLEMENTED@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_12:
	incq	%rcx
	jmp	LBB0_15
LBB0_13:
	addq	$2, %rcx
	jmp	LBB0_15
LBB0_14:
	addq	$3, %rcx
LBB0_15:
	movzbl	%al, %r10d
	xorl	%r9d, %r9d
	testb	$-128, %r10b
	je	LBB0_29
## %bb.16:
	testb	$64, %al
	jne	LBB0_18
## %bb.17:
	addl	%r10d, %r10d
	movl	$1, %r9d
	jmp	LBB0_29
LBB0_18:
	testb	$32, %al
	jne	LBB0_20
## %bb.19:
	shll	$2, %r10d
	movl	$2, %r9d
	jmp	LBB0_29
LBB0_20:
	testb	$16, %al
	jne	LBB0_22
## %bb.21:
	shll	$3, %r10d
	movl	$3, %r9d
	jmp	LBB0_29
LBB0_22:
	testb	$8, %al
	jne	LBB0_24
## %bb.23:
	shll	$4, %r10d
	movl	$4, %r9d
	jmp	LBB0_29
LBB0_24:
	testb	$4, %al
	jne	LBB0_26
## %bb.25:
	shll	$5, %r10d
	movl	$5, %r9d
	jmp	LBB0_29
LBB0_26:
	testb	$2, %al
	jne	LBB0_28
## %bb.27:
	shll	$6, %r10d
	movl	$6, %r9d
	jmp	LBB0_29
LBB0_28:
	movl	%r10d, %eax
	shll	$7, %eax
	movl	%r10d, %r9d
	andl	$1, %r9d
	shll	$8, %r10d
	testl	%r9d, %r9d
	cmovel	%eax, %r10d
	addl	$7, %r9d
LBB0_29:
	movq	_ISC_R_MASKNONCONTIG@GOTPCREL(%rip), %rax
	testb	%r10b, %r10b
	jne	LBB0_37
## %bb.30:
	leal	1(%rcx), %edx
	cmpl	%r8d, %edx
	jae	LBB0_35
## %bb.31:
	movl	%edx, %edx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rdi,%rdx)
	jne	LBB0_37
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	incq	%rdx
	cmpq	%rdx, %r11
	jne	LBB0_32
LBB0_35:
	movl	%ecx, %r8d
LBB0_36:
	leal	(%r9,%r8,8), %eax
	movl	%eax, (%rsi)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_NOTIMPLEMENTED,4,2       ## @ISC_R_NOTIMPLEMENTED
	.comm	_ISC_R_MASKNONCONTIG,4,2        ## @ISC_R_MASKNONCONTIG
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_netaddr_masktoprefixlen    ; -- Begin function isc_netaddr_masktoprefixlen
	.p2align	2
_isc_netaddr_masktoprefixlen:           ; @isc_netaddr_masktoprefixlen
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.2:
	add	x9, x0, #8
	mov	w10, #4
	b	LBB0_4
LBB0_3:
	add	x9, x0, #4
	mov	w10, #16
LBB0_4:
	mov	x8, #0
	mov	w10, w10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x9, x8]
	cmp	w12, #255
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x10, x8
	b.ne	LBB0_5
; %bb.7:
	mov	w11, #0
	mov	x8, x10
LBB0_8:
	add	w8, w11, w8, lsl #3
	str	w8, [x1]
Lloh0:
	adrp	x9, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ret
LBB0_9:
	tbnz	w12, #7, LBB0_12
; %bb.10:
	mov	w11, #0
	b	LBB0_19
LBB0_11:
Lloh3:
	adrp	x9, _ISC_R_NOTIMPLEMENTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISC_R_NOTIMPLEMENTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ret
LBB0_12:
	tbnz	w12, #6, LBB0_14
; %bb.13:
	lsl	w12, w12, #1
	mov	w11, #1
	b	LBB0_19
LBB0_14:
	tbnz	w12, #5, LBB0_16
; %bb.15:
	lsl	w12, w12, #2
	mov	w11, #2
	b	LBB0_19
LBB0_16:
	tbnz	w12, #4, LBB0_18
; %bb.17:
	lsl	w12, w12, #3
	mov	w11, #3
	b	LBB0_19
LBB0_18:
	lsl	w13, w12, #4
	mov	w11, #4
	lsl	w14, w12, #5
	mov	w15, #5
	lsl	w16, w12, #6
	mov	w17, #6
	lsl	w0, w12, #7
	lsl	w2, w12, #8
	tst	w12, #0x1
	csel	w0, w0, w2, eq
	mov	w2, #7
	cinc	w2, w2, ne
	tst	w12, #0x2
	csel	w17, w17, w2, eq
	csel	w16, w16, w0, eq
	tst	w12, #0x4
	csel	w15, w15, w17, eq
	csel	w14, w14, w16, eq
	tst	w12, #0x8
	csel	w11, w11, w15, eq
	csel	w12, w13, w14, eq
LBB0_19:
	tst	w12, #0xff
	b.eq	LBB0_21
; %bb.20:
Lloh6:
	adrp	x9, _ISC_R_MASKNONCONTIG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISC_R_MASKNONCONTIG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	ret
LBB0_21:
	add	x12, x8, #1
	cmp	w12, w10
	b.hs	LBB0_8
; %bb.22:
	mvn	x12, x8
	add	x9, x9, x8
	add	x10, x12, x10
	add	x12, x9, #1
Lloh9:
	adrp	x9, _ISC_R_MASKNONCONTIG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISC_R_MASKNONCONTIG@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x12]
	cbnz	w13, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x12, x12, #1
	subs	x10, x10, #1
	b.ne	LBB0_23
	b	LBB0_8
LBB0_25:
	ldr	w0, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_NOTIMPLEMENTED,4,2       ; @ISC_R_NOTIMPLEMENTED
	.comm	_ISC_R_MASKNONCONTIG,4,2        ; @ISC_R_MASKNONCONTIG
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
