	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getaddr
_getaddr:                               ## @getaddr
	.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
	movl	%ecx, %r13d
	movq	%rsi, %r15
	movl	%edi, %r14d
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movq	_RTAX_MAX@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_usage
LBB0_3:
	movq	_af@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	$132, (%rcx)
	movq	_aflen@GOTPCREL(%rip), %rax
	movl	$12, (%rax)
	movl	$132, %eax
LBB0_5:
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movq	_rtm_addrs@GOTPCREL(%rip), %rcx
	orl	%edx, (%rcx)
	movq	_so@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	leaq	(%rcx,%rdx,4), %r12
	movl	%eax, (%rcx,%rdx,4)
	movq	_aflen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx,%rdx,4)
	cmpl	$128, %r14d
	je	LBB0_19
## %bb.6:
	cmpl	$129, %r14d
	jne	LBB0_20
## %bb.7:
	movq	_F_INTERFACE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_20
## %bb.8:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_getifaddrs
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_10:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.11:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	cmpl	$132, (%rax)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rbx), %r13
	jmp	LBB0_15
LBB0_19:
	movl	$132, (%r12)
	jmp	LBB0_20
LBB0_16:
	testq	%r13, %r13
	je	LBB0_18
## %bb.17:
	movl	8(%r13), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_freeifaddrs
	jmp	LBB0_28
LBB0_18:
	movq	-48(%rbp), %rdi
	callq	_freeifaddrs
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_errx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
LBB0_20:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.23:
	movl	(%r12), %eax
	cmpl	$131, %eax
	je	LBB0_26
## %bb.24:
	cmpl	$132, %eax
	jne	LBB0_27
## %bb.25:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_link_addr
	jmp	LBB0_28
LBB0_21:
	xorl	%ebx, %ebx
	cmpl	$130, %r14d
	jne	LBB0_29
## %bb.22:
	movq	_F_FORCENET@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_RTAX_NETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_getaddr
	jmp	LBB0_29
LBB0_26:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_sockaddr
	jmp	LBB0_28
LBB0_27:
	movq	_EX_NOHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_28:
	movl	$1, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTAX_MAX,4,2                   ## @RTAX_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal error"

	.comm	_af,8,3                         ## @af
	.comm	_aflen,4,2                      ## @aflen
	.comm	_rtm_addrs,4,2                  ## @rtm_addrs
	.comm	_so,8,3                         ## @so
	.comm	_F_INTERFACE,4,2                ## @F_INTERFACE
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.1:                               ## @.str.1
	.asciz	"getifaddrs"

	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.2:                               ## @.str.2
	.asciz	"interface '%s' does not exist"

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

	.comm	_F_FORCENET,4,2                 ## @F_FORCENET
	.comm	_RTAX_NETMASK,8,3               ## @RTAX_NETMASK
	.comm	_EX_NOHOST,4,2                  ## @EX_NOHOST
L_.str.4:                               ## @.str.4
	.asciz	"bad address: %s"

	.comm	_F_FORCEHOST,4,2                ## @F_FORCEHOST
	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.comm	_INADDR_NONE,4,2                ## @INADDR_NONE
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.no_dead_strip	_getaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getaddr
_getaddr:                               ; @getaddr
	.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	x19, x1
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RTAX_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTAX_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.gt	LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_usage
LBB0_3:
Lloh5:
	adrp	x10, _af@GOTPAGE
Lloh6:
	ldr	x10, [x10, _af@GOTPAGEOFF]
	ldr	x9, [x10]
Lloh7:
	adrp	x8, _aflen@GOTPAGE
Lloh8:
	ldr	x8, [x8, _aflen@GOTPAGEOFF]
	cbnz	x9, LBB0_5
; %bb.4:
	mov	w9, #132
	str	x9, [x10]
	mov	w10, #12
	str	w10, [x8]
LBB0_5:
	mov	w10, #1
Lloh9:
	adrp	x11, _rtm_addrs@GOTPAGE
Lloh10:
	ldr	x11, [x11, _rtm_addrs@GOTPAGEOFF]
	lsl	w10, w10, w21
	ldr	w12, [x11]
	orr	w10, w12, w10
	str	w10, [x11]
Lloh11:
	adrp	x10, _so@GOTPAGE
Lloh12:
	ldr	x10, [x10, _so@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x22, x10, w21, sxtw #2
	str	w9, [x22]
	ldr	w8, [x8]
	str	w8, [x22, #4]
	cmp	w21, #128
	b.eq	LBB0_16
; %bb.6:
	cmp	w21, #129
	b.ne	LBB0_20
; %bb.7:
Lloh14:
	adrp	x8, _F_INTERFACE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _F_INTERFACE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_20
; %bb.8:
	add	x0, sp, #8
	bl	_getifaddrs
	cbz	w0, LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_10:
	ldr	x24, [sp, #8]
	cbz	x24, LBB0_19
; %bb.11:
	mov	x23, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	w8, [x8]
	cmp	w8, #132
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x24]
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x23, [x24, #8]
	b	LBB0_12
LBB0_16:
	mov	w8, #132
	str	w8, [x22]
	b	LBB0_20
LBB0_17:
	cbz	x23, LBB0_19
; %bb.18:
	ldr	w2, [x23, #8]
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	ldr	x0, [sp, #8]
	bl	_freeifaddrs
	b	LBB0_29
LBB0_19:
	ldr	x0, [sp, #8]
	bl	_freeifaddrs
Lloh22:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_errx
LBB0_20:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.21:
	ldr	w8, [x22]
	cmp	w8, #131
	b.eq	LBB0_27
; %bb.22:
	cmp	w8, #132
	b.ne	LBB0_28
; %bb.23:
	mov	x0, x19
	mov	x1, x22
	bl	_link_addr
	b	LBB0_29
LBB0_24:
	cmp	w21, #130
	b.ne	LBB0_26
; %bb.25:
Lloh29:
	adrp	x8, _F_FORCENET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _F_FORCENET@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w3, w8, w20
Lloh32:
	adrp	x8, _RTAX_NETMASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RTAX_NETMASK@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, #0
	bl	_getaddr
LBB0_26:
	mov	w0, #0
	b	LBB0_30
LBB0_27:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4
	bl	_sockaddr
	b	LBB0_29
LBB0_28:
Lloh35:
	adrp	x8, _EX_NOHOST@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EX_NOHOST@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_errx
LBB0_29:
	mov	w0, #1
LBB0_30:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_RTAX_MAX,4,2                   ; @RTAX_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal error"

	.comm	_af,8,3                         ; @af
	.comm	_aflen,4,2                      ; @aflen
	.comm	_rtm_addrs,4,2                  ; @rtm_addrs
	.comm	_so,8,3                         ; @so
	.comm	_F_INTERFACE,4,2                ; @F_INTERFACE
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.1:                               ; @.str.1
	.asciz	"getifaddrs"

	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.2:                               ; @.str.2
	.asciz	"interface '%s' does not exist"

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

	.comm	_F_FORCENET,4,2                 ; @F_FORCENET
	.comm	_RTAX_NETMASK,8,3               ; @RTAX_NETMASK
	.comm	_EX_NOHOST,4,2                  ; @EX_NOHOST
l_.str.4:                               ; @.str.4
	.asciz	"bad address: %s"

	.comm	_F_FORCEHOST,4,2                ; @F_FORCEHOST
	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.comm	_INADDR_NONE,4,2                ; @INADDR_NONE
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.no_dead_strip	_getaddr
.subsections_via_symbols
