	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_fdinfo                     ## -- Begin function get_fdinfo
	.p2align	4, 0x90
_get_fdinfo:                            ## @get_fdinfo
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movl	%esi, (%rdx)
	movq	_PM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
	movq	_PROC_PIDFDVNODEPATHINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROC_PIDFDVNODEPATHINFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rcx
	callq	_proc_pidfdinfo
	testq	%rax, %rax
	jle	LBB0_23
## %bb.1:
	movq	32(%rbx), %rdi
	movl	-48(%rbp), %esi
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	movq	32(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.2:
	movl	-36(%rbp), %edi
	callq	_S_ISBLK
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	32(%rbx), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_16
## %bb.4:
	movl	%eax, %r14d
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movq	_DKIOCGETBLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_14
## %bb.5:
	movq	_DKIOCGETBLOCKCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_14
## %bb.6:
	movl	-28(%rbp), %esi
	imull	-24(%rbp), %esi
	movl	%esi, 4(%rbx)
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_11
LBB0_8:
	movq	_flag_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.9:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_18
LBB0_10:
	movl	-40(%rbp), %eax
	movl	%eax, 4(%rbx)
LBB0_11:
	movq	-56(%rbp), %rax
	movq	%rax, 16(%rbx)
	leaq	24(%rbx), %rdi
	leaq	-24(%rbp), %rsi
	callq	_gettimeofday
	movl	-64(%rbp), %ecx
	movq	_FREAD@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_20
## %bb.12:
	movq	_PM_READ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_FWRITE@GOTPCREL(%rip), %rdx
	movb	$1, %al
	testl	%ecx, (%rdx)
	je	LBB0_24
## %bb.13:
	movq	_PM_READWRITE@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_14:
	movq	_flag_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.25:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_23
LBB0_16:
	movq	_flag_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
LBB0_18:
	callq	_nperror
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	movzbl	%al, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	movq	_FWRITE@GOTPCREL(%rip), %rdx
	movb	$1, %al
	testl	%ecx, (%rdx)
	je	LBB0_24
## %bb.21:
	movq	_PM_WRITE@GOTPCREL(%rip), %rcx
LBB0_22:
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_NONE,8,3                    ## @PM_NONE
	.comm	_PROC_PIDFDVNODEPATHINFO,4,2    ## @PROC_PIDFDVNODEPATHINFO
	.comm	_PROC_PIDFDVNODEPATHINFO_SIZE,4,2 ## @PROC_PIDFDVNODEPATHINFO_SIZE
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_flag_debug,8,3                 ## @flag_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stat (get_fdinfo)"

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

	.comm	_DKIOCGETBLOCKSIZE,4,2          ## @DKIOCGETBLOCKSIZE
	.comm	_DKIOCGETBLOCKCOUNT,4,2         ## @DKIOCGETBLOCKCOUNT
L_.str.2:                               ## @.str.2
	.asciz	"ioctl (get_fdinfo)"

L_.str.3:                               ## @.str.3
	.asciz	"Size: %lld\n"

	.comm	_FREAD,4,2                      ## @FREAD
	.comm	_PM_READ,8,3                    ## @PM_READ
	.comm	_FWRITE,4,2                     ## @FWRITE
	.comm	_PM_WRITE,8,3                   ## @PM_WRITE
	.comm	_PM_READWRITE,8,3               ## @PM_READWRITE
	.comm	_BLKGETSIZE64,4,2               ## @BLKGETSIZE64
	.comm	_LINE_LEN,4,2                   ## @LINE_LEN
	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_PROC_PATH,8,3                  ## @PROC_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_fdinfo                     ; -- Begin function get_fdinfo
	.p2align	2
_get_fdinfo:                            ; @get_fdinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	str	w1, [x2]
Lloh0:
	adrp	x8, _PM_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x2, #8]
Lloh3:
	adrp	x8, _PROC_PIDFDVNODEPATHINFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROC_PIDFDVNODEPATHINFO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _PROC_PIDFDVNODEPATHINFO_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROC_PIDFDVNODEPATHINFO_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x3, sp, #8
	bl	_proc_pidfdinfo
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.1:
	ldr	x0, [x19, #32]
	ldr	w1, [sp, #24]
Lloh9:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_strncpy
	ldr	x0, [x19, #32]
	sub	x1, x29, #24
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	ldur	w0, [x29, #-20]
	bl	_S_ISBLK
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x0, [x19, #32]
Lloh12:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_15
; %bb.4:
	mov	x20, x0
	str	wzr, [sp, #4]
	str	wzr, [sp, #32]
Lloh15:
	adrp	x8, _DKIOCGETBLOCKSIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DKIOCGETBLOCKSIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.5:
Lloh18:
	adrp	x8, _DKIOCGETBLOCKCOUNT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DKIOCGETBLOCKCOUNT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x20
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.6:
	ldr	w8, [sp, #32]
	ldr	w9, [sp, #4]
	mul	w1, w9, w8
	str	w1, [x19, #4]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_close
	b	LBB0_10
LBB0_7:
Lloh23:
	adrp	x8, _flag_debug@GOTPAGE
Lloh24:
	ldr	x8, [x8, _flag_debug@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.8:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_9:
	ldur	w8, [x29, #-24]
	str	w8, [x19, #4]
LBB0_10:
	ldr	x8, [sp, #16]
	str	x8, [x19, #16]
	add	x0, x19, #24
	add	x1, sp, #32
	bl	_gettimeofday
	ldr	w8, [sp, #8]
Lloh28:
	adrp	x9, _FREAD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FREAD@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.11:
Lloh31:
	adrp	x9, _PM_READ@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PM_READ@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	str	x9, [x19, #8]
Lloh34:
	adrp	x9, _FWRITE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FWRITE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.12:
Lloh37:
	adrp	x8, _PM_READWRITE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PM_READWRITE@GOTPAGEOFF]
	b	LBB0_21
LBB0_13:
Lloh39:
	adrp	x8, _flag_debug@GOTPAGE
Lloh40:
	ldr	x8, [x8, _flag_debug@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.14:
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_18
LBB0_15:
Lloh44:
	adrp	x8, _flag_debug@GOTPAGE
Lloh45:
	ldr	x8, [x8, _flag_debug@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.16:
Lloh47:
	adrp	x0, l_.str.1@PAGE
Lloh48:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_17:
	bl	_nperror
	mov	w0, #0
	b	LBB0_23
LBB0_18:
	mov	w0, #0
	b	LBB0_23
LBB0_19:
Lloh49:
	adrp	x9, _FWRITE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _FWRITE@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
Lloh52:
	adrp	x8, _PM_WRITE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PM_WRITE@GOTPAGEOFF]
LBB0_21:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_22:
	mov	w0, #1
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_NONE,8,3                    ; @PM_NONE
	.comm	_PROC_PIDFDVNODEPATHINFO,4,2    ; @PROC_PIDFDVNODEPATHINFO
	.comm	_PROC_PIDFDVNODEPATHINFO_SIZE,4,2 ; @PROC_PIDFDVNODEPATHINFO_SIZE
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_flag_debug,8,3                 ; @flag_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stat (get_fdinfo)"

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

	.comm	_DKIOCGETBLOCKSIZE,4,2          ; @DKIOCGETBLOCKSIZE
	.comm	_DKIOCGETBLOCKCOUNT,4,2         ; @DKIOCGETBLOCKCOUNT
l_.str.2:                               ; @.str.2
	.asciz	"ioctl (get_fdinfo)"

l_.str.3:                               ; @.str.3
	.asciz	"Size: %lld\n"

	.comm	_FREAD,4,2                      ; @FREAD
	.comm	_PM_READ,8,3                    ; @PM_READ
	.comm	_FWRITE,4,2                     ; @FWRITE
	.comm	_PM_WRITE,8,3                   ; @PM_WRITE
	.comm	_PM_READWRITE,8,3               ; @PM_READWRITE
	.comm	_BLKGETSIZE64,4,2               ; @BLKGETSIZE64
	.comm	_LINE_LEN,4,2                   ; @LINE_LEN
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_PROC_PATH,8,3                  ; @PROC_PATH
.subsections_via_symbols
