	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_cmd_args
_parse_cmd_args:                        ## @parse_cmd_args
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_if_nametoindex
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_3:
	xorl	%r12d, %r12d
LBB0_4:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	setne	%dil
	callq	_assert
	movq	-48(%rbp), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	testq	%r15, %r15
	je	LBB0_4
## %bb.6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.7:
	cmpb	$0, (%rbx)
	je	LBB0_4
## %bb.8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movl	%r13d, -88(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	movq	-48(%rbp), %rax
	cmpl	(%rax), %r13d
	je	LBB0_11
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	xorl	%r12d, %r12d
LBB0_11:
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_parse_cmd_args
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_cmd_args
_parse_cmd_args:                        ; @parse_cmd_args
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x23, #0
	cset	w0, ne
	bl	_assert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_if_nametoindex
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _AI_NUMERICHOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
Lloh3:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w8, [sp, #16]
	str	w9, [sp, #40]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh9:
	adrp	x24, _AF_UNSPEC@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AF_UNSPEC@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x22, #16]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x23
	bl	_getaddrinfo
	cbz	w0, LBB0_4
LBB0_2:
	bl	_gai_strerror
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [sp, #8]
	ldp	w2, w1, [x8, #4]
	ldr	w23, [x8]
	mov	x0, x22
	bl	_memcpy
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
	cbz	x20, LBB0_3
; %bb.5:
	cbz	x21, LBB0_3
; %bb.6:
	ldrb	w8, [x21]
	cbz	w8, LBB0_3
; %bb.7:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x24]
	str	x8, [x20, #16]
	str	w23, [sp, #16]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x21
	bl	_getaddrinfo
	cbnz	w0, LBB0_2
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w23, w9
	b.eq	LBB0_10
; %bb.9:
	mov	x19, #0
Lloh17:
	adrp	x9, _EINVAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _errno@GOTPAGE
Lloh21:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh22:
	str	w9, [x10]
LBB0_10:
	ldp	w2, w1, [x8, #4]
	mov	x0, x20
	bl	_memcpy
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
	b	LBB0_3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_parse_cmd_args
.subsections_via_symbols
