	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_RawClose           ## -- Begin function IOSUHAX_FSA_RawClose
	.p2align	4, 0x90
_IOSUHAX_FSA_RawClose:                  ## @IOSUHAX_FSA_RawClose
	.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), %r13
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	js	LBB0_5
## %bb.1:
	movl	%esi, %r15d
	movl	%edi, %r12d
	movl	$32, %edi
	movl	$8, %esi
	callq	_memalign
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	%r12d, (%rax)
	movl	%r15d, 4(%rax)
	movq	(%r13), %rdi
	movq	_IOCTL_FSA_RAW_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r8
	movq	%r14, %rdx
	movl	$8, %ecx
	movl	$4, %r9d
	callq	_IOS_Ioctl
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.4:
	movl	-44(%rbp), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	$-2, %ebx
LBB0_5:
	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_RAW_CLOSE,4,2        ## @IOCTL_FSA_RAW_CLOSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_FSA_RawClose           ; -- Begin function IOSUHAX_FSA_RawClose
	.p2align	2
_IOSUHAX_FSA_RawClose:                  ; @IOSUHAX_FSA_RawClose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
Lloh0:
	adrp	x22, _iosuhaxHandle@GOTPAGE
Lloh1:
	ldr	x22, [x22, _iosuhaxHandle@GOTPAGEOFF]
	ldr	x0, [x22]
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	w0, #32
	mov	w1, #8
	bl	_memalign
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
	stp	w21, w20, [x0]
	ldr	x0, [x22]
Lloh2:
	adrp	x8, _IOCTL_FSA_RAW_CLOSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOCTL_FSA_RAW_CLOSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x4, sp, #12
	mov	x2, x19
	mov	w3, #8
	mov	w5, #4
	bl	_IOS_Ioctl
	mov	x20, x0
	mov	x0, x19
	bl	_free
	ldr	w8, [sp, #12]
	cmp	w20, #0
	csel	w0, w20, w8, lt
	b	LBB0_4
LBB0_3:
	mov	w0, #-2
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_iosuhaxHandle,8,3              ; @iosuhaxHandle
	.comm	_IOCTL_FSA_RAW_CLOSE,4,2        ; @IOCTL_FSA_RAW_CLOSE
.subsections_via_symbols
