	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_netmask                  ## -- Begin function check_netmask
	.p2align	4, 0x90
_check_netmask:                         ## @check_netmask
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PF_ADDR_TABLE@GOTPCREL(%rip), %rcx
	movq	_AF_INET@GOTPCREL(%rip), %rdx
	movq	%rdi, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, (%rdx)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PF_ADDR_DYNIFTL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_unmask
	movq	%r15, %rdx
	movq	%r14, %rcx
	cmpl	$33, %eax
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_set_ipmask
	movq	%r15, %rdx
	movq	%r14, %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, (%rdx)
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rax)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 24(%rax)
	je	LBB0_12
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_unmask
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_fprintf
	movl	$1, %eax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_ADDR_TABLE,8,3              ## @PF_ADDR_TABLE
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_PF_ADDR_DYNIFTL,8,3            ## @PF_ADDR_DYNIFTL
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netmask %u invalid for IPv4 address\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_netmask                  ; -- Begin function check_netmask
	.p2align	2
_check_netmask:                         ; @check_netmask
	.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
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _PF_ADDR_TABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PF_ADDR_TABLE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AF_INET@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AF_INET@GOTPAGEOFF]
	add	x21, x0, #8
Lloh4:
	adrp	x25, _PF_ADDR_DYNIFTL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PF_ADDR_DYNIFTL@GOTPAGEOFF]
	mov	x22, x0
Lloh6:
	adrp	x26, _AF_INET6@GOTPAGE
Lloh7:
	ldr	x26, [x26, _AF_INET6@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24]
	ldr	x10, [x25]
	cmp	x9, x19
	ccmp	x8, x10, #0, eq
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	bl	_unmask
	cmp	w0, #33
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	w1, #32
	bl	_set_ipmask
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_2
LBB0_11:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_unmask
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_ADDR_TABLE,8,3              ; @PF_ADDR_TABLE
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_PF_ADDR_DYNIFTL,8,3            ; @PF_ADDR_DYNIFTL
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netmask %u invalid for IPv4 address\n"

.subsections_via_symbols
