	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_get_insize                ## -- Begin function mkuz_get_insize
	.p2align	4, 0x90
_mkuz_get_insize:                       ## @mkuz_get_insize
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	-40(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_warn
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_SF_SNAPSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_11
## %bb.4:
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_fstatfs
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	movl	-32(%rbp), %r14d
	movl	%r14d, %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movl	(%rbx), %edi
	movq	_DIOCGMEDIASIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_13
## %bb.14:
	movl	-20(%rbp), %eax
	jmp	LBB0_19
LBB0_6:
	movl	-24(%rbp), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	_DIOCGMEDIASIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movl	%ebx, %edi
	callq	_close
	movl	-20(%rbp), %eax
	movl	%eax, -36(%rbp)
	jmp	LBB0_19
LBB0_15:
	movl	%r14d, %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	-36(%rbp), %eax
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_18
LBB0_7:
	movl	-24(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_18
LBB0_17:
	movl	4(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_warnx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fstat(%s)"

	.comm	_SF_SNAPSHOT,4,2                ## @SF_SNAPSHOT
L_.str.1:                               ## @.str.1
	.asciz	"fstatfs(%s)"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"open(%s, O_RDONLY)"

	.comm	_DIOCGMEDIASIZE,4,2             ## @DIOCGMEDIASIZE
L_.str.3:                               ## @.str.3
	.asciz	"ioctl(DIOCGMEDIASIZE)"

L_.str.4:                               ## @.str.4
	.asciz	"%s: not a character device or regular file\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkuz_get_insize                ; -- Begin function mkuz_get_insize
	.p2align	2
_mkuz_get_insize:                       ; @mkuz_get_insize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	add	x1, sp, #16
	bl	_fstat
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_warn
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [sp, #16]
Lloh2:
	adrp	x9, _SF_SNAPSHOT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SF_SNAPSHOT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_fstatfs
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
	ldr	w20, [sp, #24]
	mov	x0, x20
	bl	_S_ISCHR
	cbz	x0, LBB0_14
; %bb.9:
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _DIOCGMEDIASIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIOCGMEDIASIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	sub	x2, x29, #20
	bl	_ioctl
	tbnz	x0, #63, LBB0_16
; %bb.10:
	ldur	w0, [x29, #-20]
	b	LBB0_4
LBB0_11:
	ldr	w0, [sp, #8]
Lloh10:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_17
; %bb.12:
	mov	x19, x0
Lloh13:
	adrp	x8, _DIOCGMEDIASIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DIOCGMEDIASIZE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	sub	x2, x29, #20
	bl	_ioctl
	tbnz	x0, #63, LBB0_18
; %bb.13:
	mov	x0, x19
	bl	_close
	ldur	w0, [x29, #-20]
	str	w0, [sp, #20]
	b	LBB0_4
LBB0_14:
	mov	x0, x20
	bl	_S_ISREG
	cbz	w0, LBB0_19
; %bb.15:
	ldr	w0, [sp, #20]
	b	LBB0_4
LBB0_16:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_17:
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_18:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	mov	x0, x19
	bl	_close
	b	LBB0_3
LBB0_19:
	ldr	w1, [x19, #4]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fstat(%s)"

	.comm	_SF_SNAPSHOT,4,2                ; @SF_SNAPSHOT
l_.str.1:                               ; @.str.1
	.asciz	"fstatfs(%s)"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"open(%s, O_RDONLY)"

	.comm	_DIOCGMEDIASIZE,4,2             ; @DIOCGMEDIASIZE
l_.str.3:                               ; @.str.3
	.asciz	"ioctl(DIOCGMEDIASIZE)"

l_.str.4:                               ; @.str.4
	.asciz	"%s: not a character device or regular file\n"

.subsections_via_symbols
