	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calcNegOffset
_calcNegOffset:                         ## @calcNegOffset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %eax
	movl	%r14d, %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$1024, %edx                     ## imm = 0x400
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ecx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %esi
	andl	%eax, %esi
	movl	%ecx, %edx
	shrl	%edx
	testl	%esi, %esi
	je	LBB0_3
LBB0_5:
	leal	-1(%rcx), %ebx
	andl	%ecx, %ebx
	xorl	%eax, %ebx
	callq	_countTrailingZeros
	xorl	%ecx, %ecx
	cmpl	%r14d, %eax
	setg	%cl
	notl	%ebx
	addl	%ecx, %ebx
	movzbl	%bl, %eax
	jmp	LBB0_6
LBB0_1:
	movl	$255, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calcNegOffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calcNegOffset
_calcNegOffset:                         ; @calcNegOffset
	.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
	asr	w20, w0, w1
	cbz	w20, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	w9, #1024
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	cbz	w9, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w8, #1
	and	w10, w8, w20
	cbz	w10, LBB0_2
LBB0_4:
	sub	w9, w8, #1
	and	w21, w9, w8
	bl	_countTrailingZeros
	cmp	w0, w19
	eon	w8, w21, w20
	cinc	w8, w8, gt
	and	w0, w8, #0xff
	b	LBB0_6
LBB0_5:
	mov	w0, #255
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calcNegOffset
.subsections_via_symbols
