	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_trunc_hack               ## -- Begin function check_trunc_hack
	.p2align	4, 0x90
_check_trunc_hack:                      ## @check_trunc_hack
	.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
	movq	_fd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_ftruncate
	movl	(%rbx), %edi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_ftruncate
	movl	(%rbx), %edi
	leaq	-16(%rbp), %rsi
	callq	_fstat
	cmpq	$100000, -16(%rbp)              ## imm = 0x186A0
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ftruncate                      ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_prt
	movl	$130, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_fd,4,2                         ## @fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no extend on truncate! not posix!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_trunc_hack               ; -- Begin function check_trunc_hack
	.p2align	2
_check_trunc_hack:                      ; @check_trunc_hack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _fd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _fd@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, #0
	bl	_ftruncate
	ldr	w0, [x19]
	mov	w20, #34464
	movk	w20, #1, lsl #16
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_ftruncate
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_fstat
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ftruncate
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_prt
	mov	w0, #130
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_fd,4,2                         ; @fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no extend on truncate! not posix!\n"

.subsections_via_symbols
