	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dns_getaddrinfo
_dns_getaddrinfo:                       ## @dns_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_dns_allowed_type
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dns_allowed_type
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dnvlist_get_string
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dnvlist_get_string
	movq	%rax, %r13
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_exists_number
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_get_number
	movl	%eax, -176(%rbp)
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_get_number
	movq	%rax, %r15
	movl	%r15d, -172(%rbp)
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_get_number
	movl	%eax, -168(%rbp)
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_get_number
	movl	%eax, -164(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -160(%rbp)
	movups	%xmm0, -144(%rbp)
	leaq	-176(%rbp), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_dns_allowed_family
	testl	%eax, %eax
	je	LBB0_2
## %bb.7:
	leaq	-120(%rbp), %rcx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	-120(%rbp), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.9:
	leaq	-112(%rbp), %r13
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_addrinfo_pack
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	$64, %esi
	leaq	L_.str.8(%rip), %rdx
	movl	%r15d, %ecx
	callq	_snprintf
	decl	%eax
	xorl	%edi, %edi
	cmpl	$63, %eax
	setb	%dil
	callq	_assert
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_nvlist_move_nvlist
	incl	%r15d
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.11:
	movq	-120(%rbp), %r15
LBB0_12:
	movq	%r15, %rdi
	callq	_freeaddrinfo
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	_NO_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NAME2ADDR"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"hints.ai_flags"

L_.str.5:                               ## @.str.5
	.asciz	"hints.ai_family"

L_.str.6:                               ## @.str.6
	.asciz	"hints.ai_socktype"

L_.str.7:                               ## @.str.7
	.asciz	"hints.ai_protocol"

	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
L_.str.8:                               ## @.str.8
	.asciz	"res%u"

	.no_dead_strip	_dns_getaddrinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dns_getaddrinfo
_dns_getaddrinfo:                       ; @dns_getaddrinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dns_allowed_type
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dns_allowed_type
	cbz	w0, LBB0_11
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_dnvlist_get_string
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_dnvlist_get_string
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_nvlist_exists_number
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_nvlist_get_number
	str	w0, [sp, #8]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_nvlist_get_number
	mov	x24, x0
	str	w24, [sp, #12]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_nvlist_get_number
	str	w0, [sp, #16]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_nvlist_get_number
	str	w0, [sp, #20]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #24]
	stur	q0, [sp, #40]
	add	x23, sp, #8
	b	LBB0_5
LBB0_4:
	mov	x23, #0
Lloh21:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
LBB0_5:
	mov	x0, x20
	mov	x1, x24
	bl	_dns_allowed_family
	cbz	w0, LBB0_11
; %bb.6:
	mov	x3, sp
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_getaddrinfo
	cbnz	w0, LBB0_14
; %bb.7:
	ldr	x20, [sp]
	cbz	x20, LBB0_12
; %bb.8:
	mov	w21, #0
Lloh24:
	adrp	x22, l_.str.8@PAGE
Lloh25:
	add	x22, x22, l_.str.8@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_addrinfo_pack
	mov	x23, x0
	add	x0, sp, #56
	mov	w1, #64
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	sub	w8, w0, #1
	cmp	w8, #63
	cset	w0, lo
	bl	_assert
	add	x1, sp, #56
	mov	x0, x19
	mov	x2, x23
	bl	_nvlist_move_nvlist
	add	w21, w21, #1
	ldr	x20, [x20, #16]
	cbnz	x20, LBB0_9
; %bb.10:
	ldr	x0, [sp]
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_12:
	mov	x0, #0
LBB0_13:
	bl	_freeaddrinfo
	mov	w0, #0
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NAME2ADDR"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"hints.ai_flags"

l_.str.5:                               ; @.str.5
	.asciz	"hints.ai_family"

l_.str.6:                               ; @.str.6
	.asciz	"hints.ai_socktype"

l_.str.7:                               ; @.str.7
	.asciz	"hints.ai_protocol"

	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
l_.str.8:                               ; @.str.8
	.asciz	"res%u"

	.no_dead_strip	_dns_getaddrinfo
.subsections_via_symbols
