	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_space
_check_space:                           ## @check_space
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-208(%rbp), %rsi
	movl	%ebx, %edi
	callq	_fstatfs
	testq	%rax, %rax
	js	LBB0_21
## %bb.1:
	movl	-208(%rbp), %eax
	movl	-192(%rbp), %ecx
	imull	%eax, %ecx
	leal	1023(%rcx), %r14d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r14d
	sarl	$10, %r14d
	imull	-200(%rbp), %eax
	leal	1023(%rax), %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$10, %r15d
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	movl	%ebx, -164(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_xfopenat
	testq	%rax, %rax
	movl	%r13d, -168(%rbp)               ## 4-byte Spill
	je	LBB0_14
## %bb.2:
	movq	%rax, %r12
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	-160(%rbp), %rdi
	leaq	-176(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoll
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	cmpq	$0, (%rbx)
	jne	LBB0_12
LBB0_5:
	movl	%eax, %ebx
	movq	-176(%rbp), %r13
	movb	(%r13), %al
	testb	%al, %al
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	1(%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_6
LBB0_8:
	movq	%r13, -176(%rbp)
	cmpb	$0, (%r13)
	jne	LBB0_12
## %bb.9:
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	callq	_fclose
	movl	%r14d, %eax
	subl	%ebx, %eax
	testl	%ebx, %ebx
	cmovnel	%eax, %r15d
	movl	%ebx, %r13d
	jmp	LBB0_15
LBB0_12:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-160(%rbp), %rdx
	xorl	%eax, %eax
	callq	_logmsg
	movq	%r12, %rdi
	callq	_fclose
	movq	$-1, %r13
	jmp	LBB0_15
LBB0_13:
	movq	%r12, %rdi
	callq	_fclose
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leal	1023(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$10, %r12d
	movl	-164(%rbp), %edi                ## 4-byte Reload
	movl	-168(%rbp), %esi                ## 4-byte Reload
	callq	_saved_dump_size
	subl	%eax, %r12d
	addl	$2, %r12d
	cmpl	%r12d, %r15d
	jge	LBB0_17
## %bb.16:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%r12d, %rdx
	movslq	%r15d, %rcx
	addq	%r13, %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_19
LBB0_17:
	movl	$1, %ebx
	cmpl	%r12d, %r14d
	jge	LBB0_19
## %bb.18:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.20:
	movl	%ebx, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_logmsg
	movl	$1, %edi
	callq	_exit
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %m"

L_.str.1:                               ## @.str.1
	.asciz	"minfree"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"r"

	.comm	_errno,8,3                      ## @errno
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"`minfree` didn't contain a valid size (`%s`). Defaulting to 0"

L_.str.4:                               ## @.str.4
	.asciz	"no dump: not enough free space on device (need at least %jdkB for dump; %jdkB available; %jdkB reserved)"

L_.str.5:                               ## @.str.5
	.asciz	"dump performed, but free space threshold crossed"

	.no_dead_strip	_check_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_space
_check_space:                           ; @check_space
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x1, sp, #40
	mov	x0, x20
	bl	_fstatfs
	tbnz	x0, #63, LBB0_20
; %bb.1:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #40]
	ldr	w10, [sp, #48]
	mul	w8, w9, w8
	add	w11, w8, #1023
	cmp	w8, #0
	csel	w8, w11, w8, lt
	asr	w25, w8, #10
	mul	w8, w9, w10
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w24, w8, #10
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_xfopenat
	mov	x22, x0
	cbz	x0, LBB0_13
; %bb.2:
	add	x0, sp, #68
	mov	w1, #100
	mov	x2, x22
	bl	_fgets
	cbz	x0, LBB0_12
; %bb.3:
Lloh10:
	adrp	x26, _errno@GOTPAGE
Lloh11:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
	str	xzr, [x26]
	add	x0, sp, #68
	add	x1, sp, #32
	mov	w2, #10
	bl	_strtoll
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x26]
	cbnz	x8, LBB0_11
LBB0_5:
	ldr	x26, [sp, #32]
	ldrb	w8, [x26]
	cbz	w8, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x26, #1]!
	cbnz	w8, LBB0_6
LBB0_8:
	str	x26, [sp, #32]
	ldrb	w8, [x26]
	cbnz	w8, LBB0_11
; %bb.9:
	tbnz	w23, #31, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_fclose
	sub	w8, w25, w23
	cmp	w23, #0
	csel	w24, w24, w8, eq
	mov	w22, w23
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x8, sp, #68
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_logmsg
	mov	x0, x22
	bl	_fclose
	mov	x22, #-1
	b	LBB0_13
LBB0_12:
	mov	x0, x22
	bl	_fclose
	mov	x22, #0
LBB0_13:
	add	w8, w21, #1023
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w21, w8, #10
	mov	x0, x20
	mov	x1, x19
	bl	_saved_dump_size
	sub	w8, w21, w0
	add	w8, w8, #2
	cmp	w24, w8
	b.ge	LBB0_15
; %bb.14:
Lloh17:
	adrp	x9, _LOG_WARNING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LOG_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	sxtw	x8, w8
	add	x9, x22, w24, sxtw
	stp	x9, x22, [sp, #8]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_logmsg
	mov	w0, #0
	b	LBB0_18
LBB0_15:
	cmp	w25, w8
	b.ge	LBB0_17
; %bb.16:
Lloh22:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_logmsg
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_20:
Lloh30:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_logmsg
	mov	w0, #1
	bl	_exit
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %m"

l_.str.1:                               ; @.str.1
	.asciz	"minfree"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"r"

	.comm	_errno,8,3                      ; @errno
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"`minfree` didn't contain a valid size (`%s`). Defaulting to 0"

l_.str.4:                               ; @.str.4
	.asciz	"no dump: not enough free space on device (need at least %jdkB for dump; %jdkB available; %jdkB reserved)"

l_.str.5:                               ; @.str.5
	.asciz	"dump performed, but free space threshold crossed"

	.no_dead_strip	_check_space
.subsections_via_symbols
