	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function set_ipmask
LCPI0_0:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_1:
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	29                              ## 0x1d
	.long	28                              ## 0x1c
LCPI0_2:
	.long	4294967292                      ## 0xfffffffc
	.long	4294967292                      ## 0xfffffffc
	.long	4294967292                      ## 0xfffffffc
	.long	4294967292                      ## 0xfffffffc
LCPI0_3:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_4:
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
LCPI0_5:
	.long	4294967284                      ## 0xfffffff4
	.long	4294967284                      ## 0xfffffff4
	.long	4294967284                      ## 0xfffffff4
	.long	4294967284                      ## 0xfffffff4
LCPI0_6:
	.long	4294967280                      ## 0xfffffff0
	.long	4294967280                      ## 0xfffffff0
	.long	4294967280                      ## 0xfffffff0
	.long	4294967280                      ## 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_set_ipmask
	.p2align	4, 0x90
_set_ipmask:                            ## @set_ipmask
	.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
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpl	$32, %ebx
	jl	LBB0_14
## %bb.1:
	movq	(%r14), %rdi
	cmpl	$63, %ebx
	movl	$63, %r12d
	movl	$63, %eax
	cmovll	%ebx, %eax
	cmovbl	%ebx, %r12d
	negl	%eax
	addl	%ebx, %eax
	addl	$31, %eax
	shrl	$5, %eax
	leal	4(,%rax,4), %edx
	movl	$255, %esi
	callq	_memset
	negl	%r12d
	leal	(%rbx,%r12), %eax
	addl	$31, %eax
	cmpl	$96, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_3:
	shrl	$5, %eax
	incl	%eax
	movl	%eax, %ecx
	andl	$-4, %ecx
	leal	-4(%rcx), %edi
	movl	%edi, %esi
	shrl	$2, %esi
	incl	%esi
	movl	%esi, %edx
	andl	$7, %edx
	cmpl	$28, %edi
	jae	LBB0_5
## %bb.4:
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	jmp	LBB0_7
LBB0_5:
	andl	$-8, %esi
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [8,8]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	paddq	%xmm2, %xmm0
	paddq	%xmm2, %xmm1
	addl	$-8, %esi
	jne	LBB0_6
LBB0_7:
	movl	%ecx, %esi
	shll	$5, %esi
	testl	%edx, %edx
	je	LBB0_10
## %bb.8:
	pcmpeqd	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	psubq	%xmm2, %xmm0
	psubq	%xmm2, %xmm1
	decl	%edx
	jne	LBB0_9
LBB0_10:
	paddq	%xmm1, %xmm0
	subl	%esi, %ebx
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	cmpl	%ecx, %eax
	je	LBB0_13
LBB0_11:
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	incq	%rdx
	leal	-32(%rax), %ebx
	cmpl	$63, %eax
	movl	%ebx, %eax
	ja	LBB0_12
LBB0_13:
	movl	%edx, %r12d
LBB0_14:
	testl	%ebx, %ebx
	jle	LBB0_28
## %bb.15:
	movl	$31, %ecx
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %esi
	cmpl	$8, %ebx
	jae	LBB0_17
## %bb.16:
	movl	$31, %edi
	jmp	LBB0_25
LBB0_17:
	movl	%ebx, %edx
	andl	$-8, %edx
	movd	%esi, %xmm0
	leal	-8(%rdx), %edi
	movl	%edi, %esi
	shrl	$3, %esi
	incl	%esi
	testl	%edi, %edi
	je	LBB0_18
## %bb.19:
	movl	%esi, %edi
	andl	$-2, %edi
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [31,30,29,28]
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = [4294967292,4294967292,4294967292,4294967292]
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_4(%rip), %xmm9            ## xmm9 = [4294967288,4294967288,4294967288,4294967288]
	movdqa	LCPI0_5(%rip), %xmm6            ## xmm6 = [4294967284,4294967284,4294967284,4294967284]
	movdqa	LCPI0_6(%rip), %xmm7            ## xmm7 = [4294967280,4294967280,4294967280,4294967280]
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm1
	paddd	%xmm8, %xmm1
	movdqa	%xmm5, %xmm3
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm3
	por	%xmm0, %xmm3
	pslld	$23, %xmm1
	paddd	%xmm4, %xmm1
	cvttps2dq	%xmm1, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm5, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm5, %xmm2
	paddd	%xmm6, %xmm2
	pslld	$23, %xmm0
	paddd	%xmm4, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm3, %xmm0
	pslld	$23, %xmm2
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm1, %xmm2
	paddd	%xmm7, %xmm5
	addl	$-2, %edi
	jne	LBB0_20
## %bb.21:
	testb	$1, %sil
	je	LBB0_23
LBB0_22:
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = [4294967292,4294967292,4294967292,4294967292]
	paddd	%xmm5, %xmm1
	pslld	$23, %xmm5
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm3, %xmm5
	cvttps2dq	%xmm5, %xmm4
	por	%xmm4, %xmm0
	pslld	$23, %xmm1
	paddd	%xmm3, %xmm1
	cvttps2dq	%xmm1, %xmm1
	por	%xmm1, %xmm2
LBB0_23:
	por	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpl	%edx, %ebx
	je	LBB0_27
## %bb.24:
	movl	$31, %edi
	subl	%edx, %edi
LBB0_25:
	subl	%ebx, %ecx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	btsl	%edi, %esi
	decl	%edi
	cmpl	%ecx, %edi
	jg	LBB0_26
