	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_size
_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_CTL_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_HW_PHYSMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_nitems
	movq	%rax, %rbx
	movq	$4, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$1, -52(%rbp)
	je	LBB0_10
LBB0_2:
	movq	$8, -48(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	_DIOCGMEDIASIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movq	-64(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jl	LBB0_7
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
LBB0_7:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
LBB0_9:
	movq	_EX_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_HW,4,2                     ## @CTL_HW
	.comm	_HW_PHYSMEM,4,2                 ## @HW_PHYSMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"debug.minidump"

	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.1:                               ## @.str.1
	.asciz	"can't get memory size"

	.comm	_DIOCGMEDIASIZE,4,2             ## @DIOCGMEDIASIZE
L_.str.2:                               ## @.str.2
	.asciz	"%s: can't get size"

	.comm	_verbose,8,3                    ## @verbose
L_.str.3:                               ## @.str.3
	.asciz	"%s is smaller than physical memory\n"

	.comm	_EX_IOERR,4,2                   ## @EX_IOERR
	.no_dead_strip	_check_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_size
_check_size:                            ; @check_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _CTL_HW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_HW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _HW_PHYSMEM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HW_PHYSMEM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #48]
	add	x0, sp, #48
	bl	_nitems
	mov	x21, x0
	mov	w8, #4
	str	x8, [sp, #32]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #20
	add	x2, sp, #32
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.eq	LBB0_7
LBB0_2:
	mov	w8, #8
	str	x8, [sp, #32]
	add	x0, sp, #48
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x1, x21
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
Lloh11:
	adrp	x21, _EX_OSERR@GOTPAGE
Lloh12:
	ldr	x21, [x21, _EX_OSERR@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
Lloh15:
	adrp	x8, _DIOCGMEDIASIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DIOCGMEDIASIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	str	x19, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_6:
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #40]
	cmp	x8, x9
	b.lt	LBB0_10
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
LBB0_10:
Lloh23:
	adrp	x8, _verbose@GOTPAGE
Lloh24:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_12:
Lloh28:
	adrp	x8, _EX_IOERR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EX_IOERR@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_HW,4,2                     ; @CTL_HW
	.comm	_HW_PHYSMEM,4,2                 ; @HW_PHYSMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"debug.minidump"

	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.1:                               ; @.str.1
	.asciz	"can't get memory size"

	.comm	_DIOCGMEDIASIZE,4,2             ; @DIOCGMEDIASIZE
l_.str.2:                               ; @.str.2
	.asciz	"%s: can't get size"

	.comm	_verbose,8,3                    ; @verbose
l_.str.3:                               ; @.str.3
	.asciz	"%s is smaller than physical memory\n"

	.comm	_EX_IOERR,4,2                   ; @EX_IOERR
	.no_dead_strip	_check_size
.subsections_via_symbols
