	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_2comp
_s_2comp:                               ## @s_2comp
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movl	$4294967295, %r9d               ## imm = 0xFFFFFFFF
	movl	%esi, %r8d
	movl	$1, %eax
	movq	%r8, %rdx
	cmpl	$1, %esi
	je	LBB0_4
## %bb.2:
	movl	%r8d, %r14d
	andl	$-2, %r14d
	movl	$1, %eax
	movq	_UCHAR_MAX@GOTPCREL(%rip), %r10
	movq	_CHAR_BIT@GOTPCREL(%rip), %r11
	movq	%r8, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%r9), %r15d
	movzbl	(%rdi,%r15), %esi
	xorl	$255, %esi
	addl	%eax, %esi
	movzwl	%si, %eax
	movzwl	(%r10), %ebx
	movzbl	(%r11), %ecx
	shrl	%cl, %eax
	andl	%esi, %ebx
	movb	%bl, (%rdi,%r15)
	addq	$-2, %rdx
	movl	%edx, %esi
	movzbl	(%rdi,%rsi), %ebx
	xorl	$255, %ebx
	addl	%eax, %ebx
	movzwl	%bx, %eax
	movzbl	(%r11), %ecx
	shrl	%cl, %eax
	movzwl	(%r10), %ecx
	andl	%ebx, %ecx
	movb	%cl, (%rdi,%rsi)
	addq	$-2, %r14
	jne	LBB0_3
LBB0_4:
	testb	$1, %r8b
	je	LBB0_6
## %bb.5:
	addl	%r9d, %edx
	movb	(%rdi,%rdx), %cl
	notb	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %eax
	movq	_UCHAR_MAX@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	andl	%eax, %ecx
	movb	%cl, (%rdi,%rdx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCHAR_MAX,2,1                  ## @UCHAR_MAX
	.comm	_CHAR_BIT,2,1                   ## @CHAR_BIT
	.no_dead_strip	_s_2comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_2comp
_s_2comp:                               ; @s_2comp
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w1
	add	x8, x8, #1
	mov	w11, #1
Lloh0:
	adrp	x9, _UCHAR_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UCHAR_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x10, _CHAR_BIT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CHAR_BIT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w12, w8, #2
	ldrb	w13, [x0, x12]
	eor	w13, w13, #0xff
	ldrh	w14, [x9]
	add	w11, w11, w13
	and	w13, w11, w14
	and	w11, w11, #0xffff
	ldrh	w14, [x10]
	lsr	w11, w11, w14
	strb	w13, [x0, x12]
	sub	x8, x8, #1
	cmp	x8, #1
	b.hi	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UCHAR_MAX,2,1                  ; @UCHAR_MAX
	.comm	_CHAR_BIT,2,1                   ; @CHAR_BIT
	.no_dead_strip	_s_2comp
.subsections_via_symbols
