	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function respip_find_or_create
_respip_find_or_create:                 ## @respip_find_or_create
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_netblockstrtoaddr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_addr_tree_find
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.3:
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.4:
	movl	4(%r15), %edi
	movl	$8, %esi
	callq	_regional_alloc_zero
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	_respip_none@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %r8d
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_addr_tree_insert
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_log_warn
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_log_err
LBB0_8:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot parse netblock: '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_respip_none,4,2                ## @respip_none
L_.str.2:                               ## @.str.2
	.asciz	"unexpected: duplicate address: %s"

	.no_dead_strip	_respip_find_or_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function respip_find_or_create
_respip_find_or_create:                 ; @respip_find_or_create
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	mov	x0, x1
	mov	w1, #0
	bl	_netblockstrtoaddr
	cbz	w0, LBB0_6
; %bb.1:
	ldp	w2, w3, [sp, #16]
	add	x1, sp, #24
	mov	x0, x20
	bl	_addr_tree_find
	mov	x21, x0
	cbz	w22, LBB0_8
; %bb.2:
	cbnz	x21, LBB0_8
; %bb.3:
	ldr	w0, [x20, #4]
	mov	w1, #8
	bl	_regional_alloc_zero
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _respip_none@GOTPAGE
Lloh1:
	ldr	x8, [x8, _respip_none@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldp	w3, w4, [sp, #16]
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x21
	bl	_addr_tree_insert
	cbnz	w0, LBB0_8
; %bb.5:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_log_warn
	b	LBB0_8
LBB0_6:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	x21, #0
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot parse netblock: '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_respip_none,4,2                ; @respip_none
l_.str.2:                               ; @.str.2
	.asciz	"unexpected: duplicate address: %s"

	.no_dead_strip	_respip_find_or_create
.subsections_via_symbols
