	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_size                     ## -- Begin function check_size
	.p2align	4, 0x90
_check_size:                            ## @check_size
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_fd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-24(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_prterr
	movl	$-1, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	-24(%rbp), %ebx
LBB0_3:
	movl	(%r14), %edi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	movq	_file_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ebx, %ecx
	jne	LBB0_6
## %bb.4:
	cmpl	%eax, %ecx
	jne	LBB0_6
## %bb.5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movslq	%ecx, %rsi
	movslq	%ebx, %rdx
	movslq	%eax, %rcx
	leaq	L_.str.1(%rip), %rdi
	callq	_prt
	movl	$120, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_report_failure                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fd,4,2                         ## @fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check_size: fstat"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_file_size,4,2                  ## @file_size
L_.str.1:                               ## @.str.1
	.asciz	"Size error: expected 0x%llx stat 0x%llx seek 0x%llx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_size                     ; -- Begin function check_size
	.p2align	2
_check_size:                            ; @check_size
	.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	x20, _fd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fd@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_fstat
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_prterr
	mov	w19, #-1
	b	LBB0_3
LBB0_2:
	ldr	w19, [sp, #8]
LBB0_3:
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
                                        ; kill: def $w0 killed $w0 def $x0
Lloh7:
	adrp	x8, _file_size@GOTPAGE
Lloh8:
	ldr	x8, [x8, _file_size@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w19
	ccmp	w8, w0, #0, eq
	b.eq	LBB0_5
; %bb.4:
	sxtw	x1, w8
	sxtw	x2, w19
	sxtw	x3, w0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_prt
	mov	w0, #120
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_report_failure
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_fd,4,2                         ; @fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check_size: fstat"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_file_size,4,2                  ; @file_size
l_.str.1:                               ; @.str.1
	.asciz	"Size error: expected 0x%llx stat 0x%llx seek 0x%llx\n"

.subsections_via_symbols
