	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_ip_mask                  ## -- Begin function parse_ip_mask
	.p2align	4, 0x90
_parse_ip_mask:                         ## @parse_ip_mask
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_buff@GOTPCREL(%rip), %r15
	movq	_parse_pos@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdi
	addq	(%r15), %rdi
	leaq	-64(%rbp), %rax
	leaq	-44(%rbp), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	leaq	-48(%rbp), %r9
	pushq	%rax
	pushq	%rbx
	callq	_sscanf
	addq	$16, %rsp
	xorl	%edi, %edi
	cmpl	$5, %eax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -60(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -56(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -52(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -48(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	movl	-44(%rbp), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	$32, %eax
	setb	%dil
	callq	_assert
	movl	$32, %eax
	subl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movslq	-64(%rbp), %rax
	movslq	(%r12), %rcx
	addq	%rax, %rcx
	movl	%ecx, (%r12)
	movq	(%r15), %rax
	movb	(%rax,%rcx), %al
	testb	%al, %al
	sete	%cl
	cmpb	$44, %al
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	-60(%rbp), %eax
	shll	$24, %eax
	movl	-56(%rbp), %ecx
	shll	$16, %ecx
	addl	%eax, %ecx
	movl	-52(%rbp), %eax
	shll	$8, %eax
	addl	%ecx, %eax
	addl	-48(%rbp), %eax
	movl	%eax, (%r13)
	movb	-44(%rbp), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, -44(%rbp)
	xorl	%edi, %edi
	testl	%edx, %eax
	sete	%dil
	callq	_assert
	movl	-44(%rbp), %eax
	addl	(%r13), %eax
	movl	%eax, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buff,8,3                       ## @buff
	.comm	_parse_pos,4,2                  ## @parse_pos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u.%u.%u.%u/%u%n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_ip_mask                  ; -- Begin function parse_ip_mask
	.p2align	2
_parse_ip_mask:                         ; @parse_ip_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _buff@GOTPAGE
Lloh1:
	ldr	x21, [x21, _buff@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _parse_pos@GOTPAGE
Lloh3:
	ldr	x22, [x22, _parse_pos@GOTPAGEOFF]
	ldrsw	x9, [x22]
	add	x0, x8, x9
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	add	x5, sp, #12
	add	x6, sp, #8
	add	x7, sp, #28
	bl	_sscanf
	cmp	w0, #5
	cset	w0, eq
	bl	_assert
	ldr	w8, [sp, #24]
	cmp	w8, #256
	cset	w0, lo
	bl	_assert
	ldr	w8, [sp, #20]
	cmp	w8, #256
	cset	w0, lo
	bl	_assert
	ldr	w8, [sp, #16]
	cmp	w8, #256
	cset	w0, lo
	bl	_assert
	ldr	w8, [sp, #12]
	cmp	w8, #256
	cset	w0, lo
	bl	_assert
	ldr	w8, [sp, #8]
	sub	w8, w8, #1
	cmp	w8, #32
	cset	w0, lo
	bl	_assert
	ldr	w8, [sp, #8]
	mov	w9, #32
	sub	w8, w9, w8
	str	w8, [sp, #8]
	ldrsw	x8, [sp, #28]
	ldrsw	x9, [x22]
	add	x8, x9, x8
	str	w8, [x22]
	ldr	x9, [x21]
	ldrb	w8, [x9, x8]
	cmp	w8, #0
	mov	w9, #44
	ccmp	w8, w9, #4, ne
	cset	w0, eq
	bl	_assert
	ldp	w9, w8, [sp, #20]
	lsl	w9, w9, #16
	add	w8, w9, w8, lsl #24
	ldr	w9, [sp, #16]
	add	w8, w8, w9, lsl #8
	ldr	w9, [sp, #12]
	add	w8, w8, w9
	str	w8, [x20]
	ldr	w9, [sp, #8]
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w10, w9
	str	w10, [sp, #8]
	bics	wzr, w8, w9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20]
	ldr	w9, [sp, #8]
	add	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_buff,8,3                       ; @buff
	.comm	_parse_pos,4,2                  ; @parse_pos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u.%u.%u.%u/%u%n"

.subsections_via_symbols
