	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addr_mask                      ## -- Begin function addr_mask
	.p2align	4, 0x90
_addr_mask:                             ## @addr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	callq	_addr_is_ip6
	testq	%rax, %rax
	movl	$32, %ecx
	movl	$128, %eax
	cmovel	%ecx, %eax
	cmpl	%ebx, %eax
	jle	LBB0_4
## %bb.1:
	leal	7(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	sarl	$3, %ecx
	shrl	$3, %eax
	leal	1(%rcx), %edx
	movslq	%ecx, %r15
	cmpl	%eax, %edx
	jge	LBB0_3
## %bb.2:
	leaq	(%r14,%r15,4), %rdi
	addq	$4, %rdi
	subl	%r15d, %eax
	addl	$-2, %eax
	leaq	4(,%rax,4), %rsi
	callq	___bzero
LBB0_3:
	andl	$7, %ebx
	leaq	l___const.addr_mask.mask(%rip), %rax
	movl	(%rax,%rbx,4), %eax
	andl	%eax, (%r14,%r15,4)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.addr_mask.mask
l___const.addr_mask.mask:
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	192                             ## 0xc0
	.long	224                             ## 0xe0
	.long	240                             ## 0xf0
	.long	248                             ## 0xf8
	.long	252                             ## 0xfc
	.long	254                             ## 0xfe

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addr_mask                      ; -- Begin function addr_mask
	.p2align	2
_addr_mask:                             ; @addr_mask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x0
	bl	_addr_is_ip6
	cmp	x0, #0
	mov	w8, #128
	mov	w9, #32
	csel	w8, w9, w8, eq
	cmp	w8, w20
	b.le	LBB0_4
; %bb.1:
	add	w9, w20, #7
	cmp	w20, #0
	csel	w9, w9, w20, lt
	asr	w10, w9, #3
	lsr	w8, w8, #3
	add	w10, w10, #1
	sbfx	x21, x9, #3, #29
	cmp	w10, w8
	b.ge	LBB0_3
; %bb.2:
	add	x9, x19, x21, lsl #2
	add	x0, x9, #4
	sub	w8, w8, w21
	sub	w8, w8, #2
	lsl	x8, x8, #2
	add	x1, x8, #4
	bl	_bzero
LBB0_3:
	and	w8, w20, #0x7
Lloh0:
	adrp	x9, l___const.addr_mask.mask@PAGE
Lloh1:
	add	x9, x9, l___const.addr_mask.mask@PAGEOFF
	ldr	w8, [x9, w8, uxtw #2]
	lsl	x9, x21, #2
	ldr	w10, [x19, x9]
	and	w8, w10, w8
	str	w8, [x19, x9]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.addr_mask.mask
l___const.addr_mask.mask:
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	192                             ; 0xc0
	.long	224                             ; 0xe0
	.long	240                             ; 0xf0
	.long	248                             ; 0xf8
	.long	252                             ; 0xfc
	.long	254                             ; 0xfe

.subsections_via_symbols
