	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_ReadDir            ## -- Begin function IOSUHAX_FSA_ReadDir
	.p2align	4, 0x90
_IOSUHAX_FSA_ReadDir:                   ## @IOSUHAX_FSA_ReadDir
	.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
	movq	_iosuhaxHandle@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	js	LBB0_11
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.2:
	movl	%esi, %r12d
	movl	%edi, %r13d
	movl	$32, %edi
	movl	$8, %esi
	callq	_memalign
	movl	$-2, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r15
	movl	%r13d, (%rax)
	movl	%r12d, 4(%rax)
	movl	$32, %edi
	movl	$8, %esi
	callq	_memalign
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r12
	movq	_iosuhaxHandle@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_IOCTL_FSA_READDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	$8, %ecx
	movq	%r12, %r8
	movl	$8, %r9d
	callq	_IOS_Ioctl
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	(%r12), %ebx
	movq	%r12, %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %rdi
	jmp	LBB0_10
LBB0_6:
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
LBB0_9:
	movq	%r15, %rdi
LBB0_10:
	callq	_free
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iosuhaxHandle,8,3              ## @iosuhaxHandle
	.comm	_IOCTL_FSA_READDIR,4,2          ## @IOCTL_FSA_READDIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_ReadDir            ; -- Begin function IOSUHAX_FSA_ReadDir
	.p2align	2
_IOSUHAX_FSA_ReadDir:                   ; @IOSUHAX_FSA_ReadDir
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x24, _iosuhaxHandle@GOTPAGE
Lloh1:
	ldr	x24, [x24, _iosuhaxHandle@GOTPAGEOFF]
	ldr	x21, [x24]
	tbnz	x21, #63, LBB0_11
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x22, x1
	mov	x23, x0
	mov	w0, #32
	mov	w1, #8
	bl	_memalign
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	stp	w23, w22, [x0]
	mov	w0, #32
	mov	w1, #8
	bl	_memalign
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	ldr	x0, [x24]
Lloh2:
	adrp	x8, _IOCTL_FSA_READDIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOCTL_FSA_READDIR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #8
	mov	x4, x22
	mov	w5, #8
	bl	_IOS_Ioctl
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x1, x22
	ldr	w21, [x1], #16
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_free
	mov	x0, x22
	b	LBB0_10
LBB0_6:
	mov	w21, #-1
	b	LBB0_11
LBB0_7:
	mov	w21, #-2
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_free
	mov	w21, #-2
	b	LBB0_11
LBB0_9:
	mov	x21, x0
	mov	x0, x22
	bl	_free
	mov	x0, x20
LBB0_10:
	bl	_free
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_iosuhaxHandle,8,3              ; @iosuhaxHandle
	.comm	_IOCTL_FSA_READDIR,4,2          ; @IOCTL_FSA_READDIR
.subsections_via_symbols
