	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_get_rr_list_addr_by_name  ## -- Begin function ldns_get_rr_list_addr_by_name
	.p2align	4, 0x90
_ldns_get_rr_list_addr_by_name:         ## @ldns_get_rr_list_addr_by_name
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_ldns_resolver_ip6
	movl	%eax, %r14d
	movq	_LDNS_RESOLV_INETANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ldns_resolver_set_ip6
	xorl	%edi, %edi
	callq	_ldns_get_rr_list_hosts_frm_file
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_12
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_clone
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_list_push_rr
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movq	%r12, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %r15
	jae	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ldns_rr_list_rr
	movl	%eax, %edi
	callq	_ldns_rr_owner
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ldns_rdf_compare
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	movq	%rax, %r14
	jmp	LBB0_4
LBB0_10:
	xorl	%r14d, %r14d
LBB0_26:
	movq	%r14, %rax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, %rdi
	callq	_ldns_rr_list_deep_free
	testq	%r14, %r14
	jne	LBB0_26
	jmp	LBB0_13
LBB0_12:
	movq	%r12, %rdi
	callq	_ldns_rr_list_deep_free
LBB0_13:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_LDNS_RD@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	orl	-52(%rbp), %r8d                 ## 4-byte Folded Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_ldns_resolver_query
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %r14
	movl	(%r12), %esi
	movq	_LDNS_SECTION_ANSWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ldns_pkt_rr_list_by_type
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_ldns_pkt_free
	jmp	LBB0_16
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	orl	(%r15), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ldns_resolver_query
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	_LDNS_SECTION_ANSWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ldns_pkt_rr_list_by_type
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ldns_pkt_free
	jmp	LBB0_19
LBB0_18:
	xorl	%r15d, %r15d
LBB0_19:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdi
	callq	_ldns_resolver_set_ip6
	testq	%r12, %r12
	je	LBB0_22
## %bb.20:
	testq	%r15, %r15
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ldns_rr_list_cat_clone
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ldns_rr_list_deep_free
	movq	%r15, %rdi
	callq	_ldns_rr_list_deep_free
	movq	%rbx, %rax
	jmp	LBB0_27
LBB0_22:
	testq	%r12, %r12
	je	LBB0_28
## %bb.23:
	movq	%r12, %rdi
	callq	_ldns_rr_list_clone
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_25
LBB0_24:
	movq	%r15, %rdi
	callq	_ldns_rr_list_clone
	movq	%rax, %r14
LBB0_25:
	movq	%r12, %rdi
	callq	_ldns_rr_list_deep_free
	movq	%r15, %rdi
	callq	_ldns_rr_list_deep_free
	jmp	LBB0_26
LBB0_28:
	xorl	%r14d, %r14d
	testq	%r15, %r15
	jne	LBB0_24
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ## @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_RESOLV_INETANY,4,2        ## @LDNS_RESOLV_INETANY
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ## @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RD,4,2                    ## @LDNS_RD
	.comm	_LDNS_SECTION_ANSWER,4,2        ## @LDNS_SECTION_ANSWER
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_get_rr_list_addr_by_name  ; -- Begin function ldns_get_rr_list_addr_by_name
	.p2align	2
_ldns_get_rr_list_addr_by_name:         ; @ldns_get_rr_list_addr_by_name
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_9
; %bb.1:
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ldns_rdf_get_type
Lloh0:
	adrp	x8, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_ldns_resolver_ip6
	mov	x20, x0
Lloh3:
	adrp	x8, _LDNS_RESOLV_INETANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RESOLV_INETANY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ldns_resolver_set_ip6
	mov	x0, #0
	bl	_ldns_get_rr_list_hosts_frm_file
	mov	x25, x0
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_13
; %bb.3:
	mov	x26, #0
	mov	x24, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_clone
	mov	x1, x0
	mov	x0, x24
	bl	_ldns_rr_list_push_rr
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	mov	x0, x25
	bl	_ldns_rr_list_rr_count
	cmp	x26, x0
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_rdf_compare
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x24, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_ldns_rr_list_new
	mov	x24, x0
	b	LBB0_4
LBB0_9:
	mov	x24, #0
LBB0_10:
	mov	x0, x24
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x25
	bl	_ldns_rr_list_deep_free
	cbnz	x24, LBB0_10
	b	LBB0_14
LBB0_13:
	mov	x0, x25
	bl	_ldns_rr_list_deep_free
LBB0_14:
Lloh6:
	adrp	x25, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh8:
	adrp	x27, _LDNS_RD@GOTPAGE
Lloh9:
	ldr	x27, [x27, _LDNS_RD@GOTPAGEOFF]
	ldr	w8, [x27]
	orr	w4, w8, w23
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_ldns_resolver_query
Lloh10:
	adrp	x26, _LDNS_SECTION_ANSWER@GOTPAGE
Lloh11:
	ldr	x26, [x26, _LDNS_SECTION_ANSWER@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.15:
	mov	x24, x0
	ldr	w1, [x25]
	ldr	w2, [x26]
	bl	_ldns_pkt_rr_list_by_type
	mov	x25, x0
	mov	x0, x24
	bl	_ldns_pkt_free
	b	LBB0_17
LBB0_16:
	mov	x25, #0
LBB0_17:
Lloh12:
	adrp	x24, _LDNS_RR_TYPE_A@GOTPAGE
Lloh13:
	ldr	x24, [x24, _LDNS_RR_TYPE_A@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x27]
	orr	w4, w8, w23
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_ldns_resolver_query
	cbz	x0, LBB0_19
; %bb.18:
	mov	x22, x0
	ldr	w1, [x24]
	ldr	w2, [x26]
	bl	_ldns_pkt_rr_list_by_type
	mov	x21, x0
	mov	x0, x22
	bl	_ldns_pkt_free
	b	LBB0_20
LBB0_19:
	mov	x21, #0
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_ldns_resolver_set_ip6
	cbz	x25, LBB0_23
; %bb.21:
	cbz	x21, LBB0_23
; %bb.22:
	mov	x0, x25
	mov	x1, x21
	bl	_ldns_rr_list_cat_clone
	mov	x19, x0
	mov	x0, x25
	bl	_ldns_rr_list_deep_free
	mov	x0, x21
	bl	_ldns_rr_list_deep_free
	mov	x0, x19
	b	LBB0_11
LBB0_23:
	cbz	x25, LBB0_27
; %bb.24:
	mov	x0, x25
	bl	_ldns_rr_list_clone
	mov	x24, x0
	cbz	x21, LBB0_26
LBB0_25:
	mov	x0, x21
	bl	_ldns_rr_list_clone
	mov	x24, x0
LBB0_26:
	mov	x0, x25
	bl	_ldns_rr_list_deep_free
	mov	x0, x21
	bl	_ldns_rr_list_deep_free
	b	LBB0_10
LBB0_27:
	mov	x24, #0
	cbnz	x21, LBB0_25
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_RESOLV_INETANY,4,2        ; @LDNS_RESOLV_INETANY
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ; @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RD,4,2                    ; @LDNS_RD
	.comm	_LDNS_SECTION_ANSWER,4,2        ; @LDNS_SECTION_ANSWER
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
.subsections_via_symbols