LBB0_27:
	movl	%esi, (%rax,%r12,4)
LBB0_28:
	testl	%ebx, %ebx
	je	LBB0_30
## %bb.29:
	movq	(%r14), %rbx
	movl	(%rbx,%r12,4), %edi
	callq	_htonl
	movl	%eax, (%rbx,%r12,4)
LBB0_30:
	movq	(%r15), %rax
	movq	_PF_ADDR_ADDRMASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.31:
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rcx), %edx
	andl	%edx, (%rax)
	movl	4(%rcx), %edx
	andl	%edx, 4(%rax)
	movl	8(%rcx), %edx
	andl	%edx, 8(%rax)
	movl	12(%rcx), %ecx
	andl	%ecx, 12(%rax)
LBB0_32:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [31,30,29,28]
	pxor	%xmm2, %xmm2
	testb	$1, %sil
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_ADDR_ADDRMASK,8,3           ## @PF_ADDR_ADDRMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function set_ipmask
lCPI0_0:
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	29                              ; 0x1d
	.long	28                              ; 0x1c
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_set_ipmask
	.p2align	2
_set_ipmask:                            ; @set_ipmask
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cmp	w21, #32
	b.lt	LBB0_3
; %bb.1:
	ldr	x0, [x20]
	add	w22, w21, #31
	mov	w8, #63
	cmp	w21, #63
	csel	w9, w21, w8, lt
	csel	w23, w21, w8, lo
	sub	w8, w22, w9
	lsr	w8, w8, #3
	and	w8, w8, #0x1ffffffc
	add	w2, w8, #4
	mov	w1, #255
	bl	_memset
	sub	w8, w22, w23
	cmp	w8, #224
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	b	LBB0_7
LBB0_3:
	mov	x8, #0
	cmp	w21, #1
	b.ge	LBB0_10
	b	LBB0_17
LBB0_4:
	lsr	w8, w8, #5
	add	w8, w8, #1
	and	w9, w8, #0xffffff8
	sub	w21, w21, w9, lsl #5
	movi.2d	v0, #0000000000000000
	mov	w10, #1
	dup.2d	v1, x10
	mov	x10, x9
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add.2d	v0, v0, v1
	add.2d	v2, v2, v1
	add.2d	v3, v3, v1
	add.2d	v4, v4, v1
	subs	w10, w10, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x10, d0
	cmp	w8, w9
	b.eq	LBB0_9
LBB0_7:
	mov	x8, x21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #1
	sub	w21, w8, #32
	cmp	w8, #63
	mov	x8, x21
	b.hi	LBB0_8
LBB0_9:
	and	x8, x10, #0xffffffff
	cmp	w21, #1
	b.lt	LBB0_17
LBB0_10:
	ldr	x9, [x20]
	ldr	w12, [x9, x8, lsl #2]
	mov	w10, #31
	cmp	w21, #16
	b.lo	LBB0_14
; %bb.11:
	and	w11, w21, #0xfffffff0
	sub	w10, w10, w11
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w12
	mvni.4s	v2, #3
Lloh0:
	adrp	x12, lCPI0_0@PAGE
Lloh1:
	ldr	q3, [x12, lCPI0_0@PAGEOFF]
	mvni.4s	v4, #7
	mvni.4s	v5, #11
	movi.4s	v6, #1
	mvni.4s	v7, #15
	mov	x12, x11
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v18, v3, v2
	add.4s	v19, v3, v4
	add.4s	v20, v3, v5
	ushl.4s	v21, v6, v3
	ushl.4s	v18, v6, v18
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	orr.16b	v1, v1, v21
	orr.16b	v0, v0, v18
	orr.16b	v16, v16, v19
	orr.16b	v17, v17, v20
	add.4s	v3, v3, v7
	subs	w12, w12, #16
	b.ne	LBB0_12
; %bb.13:
	orr.16b	v0, v0, v1
	orr.16b	v0, v16, v0
	orr.16b	v0, v17, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	orr	w12, w12, w13
	cmp	w21, w11
	b.eq	LBB0_16
LBB0_14:
	mov	w11, #31
	sub	w11, w11, w21
	mov	w13, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	w14, w13, w10
	orr	w12, w12, w14
	sub	w10, w10, #1
	cmp	w10, w11
	b.gt	LBB0_15
LBB0_16:
	str	w12, [x9, x8, lsl #2]
LBB0_17:
	cbz	w21, LBB0_19
; %bb.18:
	ldr	x20, [x20]
	lsl	x21, x8, #2
	ldr	w0, [x20, x21]
	bl	_htonl
	str	w0, [x20, x21]
LBB0_19:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _PF_ADDR_ADDRMASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PF_ADDR_ADDRMASK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	ldp	x8, x9, [x19, #8]
	ldr	w10, [x9]
	ldp	w11, w12, [x8]
	and	w10, w10, w11
	str	w10, [x8]
	ldr	w10, [x9, #4]
	and	w10, w10, w12
	str	w10, [x8, #4]
	ldr	w10, [x9, #8]
	ldp	w11, w12, [x8, #8]
	and	w10, w10, w11
	str	w10, [x8, #8]
	ldr	w9, [x9, #12]
	and	w9, w9, w12
	str	w9, [x8, #12]
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_ADDR_ADDRMASK,8,3           ; @PF_ADDR_ADDRMASK
.subsections_via_symbols
