	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delegpt_from_message           ## -- Begin function delegpt_from_message
	.p2align	4, 0x90
_delegpt_from_message:                  ## @delegpt_from_message
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdx
	addq	%rsi, %rdx
	callq	_find_NS
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	movq	(%rdi), %rdx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_find_NS
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_18
LBB0_2:
	movq	%r14, %rdi
	callq	_delegpt_create
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%rax, %r12
	movl	$1, (%rax)
	movl	4(%rbx), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_delegpt_set_name
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_delegpt_rrset_add_ns
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:
	movq	(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_18
## %bb.6:
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_delegpt_add_rrset_A
	testl	%eax, %eax
	je	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movq	(%r15), %rax
	cmpq	16(%rax), %r13
	jae	LBB0_18
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movq	24(%rax), %rdx
	movq	(%rdx,%r13,8), %rbx
	cmpq	%r13, %rcx
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	8(%rax), %rcx
	cmpq	%rcx, %r13
	jb	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_delegpt_add_rrset_AAAA
	testl	%eax, %eax
	jne	LBB0_8
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,8,3             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delegpt_from_message           ; -- Begin function delegpt_from_message
	.p2align	2
_delegpt_from_message:                  ; @delegpt_from_message
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	ldp	x1, x8, [x0]
	add	x2, x8, x1
	bl	_find_NS
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	ldr	x2, [x0]
	mov	x1, #0
	bl	_find_NS
	mov	x22, x0
	cbz	x0, LBB0_14
LBB0_2:
	mov	x0, x19
	bl	_delegpt_create
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
	ldr	w2, [x22, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_delegpt_set_name
	cbz	w0, LBB0_14
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_delegpt_rrset_add_ns
	cbz	w0, LBB0_14
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_15
; %bb.6:
	mov	x23, #0
Lloh0:
	adrp	x24, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	adrp	x25, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_delegpt_add_rrset_A
	cbz	w0, LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	cmp	x23, x9
	b.hs	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #24]
	ldr	x22, [x9, x23, lsl #3]
	ldr	x9, [x8]
	cmp	x9, x23
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x8, #8]
	add	x8, x8, x9
	cmp	x23, x8
	b.lo	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x22]
	bl	_ntohs
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x22]
	bl	_ntohs
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_delegpt_add_rrset_AAAA
	cbnz	w0, LBB0_8
LBB0_14:
	mov	x21, #0
LBB0_15:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
.subsections_via_symbols
