	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_present2network           ## -- Begin function sock_present2network
	.p2align	4, 0x90
_sock_present2network:                  ## @sock_present2network
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%ebx, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %r14d
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	movq	%r13, %r8
	movl	%r15d, %r9d
	callq	_sock_initaddress
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rax
	movl	16(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %r15
	callq	_freeaddrinfo
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movl	$-2, %ebx
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_pcap_snprintf
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"22222"

	.comm	_PF_INET,8,3                    ## @PF_INET
L_.str.1:                               ## @.str.1
	.asciz	"More than one socket requested; using the first one returned"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_present2network           ; -- Begin function sock_present2network
	.p2align	2
_sock_present2network:                  ; @sock_present2network
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	add	x3, sp, #24
	mov	x0, x23
	mov	x4, x20
	mov	x5, x19
	bl	_sock_initaddress
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	w1, [x8, #16]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [sp, #24]
	ldr	x21, [x0, #8]
	bl	_freeaddrinfo
	cbz	x21, LBB0_6
; %bb.2:
	cbz	x20, LBB0_4
; %bb.3:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_pcap_snprintf
LBB0_4:
	mov	w0, #-2
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"22222"

	.comm	_PF_INET,8,3                    ; @PF_INET
l_.str.1:                               ; @.str.1
	.asciz	"More than one socket requested; using the first one returned"

.subsections_via_symbols
