	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_mask
_calculate_mask:                        ## @calculate_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	leal	(%rdi,%rsi), %eax
	decl	%eax
	xorl	%edi, %eax
	je	LBB0_1
## %bb.2:
	cltq
	movl	$-32, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	leal	1(%rdx), %ecx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdx
	shrq	%rdx
	cmpq	$1, %rax
	movq	%rdx, %rax
	ja	LBB0_3
LBB0_5:
	negl	%ecx
	jmp	LBB0_6
LBB0_1:
	movl	$32, %ecx
LBB0_6:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calculate_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_mask
_calculate_mask:                        ; @calculate_mask
	.cfi_startproc
; %bb.0:
	add	w8, w0, w1
	sub	w8, w8, #1
	eor	w8, w8, w0
	cbz	w8, LBB0_5
; %bb.1:
	sxtw	x8, w8
	mov	w10, #-32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w10, #1
	cbz	w10, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	x11, x8, #1
	mov	x10, x9
	cmp	x8, #1
	mov	x8, x11
	b.hi	LBB0_2
LBB0_4:
	neg	w8, w9
	b	LBB0_6
LBB0_5:
	mov	w8, #32
LBB0_6:
	mov	w9, #-1
	lsr	x0, x9, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calculate_mask
.subsections_via_symbols
