	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_getaddrinfo               ## -- Begin function ldns_getaddrinfo
	.p2align	4, 0x90
_ldns_getaddrinfo:                      ## @ldns_getaddrinfo
	.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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_ldns_rdf_get_type
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)
	testq	%r13, %r13
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ldns_resolver_new_frm_file
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_2:
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_ldns_get_rr_list_addr_by_name
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rax, %rdi
	callq	_ldns_rr_list_rr_count
	movq	%rax, %r14
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movq	_LDNS_RDF_TYPE_A@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.6:
	movq	_LDNS_RDF_TYPE_AAAA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.8:
	testq	%r13, %r13
	je	LBB0_9
LBB0_10:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_ldns_get_rr_list_name_by_addr
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rax, %rdi
	callq	_ldns_rr_list_rr_count
	movq	%rax, %r14
	testq	%r13, %r13
	jne	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_ldns_resolver_deep_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ## @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_RDF_TYPE_A,8,3            ## @LDNS_RDF_TYPE_A
	.comm	_LDNS_RDF_TYPE_AAAA,8,3         ## @LDNS_RDF_TYPE_AAAA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_getaddrinfo               ; -- Begin function ldns_getaddrinfo
	.p2align	2
_ldns_getaddrinfo:                      ; @ldns_getaddrinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ldns_rdf_get_type
	mov	x23, x0
	str	x19, [sp, #8]
	cbnz	x19, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, #0
	bl	_ldns_resolver_new_frm_file
	mov	x24, #0
Lloh0:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_2:
Lloh3:
	adrp	x8, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	bl	_ldns_get_rr_list_addr_by_name
	str	x0, [x20]
	bl	_ldns_rr_list_rr_count
	mov	x24, x0
	b	LBB0_5
LBB0_4:
	mov	x24, #0
LBB0_5:
Lloh6:
	adrp	x8, _LDNS_RDF_TYPE_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RDF_TYPE_A@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _LDNS_RDF_TYPE_AAAA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LDNS_RDF_TYPE_AAAA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x23, x8
	ccmp	x23, x9, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	bl	_ldns_get_rr_list_name_by_addr
	str	x0, [x20]
	bl	_ldns_rr_list_rr_count
	mov	x24, x0
LBB0_7:
	cbnz	x19, LBB0_9
; %bb.8:
	ldr	x0, [sp, #8]
	bl	_ldns_resolver_deep_free
LBB0_9:
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_RDF_TYPE_A,8,3            ; @LDNS_RDF_TYPE_A
	.comm	_LDNS_RDF_TYPE_AAAA,8,3         ; @LDNS_RDF_TYPE_AAAA
.subsections_via_symbols
