	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_io_read
_fs_io_read:                            ## @fs_io_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	callq	_r_fs_file_copy_abs_path
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_r_str_newf
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_R_FREE
	testq	%r13, %r13
	je	LBB0_9
## %bb.2:
	movl	8(%r15), %edi
	movq	%r13, %rsi
	callq	*(%r15)
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_R_FREE
	testq	%r15, %r15
	je	LBB0_9
## %bb.3:
	movq	%r15, %rdi
	callq	_strlen
	leal	(%r14,%r14), %edx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.5:
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_calloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_r_hex_str2bin
	cmpl	%r14d, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	movq	(%r12), %rdi
	callq	_R_FREE
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_8:
	movq	%r15, %rdi
	callq	_R_FREE
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mg %s"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected size (%d vs %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Inconsistent read\n"

	.no_dead_strip	_fs_io_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_io_read
_fs_io_read:                            ; @fs_io_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
	ldr	x23, [x0, #8]
	bl	_r_fs_file_copy_abs_path
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_r_str_newf
	mov	x22, x0
	mov	x0, x21
	bl	_R_FREE
	cbz	x22, LBB0_9
; %bb.2:
	ldr	x8, [x23]
	ldr	w0, [x23, #8]
	mov	x1, x22
	blr	x8
	mov	x21, x0
	mov	x0, x22
	bl	_R_FREE
	cbz	x21, LBB0_9
; %bb.3:
	mov	x0, x21
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	lsl	w8, w20, #1
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:
	mov	w0, #1
	mov	x1, x20
	bl	_calloc
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x0
	mov	x0, x21
	bl	_r_hex_str2bin
	cmp	w0, w20
	b.eq	LBB0_8
; %bb.6:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintf
	ldr	x0, [x19]
	bl	_R_FREE
	b	LBB0_8
LBB0_7:
	stp	x0, x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
LBB0_8:
	mov	x0, x21
	bl	_R_FREE
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mg %s"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected size (%d vs %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Inconsistent read\n"

	.no_dead_strip	_fs_io_read
.subsections_via_symbols
