	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FDI_read_string
_FDI_read_string:                       ## @FDI_read_string
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_FDI_getoffset
	movq	%r15, %r12
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	subq	%rax, %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_TRACE
	cmpq	$256, %r12                      ## imm = 0x100
	movl	$256, %r15d                     ## imm = 0x100
	movl	$256, %ebx                      ## imm = 0x100
	cmovbq	%r12, %rbx
	movq	%rbx, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	callq	*24(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r13
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	*16(%rcx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r13,%rax,4)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=2
	incl	%eax
	cmpq	%rax, %rbx
	ja	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	*(%r14)
	movq	%r13, %rdi
	callq	*8(%r14)
	movq	%rbx, %r15
	addq	%rbx, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r15
	cmovbq	%r15, %rbx
	movq	%rbx, %rdi
	callq	*24(%r14)
	movq	%rax, %r13
	movq	%r14, %rcx
	movl	$0, %r14d
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_20
LBB0_1:
	xorl	%r13d, %r13d
LBB0_2:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testq	%r14, %r14
	je	LBB0_17
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_17:
	testq	%r13, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_18
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
	jmp	LBB0_21
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_14:
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_strlen
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rsi
	incq	%rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	*%rbx
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
LBB0_18:
	movq	%r13, %rdi
	callq	*8(%r14)
LBB0_21:
	xorl	%r13d, %r13d
LBB0_22:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(fdi == %p, hf == %ld, cabsize == %ld)\n"

	.comm	_TRUE,8,3                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"cabinet is truncated\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.2:                               ## @.str.2
	.asciz	"out of memory!\n"

	.no_dead_strip	_FDI_read_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FDI_read_string
_FDI_read_string:                       ; @FDI_read_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_FDI_getoffset
	mov	x21, x0
	sub	x25, x22, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	bl	_TRACE
	mov	w8, #256
	cmp	x25, #256
	csel	x23, x25, x8, lo
	ldr	x8, [x19, #24]
	mov	x0, x23
	blr	x8
	mov	x22, x0
Lloh5:
	adrp	x24, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SEEK_SET@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.1:
	mov	w28, #256
Lloh7:
	adrp	x27, _TRUE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	blr	x8
	cbz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x23, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x22, x8, lsl #2]
	cbz	w9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w8, w8, #1
	cmp	x23, x8
	b.hi	LBB0_5
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x26, [x27]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x26, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x25, x28
	b.ls	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x19, #8]
	mov	x0, x22
	blr	x8
	lsl	x28, x23, #1
	cmp	x28, x25
	csel	x23, x28, x25, lo
	ldr	x8, [x19, #24]
	mov	x0, x23
	blr	x8
	mov	x22, x0
	mov	x26, #0
	cbnz	x0, LBB0_2
	b	LBB0_14
LBB0_11:
	cbz	x26, LBB0_13
LBB0_12:
	ldr	x19, [x19]
	mov	x0, x22
	bl	_strlen
	add	x8, x21, x0
	add	x1, x8, #1
	ldr	w2, [x24]
	mov	x0, x20
	blr	x19
	b	LBB0_18
LBB0_13:
	cbnz	x22, LBB0_16
LBB0_14:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	b	LBB0_17
LBB0_15:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_16:
	ldr	x8, [x19, #8]
	mov	x0, x22
	blr	x8
LBB0_17:
	mov	x22, #0
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(fdi == %p, hf == %ld, cabsize == %ld)\n"

	.comm	_TRUE,8,3                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"cabinet is truncated\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.2:                               ; @.str.2
	.asciz	"out of memory!\n"

	.no_dead_strip	_FDI_read_string
.subsections_via_symbols
