	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_OpenDir            ## -- Begin function IOSUHAX_FSA_OpenDir
	.p2align	4, 0x90
_IOSUHAX_FSA_OpenDir:                   ## @IOSUHAX_FSA_OpenDir
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_iosuhaxHandle@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	js	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movl	%edi, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	addl	$9, %ebx
	movl	$32, %edi
	movl	%ebx, %esi
	callq	_memalign
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	%r13d, (%rax)
	movl	$8, 4(%rax)
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movq	(%r14), %rdi
	movq	_IOCTL_FSA_OPENDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r8
	movq	%r15, %rdx
	movl	%ebx, %ecx
	movl	$8, %r9d
	callq	_IOS_Ioctl
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	-52(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_free
	movl	-56(%rbp), %ebx
	jmp	LBB0_8
LBB0_2:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	$-2, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_free
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_iosuhaxHandle,8,3              ## @iosuhaxHandle
	.comm	_IOCTL_FSA_OPENDIR,4,2          ## @IOCTL_FSA_OPENDIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_OpenDir            ; -- Begin function IOSUHAX_FSA_OpenDir
	.p2align	2
_IOSUHAX_FSA_OpenDir:                   ; @IOSUHAX_FSA_OpenDir
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x24, _iosuhaxHandle@GOTPAGE
Lloh4:
	ldr	x24, [x24, _iosuhaxHandle@GOTPAGEOFF]
	ldr	x20, [x24]
	tbnz	x20, #63, LBB0_8
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x2
	mov	x23, x0
	mov	x0, x22
	bl	_strlen
	add	w20, w0, #9
	mov	w0, #32
	mov	x1, x20
	bl	_memalign
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	w8, #8
	stp	w23, w8, [x0], #8
	mov	x1, x22
	bl	_strcpy
	ldr	x0, [x24]
Lloh5:
	adrp	x8, _IOCTL_FSA_OPENDIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IOCTL_FSA_OPENDIR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x4, sp
	mov	x2, x21
	mov	x3, x20
	mov	w5, #8
	bl	_IOS_Ioctl
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w8, [sp, #4]
	str	w8, [x19]
	mov	x0, x21
	bl	_free
	ldr	w20, [sp]
	b	LBB0_8
LBB0_5:
	mov	w20, #-1
	b	LBB0_8
LBB0_6:
	mov	w20, #-2
	b	LBB0_8
LBB0_7:
	mov	x20, x0
	mov	x0, x21
	bl	_free
LBB0_8:
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_iosuhaxHandle,8,3              ; @iosuhaxHandle
	.comm	_IOCTL_FSA_OPENDIR,4,2          ; @IOCTL_FSA_OPENDIR
.subsections_via_symbols
