	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dns_getnameinfo
_dns_getnameinfo:                       ## @dns_getnameinfo
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_dns_allowed_type
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dns_allowed_type
	testl	%eax, %eax
	je	LBB0_18
LBB0_2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_get_number
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_get_number
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	leaq	1(%r14), %rsi
	movl	$1, %edi
	movq	%rax, %r12
	callq	_calloc
	movq	%rax, %rbx
	movq	%r12, %rax
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_4:
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.5:
	leaq	1(%rax), %rsi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.4(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_nvlist_get_binary
	movq	-64(%rbp), %rdx
	movq	_EAI_FAIL@GOTPCREL(%rip), %r12
	cmpq	$8, %rdx
	ja	LBB0_25
## %bb.10:
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	callq	_memcpy
	movq	-64(%rbp), %r13
	movl	%r13d, %eax
	movq	-56(%rbp), %rsi
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_12
## %bb.11:
	cmpl	$4, %eax
	je	LBB0_14
LBB0_12:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_25
## %bb.13:
	cmpl	$4, %eax
	jne	LBB0_25
LBB0_14:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dns_allowed_family
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_get_number
	movl	%eax, (%rsp)
	leaq	-56(%rbp), %rdi
	movl	%r13d, %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r13
	movq	%rbx, %r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_getnameinfo
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_17:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_26
LBB0_18:
	movq	_NO_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_19:
	movq	_NO_RECOVERY@GOTPCREL(%rip), %r12
LBB0_25:
	movq	%rbx, %r13
LBB0_26:
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_28
LBB0_27:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_29
LBB0_28:
	xorl	%ebx, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	testq	%r15, %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_nvlist_move_string
LBB0_22:
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_29
## %bb.23:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_nvlist_move_string
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADDR2NAME"

L_.str.1:                               ## @.str.1
	.asciz	"ADDR"

	.comm	_NO_RECOVERY,4,2                ## @NO_RECOVERY
L_.str.2:                               ## @.str.2
	.asciz	"hostlen"

L_.str.3:                               ## @.str.3
	.asciz	"servlen"

	.comm	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
L_.str.4:                               ## @.str.4
	.asciz	"sa"

	.comm	_EAI_FAIL,4,2                   ## @EAI_FAIL
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
L_.str.5:                               ## @.str.5
	.asciz	"flags"

L_.str.6:                               ## @.str.6
	.asciz	"host"

L_.str.7:                               ## @.str.7
	.asciz	"serv"

	.no_dead_strip	_dns_getnameinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dns_getnameinfo
_dns_getnameinfo:                       ; @dns_getnameinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dns_allowed_type
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dns_allowed_type
	cbz	w0, LBB0_20
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_nvlist_get_number
	mov	x24, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_nvlist_get_number
	mov	x25, x0
	cbz	x24, LBB0_6
; %bb.3:
	add	x1, x24, #1
	mov	w0, #1
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_16
; %bb.4:
	cbz	x25, LBB0_7
LBB0_5:
	add	x1, x25, #1
	mov	w0, #1
	bl	_calloc
	mov	x21, x0
	cbnz	x0, LBB0_8
	b	LBB0_17
LBB0_6:
	mov	x20, #0
	cbnz	x25, LBB0_5
LBB0_7:
	mov	x21, #0
LBB0_8:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, sp
	mov	x0, x22
	bl	_nvlist_get_binary
	ldr	x2, [sp]
	cmp	x2, #8
	b.ls	LBB0_10
; %bb.9:
Lloh10:
	adrp	x8, _EAI_FAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAI_FAIL@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	cbnz	w22, LBB0_19
	b	LBB0_27
LBB0_10:
	mov	x1, x0
	add	x0, sp, #8
	bl	_memcpy
	ldp	x26, x1, [sp]
	and	x9, x26, #0xffffffff
Lloh13:
	adrp	x8, _AF_INET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x1, x8
	ccmp	x9, #4, #0, eq
	b.eq	LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x8]
Lloh19:
	adrp	x8, _EAI_FAIL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAI_FAIL@GOTPAGEOFF]
	cmp	x1, x10
	b.ne	LBB0_18
; %bb.12:
	cmp	x9, #4
	b.ne	LBB0_18
LBB0_13:
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dns_allowed_family
	cbz	w0, LBB0_21
; %bb.14:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_nvlist_get_number
	mov	x6, x0
	add	x0, sp, #8
	mov	x1, x26
	mov	x2, x20
	mov	x3, x24
	mov	x4, x21
	mov	x5, x25
                                        ; kill: def $w6 killed $w6 killed $x6
	bl	_getnameinfo
	cbz	w0, LBB0_22
; %bb.15:
	mov	x22, x0
	b	LBB0_19
LBB0_16:
	mov	x21, #0
LBB0_17:
Lloh23:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
LBB0_18:
	ldr	w22, [x8]
	cbz	w22, LBB0_27
LBB0_19:
	mov	x0, x20
	bl	_free
	mov	x0, x21
	bl	_free
	b	LBB0_27
LBB0_20:
Lloh25:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
	b	LBB0_27
LBB0_21:
Lloh28:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
	cbnz	w22, LBB0_19
	b	LBB0_27
LBB0_22:
	cbz	x20, LBB0_24
; %bb.23:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nvlist_move_string
LBB0_24:
	cbz	x21, LBB0_26
; %bb.25:
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nvlist_move_string
LBB0_26:
	mov	w22, #0
LBB0_27:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADDR2NAME"

l_.str.1:                               ; @.str.1
	.asciz	"ADDR"

	.comm	_NO_RECOVERY,4,2                ; @NO_RECOVERY
l_.str.2:                               ; @.str.2
	.asciz	"hostlen"

l_.str.3:                               ; @.str.3
	.asciz	"servlen"

	.comm	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
l_.str.4:                               ; @.str.4
	.asciz	"sa"

	.comm	_EAI_FAIL,4,2                   ; @EAI_FAIL
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
l_.str.5:                               ; @.str.5
	.asciz	"flags"

l_.str.6:                               ; @.str.6
	.asciz	"host"

l_.str.7:                               ; @.str.7
	.asciz	"serv"

	.no_dead_strip	_dns_getnameinfo
.subsections_via_symbols
