	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_convert2s_complement   ## -- Begin function cxd2880_convert2s_complement
	.p2align	4, 0x90
_cxd2880_convert2s_complement:          ## @cxd2880_convert2s_complement
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edi, %ebx
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$31, %esi
	jg	LBB0_5
## %bb.2:
	leal	-1(%rsi), %edi
	btl	%edi, %ebx
	jae	LBB0_4
## %bb.3:
	movl	$31, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_GENMASK
	orl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_cxd2880_convert2s_complement   ; -- Begin function cxd2880_convert2s_complement
	.p2align	2
_cxd2880_convert2s_complement:          ; @cxd2880_convert2s_complement
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_5
; %bb.1:
	cmp	w1, #31
	b.gt	LBB0_5
; %bb.2:
	sub	w0, w1, #1
	lsr	w8, w19, w0
	tbz	w8, #0, LBB0_4
; %bb.3:
	mov	w0, #31
	bl	_GENMASK
	orr	w19, w0, w19
	b	LBB0_5
LBB0_4:
	mov	w1, #0
	bl	_GENMASK
	and	w19, w0, w19
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
