	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_get_rr_list_name_by_addr  ## -- Begin function ldns_get_rr_list_name_by_addr
	.p2align	4, 0x90
_ldns_get_rr_list_name_by_addr:         ## @ldns_get_rr_list_name_by_addr
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	%rbx, %rdi
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_AAAA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_ldns_rdf_address_reverse
	movq	%rax, %rbx
	movq	_LDNS_RR_TYPE_PTR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_LDNS_RD@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_ldns_resolver_query
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ldns_rdf_deep_free
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	(%r13), %esi
	movq	_LDNS_SECTION_ANSWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ldns_pkt_rr_list_by_type
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ldns_pkt_free
	movq	%rbx, %rax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RDF_TYPE_A,8,3            ## @LDNS_RDF_TYPE_A
	.comm	_LDNS_RDF_TYPE_AAAA,8,3         ## @LDNS_RDF_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_PTR,4,2           ## @LDNS_RR_TYPE_PTR
	.comm	_LDNS_RD,4,2                    ## @LDNS_RD
	.comm	_LDNS_SECTION_ANSWER,4,2        ## @LDNS_SECTION_ANSWER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_get_rr_list_name_by_addr  ; -- Begin function ldns_get_rr_list_name_by_addr
	.p2align	2
_ldns_get_rr_list_name_by_addr:         ; @ldns_get_rr_list_name_by_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	mov	x0, x22
	bl	_ldns_rdf_get_type
Lloh0:
	adrp	x8, _LDNS_RDF_TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RDF_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_ldns_rdf_get_type
Lloh3:
	adrp	x8, _LDNS_RDF_TYPE_AAAA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RDF_TYPE_AAAA@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_4:
	mov	x0, x22
	bl	_ldns_rdf_address_reverse
	mov	x22, x0
Lloh6:
	adrp	x23, _LDNS_RR_TYPE_PTR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _LDNS_RR_TYPE_PTR@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh8:
	adrp	x8, _LDNS_RD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_RD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w4, w8, w20
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	bl	_ldns_resolver_query
	mov	x19, x0
	mov	x0, x22
	bl	_ldns_rdf_deep_free
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w1, [x23]
Lloh11:
	adrp	x8, _LDNS_SECTION_ANSWER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_SECTION_ANSWER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ldns_pkt_rr_list_by_type
	mov	x20, x0
	mov	x0, x19
	bl	_ldns_pkt_free
	mov	x0, x20
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RDF_TYPE_A,8,3            ; @LDNS_RDF_TYPE_A
	.comm	_LDNS_RDF_TYPE_AAAA,8,3         ; @LDNS_RDF_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_PTR,4,2           ; @LDNS_RR_TYPE_PTR
	.comm	_LDNS_RD,4,2                    ; @LDNS_RD
	.comm	_LDNS_SECTION_ANSWER,4,2        ; @LDNS_SECTION_ANSWER
.subsections_via_symbols
