	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnet                         ## -- Begin function getnet
	.p2align	4, 0x90
_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	1(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strrchr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rbx
	subq	%r13, %rbx
	cmpl	%ebx, %r14d
	jl	LBB0_30
## %bb.3:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memmove
	movslq	%ebx, %rax
	movb	$0, (%r15,%rax)
	incq	%r12
	movq	%r15, %r13
	movq	%r12, %rbx
LBB0_4:
	movq	%r13, %rdi
	callq	_getnetbyname
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	cmovael	%eax, %ecx
	movl	%ecx, %edi
	shll	$8, %edi
	cmpl	$16777216, %ecx                 ## imm = 0x1000000
	cmovael	%ecx, %edi
	movl	%edi, -56(%rbp)
	cmpl	$16777215, %edi                 ## imm = 0xFFFFFF
	ja	LBB0_7
## %bb.6:
	shll	$8, %edi
	movl	%edi, -56(%rbp)
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_20
LBB0_8:
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, %rcx
	movq	-88(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_31
## %bb.9:
	cmpl	$32, %ecx
	jg	LBB0_31
## %bb.10:
	testl	%ecx, %ecx
	je	LBB0_24
## %bb.11:
	movq	_HOST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	negb	%cl
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	jmp	LBB0_22
LBB0_12:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_inet_aton
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.13:
	movl	-56(%rbp), %edi
	callq	_ntohl
	movl	%eax, %edi
	movl	%eax, -56(%rbp)
	testq	%rbx, %rbx
	jne	LBB0_8
	jmp	LBB0_20
LBB0_14:
	testq	%rbx, %rbx
	jne	LBB0_30
## %bb.17:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_30
## %bb.19:
	movq	_RIP_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -56(%rbp)
LBB0_20:
	callq	_htonl
	movl	%eax, %edi
	callq	_std_mask
	movl	%eax, %ecx
	notl	%ecx
	testl	%ecx, -56(%rbp)
	je	LBB0_22
## %bb.21:
	movq	_HOST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	-56(%rbp), %ecx
	movq	_RIP_DEFAULT@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	cmpl	(%rdx), %ecx
	jne	LBB0_25
	jmp	LBB0_31
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	movl	%eax, %edx
	notl	%edx
	movl	-56(%rbp), %ecx
	testl	%edx, %ecx
	je	LBB0_27
LBB0_30:
	xorl	%ebx, %ebx
LBB0_31:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	testl	%eax, %ecx
	setne	%dl
	movq	_RIP_DEFAULT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	sete	%sil
	orb	%sil, %dl
	cmpl	$16777216, %ecx                 ## imm = 0x1000000
	setae	%bl
	cmpb	$1, %dl
	jne	LBB0_30
## %bb.28:
	orb	%sil, %bl
	movl	$0, %ebx
	je	LBB0_31
## %bb.29:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_31
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

	.comm	_RIP_DEFAULT,4,2                ## @RIP_DEFAULT
	.comm	_HOST_MASK,4,2                  ## @HOST_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnet                         ; -- Begin function getnet
	.p2align	2
_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, x2
	mov	x20, x1
	mov	x22, x0
	mov	x25, 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	w26, [x8]
	add	w8, w26, #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	x23, x9, x8
	mov	sp, x23
	mov	w1, #47
	bl	_strrchr
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	sub	x24, x21, x22
	cmp	w26, w24
	b.lt	LBB0_21
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_memmove
	strb	wzr, [x23, w24, sxtw]
	add	x21, x21, #1
	mov	x22, x23
LBB0_3:
	mov	x0, x22
	bl	_getnetbyname
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x0]
	lsl	w9, w8, #8
	lsr	w10, w8, #24
	cmp	w10, #0
	csel	w8, w9, w8, eq
	lsl	w9, w8, #8
	lsr	w10, w8, #24
	cmp	w10, #0
	csel	w0, w9, w8, eq
	stur	w0, [x29, #-80]
	lsr	w8, w0, #24
	cbnz	w8, LBB0_9
; %bb.5:
	lsl	w0, w0, #8
	b	LBB0_8
LBB0_6:
	sub	x1, x29, #80
	mov	x0, x22
	bl	_inet_aton
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.7:
	ldur	w0, [x29, #-80]
	bl	_ntohl
LBB0_8:
	stur	w0, [x29, #-80]
LBB0_9:
	cbz	x21, LBB0_17
; %bb.10:
	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_22
; %bb.11:
	cmp	w8, #32
	b.gt	LBB0_22
; %bb.12:
	cbz	w8, LBB0_19
; %bb.13:
Lloh8:
	adrp	x9, _HOST_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HOST_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	neg	w8, w8
	lsl	w8, w9, w8
	cbnz	w8, LBB0_18
	b	LBB0_19
LBB0_14:
	cbnz	x21, LBB0_21
; %bb.15:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbnz	w0, LBB0_21
; %bb.16:
Lloh13:
	adrp	x8, _RIP_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RIP_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	stur	w0, [x29, #-80]
LBB0_17:
	bl	_htonl
	bl	_std_mask
	ldur	w8, [x29, #-80]
Lloh16:
	adrp	x9, _HOST_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HOST_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bics	wzr, w8, w0
	csel	w8, w0, w9, eq
	cbz	w8, LBB0_19
LBB0_18:
	ldur	w9, [x29, #-80]
Lloh19:
	adrp	x10, _RIP_DEFAULT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _RIP_DEFAULT@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_21
LBB0_19:
	ldur	w9, [x29, #-80]
	bics	wzr, w9, w8
	b.ne	LBB0_21
; %bb.20:
	tst	w9, w8
	cset	w10, ne
Lloh22:
	adrp	x11, _RIP_DEFAULT@GOTPAGE
Lloh23:
	ldr	x11, [x11, _RIP_DEFAULT@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	cmp	w9, w11
	cset	w11, eq
	orr	w10, w10, w11
	tst	w9, #0xff000000
	cset	w12, ne
	orr	w11, w12, w11
	cmp	w10, #1
	ccmp	w11, #0, #4, eq
	b.ne	LBB0_24
LBB0_21:
	mov	w0, #0
LBB0_22:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.23:
	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_24:
	str	w9, [x20]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_22
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

	.comm	_RIP_DEFAULT,4,2                ; @RIP_DEFAULT
	.comm	_HOST_MASK,4,2                  ; @HOST_MASK
.subsections_via_symbols
