	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_sockaddr_cidr_mask          ## -- Begin function pg_sockaddr_cidr_mask
	.p2align	4, 0x90
_pg_sockaddr_cidr_mask:                 ## @pg_sockaddr_cidr_mask
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	$-1, %r15d
	cmpb	$0, (%rbx)
	je	LBB0_7
## %bb.3:
	movq	%rax, %r13
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_7
	jmp	LBB0_4
LBB0_1:
	cmpl	$129, %r12d
	movl	$32, %eax
	movl	$128, %r13d
	cmoveq	%rax, %r13
LBB0_4:
	movl	$-1, %r15d
	cmpl	$129, %r12d
	jne	LBB0_7
## %bb.5:
	cmpq	$32, %r13
	ja	LBB0_7
## %bb.6:
	leaq	-64(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	32(%r13), %rcx
	negq	%rcx
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	testq	%r13, %r13
	movl	%eax, %edi
	cmoveq	%r13, %rdi
	callq	_pg_hton32
	movl	%eax, -56(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	$129, (%r14)
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_sockaddr_cidr_mask          ; -- Begin function pg_sockaddr_cidr_mask
	.p2align	2
_pg_sockaddr_cidr_mask:                 ; @pg_sockaddr_cidr_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x19, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x22, x1
	add	x1, sp, #24
	mov	x0, x22
	mov	w2, #10
	bl	_strtol
	ldrb	w8, [x22]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.3:
	mov	x20, x0
	cmp	w21, #129
	b.eq	LBB0_5
	b	LBB0_6
LBB0_4:
	cmp	w21, #129
	mov	w8, #128
	mov	w9, #32
	csel	x20, x9, x8, eq
	cmp	w21, #129
	b.ne	LBB0_6
LBB0_5:
	cmp	x20, #32
	b.ls	LBB0_8
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #32
	sub	x8, x8, x20
	mov	w9, #-1
	lsl	x8, x9, x8
	and	x8, x8, #0xffffffff
	cmp	x20, #0
	csel	x0, xzr, x8, eq
	bl	_pg_hton32
	str	w0, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
	mov	w8, #129
	str	w8, [x19]
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
