	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cap_getaddrinfo                ## -- Begin function cap_getaddrinfo
	.p2align	4, 0x90
_cap_getaddrinfo:                       ## @cap_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	callq	_nvlist_create
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	callq	_nvlist_add_string
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_nvlist_add_string
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_nvlist_add_string
LBB0_4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movl	32(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_add_number
	movl	24(%r12), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_add_number
	movl	16(%r12), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_add_number
	movl	8(%r12), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_add_number
LBB0_6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cap_xfer_nvlist
	testq	%rax, %rax
	je	LBB0_22
## %bb.7:
	movq	%rax, %r15
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdi
	callq	_nvlist_get_number
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_get_number
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_nvlist_destroy
	jmp	LBB0_26
LBB0_9:
	leaq	L_.str.9(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	xorl	%ecx, %ecx
	callq	_snprintf
	decl	%eax
	xorl	%edi, %edi
	cmpl	$63, %eax
	setb	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvlist_exists_nvlist
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movl	$1, %r14d
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %rsi
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, (%r13)
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	movl	$64, %esi
	leaq	L_.str.9(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	decl	%eax
	xorl	%edi, %edi
	cmpl	$63, %eax
	setb	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_nvlist_exists_nvlist
	movq	%r15, %rsi
	movq	%rbx, %r15
	incl	%r14d
	movq	%r12, %r13
	testl	%eax, %eax
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	movq	%r15, %rdi
	movq	%rsi, %r15
	callq	_nvlist_get_nvlist
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_addrinfo_unpack
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testq	%r13, %r13
	jne	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%r12, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_12
LBB0_16:
	movq	%r15, %rdi
	callq	_nvlist_destroy
	xorl	%ecx, %ecx
	jmp	LBB0_25
LBB0_17:
	movq	%rbx, %r15
LBB0_18:
	movq	%r15, %rdi
	callq	_nvlist_destroy
	testq	%r12, %r12
	jne	LBB0_24
## %bb.19:
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_24
## %bb.20:
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_22
## %bb.21:
	xorl	%edi, %edi
	callq	_freeaddrinfo
LBB0_22:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_26
LBB0_24:
	movq	-120(%rbp), %rcx                ## 8-byte Reload
LBB0_25:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, (%rax)
	xorl	%ebx, %ebx
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd"

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

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	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
L_.str.8:                               ## @.str.8
	.asciz	"error"

L_.str.9:                               ## @.str.9
	.asciz	"res%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cap_getaddrinfo                ; -- Begin function cap_getaddrinfo
	.p2align	2
_cap_getaddrinfo:                       ; @cap_getaddrinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	mov	w0, #0
	bl	_nvlist_create
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_nvlist_add_string
	cbz	x24, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	bl	_nvlist_add_string
LBB0_2:
	cbz	x23, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_nvlist_add_string
LBB0_4:
	cbz	x22, LBB0_6
; %bb.5:
	ldr	w2, [x22, #32]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_nvlist_add_number
	ldr	w2, [x22, #24]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_nvlist_add_number
	ldr	w2, [x22, #16]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_nvlist_add_number
	ldr	w2, [x22, #8]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_nvlist_add_number
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_cap_xfer_nvlist
	cbz	x0, LBB0_20
; %bb.7:
	mov	x20, x0
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_nvlist_get_number
	cbz	x0, LBB0_9
; %bb.8:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	mov	x21, x0
	mov	x0, x20
	bl	_nvlist_destroy
	b	LBB0_23
LBB0_9:
Lloh23:
	adrp	x2, l_.str.9@PAGE
Lloh24:
	add	x2, x2, l_.str.9@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	mov	w3, #0
	bl	_snprintf
	sub	w8, w0, #1
	cmp	w8, #63
	cset	w0, lo
	bl	_assert
	add	x1, sp, #8
	mov	x0, x20
	bl	_nvlist_exists_nvlist
	cbz	w0, LBB0_21
; %bb.10:
	mov	x25, #0
	mov	x26, #0
	mov	w21, #1
Lloh25:
	adrp	x22, l_.str.9@PAGE
Lloh26:
	add	x22, x22, l_.str.9@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x24, [x26]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #8
	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, #8
	mov	x0, x20
	bl	_nvlist_exists_nvlist
	add	w21, w21, #1
	mov	x26, x24
	cbz	w0, LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_nvlist_get_nvlist
	mov	x23, x0
	bl	_addrinfo_unpack
	mov	x24, x0
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cbnz	x26, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x25, #0
	csel	x25, x24, x25, eq
	b	LBB0_12
LBB0_16:
	mov	x0, x20
	bl	_nvlist_destroy
	cbnz	x24, LBB0_22
; %bb.17:
	cbz	x23, LBB0_22
; %bb.18:
	cbnz	x25, LBB0_20
; %bb.19:
	mov	x0, #0
	bl	_freeaddrinfo
LBB0_20:
Lloh27:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	b	LBB0_23
LBB0_21:
	mov	x0, x20
	bl	_nvlist_destroy
	mov	x25, #0
LBB0_22:
	mov	w21, #0
	str	x25, [x19]
LBB0_23:
	ldr	x8, [sp, #72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd"

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

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	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
l_.str.8:                               ; @.str.8
	.asciz	"error"

l_.str.9:                               ; @.str.9
	.asciz	"res%u"

.subsections_via_symbols
