	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_signextend                ## -- Begin function file_signextend
	.p2align	4, 0x90
_file_signextend:                       ## @file_signextend
	.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
	movl	%edx, %ebx
	movq	_UNSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	jne	LBB0_8
## %bb.1:
	movl	4(%rsi), %edx
	leal	-128(%rdx), %eax
	cmpl	$37, %eax
	ja	LBB0_6
## %bb.2:
	movabsq	$274206810109, %rcx             ## imm = 0x3FD7FFDFFD
	btq	%rax, %rcx
	jae	LBB0_3
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	$536879106, %ecx                ## imm = 0x20002002
	btq	%rax, %rcx
	jae	LBB0_4
## %bb.5:
	movswl	%bx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_R_MAGIC_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %ebx
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_file_magwarn
	jmp	LBB0_8
LBB0_4:
	movsbl	%bl, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSIGNED,4,2                   ## @UNSIGNED
	.comm	_R_MAGIC_CHECK,4,2              ## @R_MAGIC_CHECK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot happen: m->type=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_signextend                ; -- Begin function file_signextend
	.p2align	2
_file_signextend:                       ; @file_signextend
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x2
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _UNSIGNED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _UNSIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	w2, [x1, #4]
	sub	w9, w2, #128
	cmp	w9, #37
	b.hi	LBB0_5
; %bb.2:
	mov	w10, #1
	lsl	x10, x10, x9
	mov	x11, #57341
	movk	x11, #55295, lsl #16
	movk	x11, #63, lsl #32
	tst	x10, x11
	b.eq	LBB0_4
LBB0_3:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w10, #1
	lsl	x9, x10, x9
	mov	w10, #8194
	movk	w10, #8192, lsl #16
	tst	x9, x10
	sxth	w9, w8
	sxtb	w8, w8
	csel	w8, w9, w8, ne
	b	LBB0_3
LBB0_5:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _R_MAGIC_CHECK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R_MAGIC_CHECK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_file_magwarn
LBB0_7:
	mov	w8, #-1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSIGNED,4,2                   ; @UNSIGNED
	.comm	_R_MAGIC_CHECK,4,2              ; @R_MAGIC_CHECK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot happen: m->type=%d\n"

.subsections_via_symbols
