	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getnet
_getnet:                                ## @getnet
	.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
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	1(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	subq	%rbx, %r12
	cmpl	%r12d, %r15d
	jge	LBB0_4
## %bb.3:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memmove
	movslq	%r12d, %rax
	movb	$0, (%r13,%rax)
	incq	%r14
	movq	%r13, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	movq	%rbx, %rdi
	callq	_getnetbyname
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %edi
	movl	%edi, -56(%rbp)
	testq	%r14, %r14
	je	LBB0_10
LBB0_11:
	leaq	-80(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_strtoul
	movq	-80(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_15
## %bb.12:
	cmpl	$32, %eax
	jg	LBB0_15
## %bb.13:
	negb	%al
	movl	$-1, %r14d
	movl	%eax, %ecx
	shll	%cl, %r14d
	movl	-56(%rbp), %edi
	jmp	LBB0_14
LBB0_7:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_inet_aton
	cmpl	$1, %eax
	movl	$0, %ebx
	jne	LBB0_15
## %bb.8:
	movl	-56(%rbp), %edi
	callq	_ntohl
	movl	%eax, %edi
	movl	%eax, -56(%rbp)
	testq	%r14, %r14
	jne	LBB0_11
LBB0_10:
	callq	_std_mask
	movl	%eax, %ecx
	notl	%ecx
	movl	-56(%rbp), %edi
	andl	%edi, %ecx
	xorl	%r14d, %r14d
	negl	%ecx
	sbbl	%r14d, %r14d
	orl	%eax, %r14d
LBB0_14:
	callq	_htonl
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	_RIP_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r14d, %edi
	callq	_htonl
	movq	%rax, (%rbx)
	movl	$1, %ebx
LBB0_15:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_RIP_AF_INET,4,2                ## @RIP_AF_INET
	.no_dead_strip	_getnet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getnet
_getnet:                                ; @getnet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	add	w8, w25, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	w1, #47
	bl	_strrchr
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	sub	x23, x21, x20
	cmp	w25, w23
	b.lt	LBB0_12
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_memmove
	strb	wzr, [x22, w23, sxtw]
	add	x21, x21, #1
	mov	x20, x22
LBB0_3:
	mov	x0, x20
	bl	_getnetbyname
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x0]
	stur	w0, [x29, #-80]
	cbz	x21, LBB0_10
LBB0_5:
	sub	x1, x29, #88
	mov	x0, x21
	mov	w2, #0
	bl	_strtoul
	mov	x8, x0
	mov	w0, #0
	ldur	x9, [x29, #-88]
	ldrb	w9, [x9]
	cbnz	w9, LBB0_13
; %bb.6:
	cmp	w8, #32
	b.gt	LBB0_13
; %bb.7:
	neg	w8, w8
	mov	w9, #-1
	lsl	w20, w9, w8
	ldur	w0, [x29, #-80]
	b	LBB0_11
LBB0_8:
	sub	x1, x29, #80
	mov	x0, x20
	bl	_inet_aton
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.9:
	ldur	w0, [x29, #-80]
	bl	_ntohl
	stur	w0, [x29, #-80]
	cbnz	x21, LBB0_5
LBB0_10:
	bl	_std_mask
	mov	x8, x0
	ldur	w0, [x29, #-80]
	bics	wzr, w0, w8
	csinv	w20, w8, wzr, eq
LBB0_11:
	bl	_htonl
	str	x0, [x19, #16]
Lloh8:
	adrp	x8, _RIP_AF_INET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RIP_AF_INET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_htonl
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_RIP_AF_INET,4,2                ; @RIP_AF_INET
	.no_dead_strip	_getnet
.subsections_via_symbols
