	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_SVC                    ## -- Begin function IOSUHAX_SVC
	.p2align	4, 0x90
_IOSUHAX_SVC:                           ## @IOSUHAX_SVC
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_iosuhaxHandle@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movl	%edi, -64(%rbp)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	cmpl	$8, %edx
	movl	$8, %ebx
	cmovll	%edx, %ebx
	leaq	-60(%rbp), %rdi
	leal	(,%rbx,4), %edx
	callq	_memcpy
	movq	(%r14), %rax
	movl	%ebx, %edx
LBB0_4:
	movq	_IOCTL_SVC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	4(,%rdx,4), %ecx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %r8
	movq	%rax, %rdi
	movl	$4, %r9d
	callq	_IOS_Ioctl
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	-68(%rbp), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_iosuhaxHandle,8,3              ## @iosuhaxHandle
	.comm	_IOCTL_SVC,4,2                  ## @IOCTL_SVC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IOSUHAX_SVC                    ; -- Begin function IOSUHAX_SVC
	.p2align	2
_IOSUHAX_SVC:                           ; @IOSUHAX_SVC
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x8, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-24]
Lloh3:
	adrp	x20, _iosuhaxHandle@GOTPAGE
Lloh4:
	ldr	x20, [x20, _iosuhaxHandle@GOTPAGEOFF]
	ldr	x0, [x20]
	tbnz	x0, #63, LBB0_5
; %bb.1:
	mov	x19, x2
	str	w8, [sp, #4]
	cbz	x1, LBB0_4
; %bb.2:
	cbz	w19, LBB0_4
; %bb.3:
	mov	w8, #8
	cmp	w19, #8
	csel	w19, w19, w8, lt
	add	x8, sp, #4
	add	x0, x8, #4
	lsl	w2, w19, #2
	bl	_memcpy
	ldr	x0, [x20]
LBB0_4:
Lloh5:
	adrp	x8, _IOCTL_SVC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IOCTL_SVC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	lsl	w8, w19, #2
	add	w3, w8, #4
	add	x2, sp, #4
	mov	x4, sp
	mov	w5, #4
	bl	_IOS_Ioctl
	ldr	w8, [sp]
	cmp	w0, #0
	csel	w0, w0, w8, lt
LBB0_5:
	ldur	x8, [x29, #-24]
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_7
; %bb.6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	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_SVC,4,2                  ; @IOCTL_SVC
.subsections_via_symbols
