	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_RawRead            ## -- Begin function IOSUHAX_FSA_RawRead
	.p2align	4, 0x90
_IOSUHAX_FSA_RawRead:                   ## @IOSUHAX_FSA_RawRead
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	_iosuhaxHandle@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	js	LBB0_10
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movl	%r8d, %r14d
	movl	%edx, %r12d
	movl	%edi, %r13d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$32, %edi
	movl	$24, %esi
	callq	_memalign
	movl	$-2, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r15
	movl	%r13d, (%rax)
	movl	%r12d, 4(%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%r15)
	movl	%r14d, 16(%r15)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 20(%r15)
	imull	%r12d, %eax
	movq	%rax, %r12
	leal	127(%rax), %r14d
	andl	$-64, %r14d
	movl	$64, %edi
	movl	%r14d, %esi
	callq	_memalign
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r13
	movq	_iosuhaxHandle@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_IOCTL_FSA_RAW_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	$24, %ecx
	movq	%r13, %r8
	movl	%r14d, %r9d
	callq	_IOS_Ioctl
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r13, %rsi
	addq	$256, %rsi                      ## imm = 0x100
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	movl	(%r13), %ebx
	jmp	LBB0_8
LBB0_2:
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ebx
LBB0_8:
	movq	%r13, %rdi
	callq	_free
LBB0_9:
	movq	%r15, %rdi
	callq	_free
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %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_RAW_READ,4,2         ## @IOCTL_FSA_RAW_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_RawRead            ; -- Begin function IOSUHAX_FSA_RawRead
	.p2align	2
_IOSUHAX_FSA_RawRead:                   ; @IOSUHAX_FSA_RawRead
	.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
Lloh0:
	adrp	x27, _iosuhaxHandle@GOTPAGE
Lloh1:
	ldr	x27, [x27, _iosuhaxHandle@GOTPAGEOFF]
	ldr	x21, [x27]
	tbnz	x21, #63, LBB0_11
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x22, x5
	mov	x25, x4
	mov	x23, x3
	mov	x24, x2
	mov	x26, x0
	mov	w0, #32
	mov	w1, #24
	bl	_memalign
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	stp	w26, w24, [x0]
	str	w23, [x0, #8]
	stp	w25, w22, [x0, #16]
	mul	w23, w23, w24
	add	w8, w23, #127
	and	w21, w8, #0xffffffc0
	mov	w0, #64
	mov	x1, x21
	bl	_memalign
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	ldr	x0, [x27]
Lloh2:
	adrp	x8, _IOCTL_FSA_RAW_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOCTL_FSA_RAW_READ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x19
	mov	w3, #24
	mov	x4, x22
	mov	x5, x21
	bl	_IOS_Ioctl
	tbnz	w0, #31, LBB0_9
; %bb.5:
	add	x1, x22, #256
	mov	x0, x20
	mov	x2, x23
	bl	_memcpy
	ldr	w21, [x22]
	b	LBB0_10
LBB0_6:
	mov	w21, #-1
	b	LBB0_11
LBB0_7:
	mov	w21, #-2
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_free
	mov	w21, #-2
	b	LBB0_11
LBB0_9:
	mov	x21, x0
LBB0_10:
	mov	x0, x22
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_11:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_iosuhaxHandle,8,3              ; @iosuhaxHandle
	.comm	_IOCTL_FSA_RAW_READ,4,2         ; @IOCTL_FSA_RAW_READ
.subsections_via_symbols
