	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_ip                       ## -- Begin function parse_ip
	.p2align	4, 0x90
_parse_ip:                              ## @parse_ip
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_buff@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_parse_pos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpb	$44, (%rdi,%rax)
	jne	LBB0_2
## %bb.1:
	incq	%rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$2, %ecx
	je	LBB0_6
## %bb.3:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.4:
	addq	%rax, %rdi
	leaq	-36(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	addq	%rax, %rdi
	leaq	-36(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	leaq	-24(%rbp), %r8
	leaq	-20(%rbp), %r9
	callq	_sscanf
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	jmp	LBB0_8
LBB0_7:
	xorl	%edi, %edi
LBB0_8:
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -32(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -28(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -24(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$256, -20(%rbp)                 ## imm = 0x100
	setb	%dil
	callq	_assert
	movslq	-36(%rbp), %rax
	addq	(%rbx), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	movb	(%rcx,%rax), %al
	testb	%al, %al
	sete	%cl
	cmpb	$44, %al
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	-32(%rbp), %eax
	shll	$24, %eax
	movl	-28(%rbp), %ecx
	shll	$16, %ecx
	addl	%eax, %ecx
	movl	-24(%rbp), %eax
	shll	$8, %eax
	addl	%ecx, %eax
	addl	-20(%rbp), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buff,8,3                       ## @buff
	.comm	_parse_pos,8,3                  ## @parse_pos
	.comm	_mode,4,2                       ## @mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%u.%u.%u.%u\"%n"

L_.str.1:                               ## @.str.1
	.asciz	"%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                       ; -- Begin function parse_ip
	.p2align	2
_parse_ip:                              ; @parse_ip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x19, _buff@GOTPAGE
Lloh1:
	ldr	x19, [x19, _buff@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _parse_pos@GOTPAGE
Lloh3:
	ldr	x20, [x20, _parse_pos@GOTPAGEOFF]
	ldr	x9, [x20]
	ldrb	w10, [x8, x9]
	cmp	w10, #44
	b.ne	LBB0_2
; %bb.1:
	add	x9, x9, #1
	str	x9, [x20]
LBB0_2:
Lloh4:
	adrp	x10, _mode@GOTPAGE
Lloh5:
	ldr	x10, [x10, _mode@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	cmp	w10, #2
	b.eq	LBB0_5
; %bb.3:
	cbnz	w10, LBB0_7
; %bb.4:
	add	x0, x8, x9
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	add	x0, x8, x9
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	sub	x2, x29, #20
	add	x3, sp, #24
	add	x4, sp, #20
	add	x5, sp, #16
	add	x6, sp, #12
	bl	_sscanf
	cmp	w0, #4
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_assert
	ldur	w8, [x29, #-20]
	cmp	w8, #256
	cset	w0, lo
	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
	ldrsw	x8, [sp, #12]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	ldr	x9, [x19]
	ldrb	w8, [x9, x8]
	cmp	w8, #0
	mov	w9, #44
	ccmp	w8, w9, #4, ne
	cset	w0, eq
	bl	_assert
	ldur	w8, [x29, #-20]
	ldr	w9, [sp, #24]
	lsl	w9, w9, #16
	add	w8, w9, w8, lsl #24
	ldr	w9, [sp, #20]
	add	w8, w8, w9, lsl #8
	ldr	w9, [sp, #16]
	add	w0, w8, w9
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_buff,8,3                       ; @buff
	.comm	_parse_pos,8,3                  ; @parse_pos
	.comm	_mode,4,2                       ; @mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%u.%u.%u.%u\"%n"

l_.str.1:                               ; @.str.1
	.asciz	"%u.%u.%u.%u%n"

.subsections_via_symbols
