	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addr_netmask
_addr_netmask:                          ## @addr_netmask
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movl	%edi, %ebx
	callq	_masklen_valid
	movl	$-1, %r14d
	testq	%r15, %r15
	je	LBB0_18
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_18
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_18
## %bb.4:
	movl	$129, (%r15)
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.5:
	negb	%r12b
	movl	$-1, %edi
	movl	%r12d, %ecx
	shll	%cl, %edi
	callq	_htonl
	movq	%rax, 16(%r15)
	jmp	LBB0_18
LBB0_6:
	movl	$128, (%r15)
	movb	$1, %r13b
	xorl	%r14d, %r14d
	cmpl	$32, %r12d
	jl	LBB0_7
## %bb.8:
	movq	8(%r15), %rdi
	cmpl	$63, %r12d
	movl	$63, %eax
	cmovll	%r12d, %eax
	negl	%eax
	addl	%r12d, %eax
	addl	$31, %eax
	shrl	$5, %eax
	cmpl	$3, %eax
	movl	$3, %ecx
	cmovbl	%eax, %ecx
	leal	4(,%rcx,4), %edx
	movl	$255, %esi
	callq	_memset
	leal	-32(%r12), %eax
	movl	$1, %ebx
	cmpl	$64, %r12d
	jb	LBB0_9
## %bb.10:
	leal	-64(%r12), %ecx
	movl	$2, %ebx
	cmpl	$64, %eax
	jb	LBB0_11
## %bb.12:
	cmpl	$64, %ecx
	jb	LBB0_13
## %bb.14:
	addl	$-128, %r12d
	movl	$4, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_9:
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_11:
	movl	%ecx, %r12d
	jmp	LBB0_15
LBB0_13:
	addl	$-96, %r12d
	movl	$3, %ebx
LBB0_15:
	testb	%r13b, %r13b
	je	LBB0_18
## %bb.16:
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.17:
	negb	%r12b
	movl	$-1, %edi
	movl	%r12d, %ecx
	shll	%cl, %edi
	callq	_htonl
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_addr_netmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addr_netmask
_addr_netmask:                          ; @addr_netmask
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_masklen_valid
	mov	x8, x0
	mov	w0, #-1
	cbz	x19, LBB0_20
; %bb.1:
	cbnz	x8, LBB0_20
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_11
; %bb.4:
	mov	w8, #129
	str	w8, [x19]
	cbz	w20, LBB0_13
; %bb.5:
	neg	w8, w20
	mov	w9, #-1
	lsl	w0, w9, w8
	bl	_htonl
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	b	LBB0_20
LBB0_6:
	mov	w8, #128
	str	w8, [x19]
	subs	w22, w20, #32
	b.lt	LBB0_12
; %bb.7:
	ldr	x0, [x19, #8]
	mov	w8, #63
	cmp	w20, #63
	csel	w8, w20, w8, lt
	sub	w8, w20, w8
	add	w8, w8, #31
	lsr	w8, w8, #5
	mov	w9, #3
	cmp	w8, #3
	csel	w8, w8, w9, lo
	lsl	w8, w8, #2
	add	w2, w8, #4
	mov	w1, #255
	bl	_memset
	subs	w9, w20, #64
	b.lo	LBB0_14
; %bb.8:
	cmp	w22, #64
	b.lo	LBB0_15
; %bb.9:
	cmp	w9, #64
	b.lo	LBB0_16
; %bb.10:
	mov	w8, #0
	sub	w20, w20, #128
	mov	w21, #4
	b	LBB0_17
LBB0_11:
	mov	w0, #-1
	b	LBB0_20
LBB0_12:
	mov	x21, #0
	mov	w8, #1
	b	LBB0_17
LBB0_13:
	mov	w0, #0
	b	LBB0_20
LBB0_14:
	mov	w21, #1
	mov	x20, x22
	mov	w8, #1
	b	LBB0_17
LBB0_15:
	mov	w8, #1
	mov	w21, #2
	mov	x20, x9
	b	LBB0_17
LBB0_16:
	sub	w20, w20, #96
	mov	w8, #1
	mov	w21, #3
LBB0_17:
	mov	w0, #0
	cbz	w8, LBB0_20
; %bb.18:
	cbz	w20, LBB0_20
; %bb.19:
	neg	w8, w20
	mov	w9, #-1
	lsl	w0, w9, w8
	bl	_htonl
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	w8, [x9, x21, lsl #2]
LBB0_20:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_addr_netmask
.subsections_via_symbols
