	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_initaddress               ## -- Begin function sock_initaddress
	.p2align	4, 0x90
_sock_initaddress:                      ## @sock_initaddress
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %r15
	movq	%rcx, %r12
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	$-1, %ebx
	testq	%r15, %r15
	je	LBB0_14
## %bb.2:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_14
LBB0_3:
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movq	_PF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_PF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	testq	%r15, %r15
	je	LBB0_13
## %bb.6:
	leaq	L_.str.1(%rip), %rdx
LBB0_11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_12:
	movq	(%r12), %rdi
LBB0_13:
	callq	_freeaddrinfo
	movq	$0, (%r12)
	movl	$-1, %ebx
	jmp	LBB0_14
LBB0_7:
	movq	8(%rdi), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.8:
	movl	16(%rdi), %edi
	callq	_sock_ismcastaddr
	testq	%rax, %rax
	je	LBB0_9
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testq	%r15, %r15
	je	LBB0_12
## %bb.10:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getaddrinfo() %s"

	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_PF_INET6,8,3                   ## @PF_INET6
L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo(): socket type not supported"

	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
L_.str.2:                               ## @.str.2
	.asciz	"getaddrinfo(): multicast addresses are not valid when using TCP streams"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_initaddress               ; -- Begin function sock_initaddress
	.p2align	2
_sock_initaddress:                      ; @sock_initaddress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x5
	mov	x21, x4
	mov	x19, x3
	bl	_getaddrinfo
	cbz	w0, LBB0_3
; %bb.1:
	cbz	x21, LBB0_12
; %bb.2:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_pcap_snprintf
	b	LBB0_12
LBB0_3:
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _PF_INET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PF_INET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _PF_INET6@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PF_INET6@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x0, #8]
Lloh8:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x0, #16]
	bl	_sock_ismcastaddr
	cbz	x0, LBB0_14
LBB0_6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	cbz	x21, LBB0_11
; %bb.8:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	bl	_pcap_snprintf
LBB0_10:
	ldr	x0, [x19]
LBB0_11:
	bl	_freeaddrinfo
	str	xzr, [x19]
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	cbz	x21, LBB0_10
; %bb.15:
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getaddrinfo() %s"

	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_PF_INET6,8,3                   ; @PF_INET6
l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo(): socket type not supported"

	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
l_.str.2:                               ; @.str.2
	.asciz	"getaddrinfo(): multicast addresses are not valid when using TCP streams"

.subsections_via_symbols
