	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memchunkhax1_write_pair
_memchunkhax1_write_pair:               ## @memchunkhax1_write_pair
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_MEMOP_ALLOC_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MEMPERM_READ@GOTPCREL(%rip), %rax
	movq	_MEMPERM_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$65536, %ecx                    ## imm = 0x10000
	callq	_svcControlMemory
	movq	-48(%rbp), %rsi
	leaq	32768(%rsi), %r13
	addq	$4096, %rsi                     ## imm = 0x1000
	movq	_MEMOP_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rax, %r14
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r9d, %r9d
	callq	_svcControlMemory
	movl	$12288, %esi                    ## imm = 0x3000
	addq	-48(%rbp), %rsi
	movl	(%r14), %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8192, %ecx                     ## imm = 0x2000
	xorl	%r9d, %r9d
	callq	_svcControlMemory
	movl	$24576, %esi                    ## imm = 0x6000
	addq	-48(%rbp), %rsi
	movl	(%r14), %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r9d, %r9d
	callq	_svcControlMemory
	movq	-48(%rbp), %rbx
	leaq	4096(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	movq	%r13, %rcx
	callq	_gspwn
	movq	-48(%rbp), %r15
	leaq	8192(%r15), %rdi
	leaq	12288(%r15), %rsi
	movl	$16, %edx
	movq	%r13, %rcx
	callq	_gspwn
	movq	-48(%rbp), %r14
	leaq	20480(%r14), %rdi
	leaq	24576(%r14), %rsi
	movl	$16, %edx
	movq	%r13, %rcx
	callq	_gspwn
	movq	8196(%r15), %rax
	movq	%rax, 4(%rbx)
	movq	8200(%r15), %rax
	movq	%rax, 20488(%r14)
	addq	$-4, %r12
	movq	%r12, 8200(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8196(%r15)
	movq	-48(%rbp), %rsi
	leaq	12288(%rsi), %rdi
	addq	$8192, %rsi                     ## imm = 0x2000
	movl	$16, %edx
	movq	%r13, %rcx
	callq	_gspwn
	movq	_MEMOP_ALLOC_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MEMPERM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MEMPERM_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$8192, %ecx                     ## imm = 0x2000
	callq	_svcControlMemory
	movq	-48(%rbp), %rsi
	leaq	4096(%rsi), %rdi
	movl	$16, %edx
	movq	%r13, %rcx
	callq	_gspwn
	movq	-48(%rbp), %rsi
	leaq	24576(%rsi), %rdi
	addq	$20480, %rsi                    ## imm = 0x5000
	movl	$16, %edx
	movq	%r13, %rcx
	callq	_gspwn
	movq	-48(%rbp), %rsi
	movq	_MEMOP_FREE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r9d, %r9d
	callq	_svcControlMemory
	movl	$8192, %esi                     ## imm = 0x2000
	addq	-48(%rbp), %rsi
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$16384, %ecx                    ## imm = 0x4000
	xorl	%r9d, %r9d
	callq	_svcControlMemory
	movl	$28672, %esi                    ## imm = 0x7000
	addq	-48(%rbp), %rsi
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$36864, %ecx                    ## imm = 0x9000
	xorl	%r9d, %r9d
	callq	_svcControlMemory
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMOP_ALLOC_LINEAR,4,2         ## @MEMOP_ALLOC_LINEAR
	.comm	_MEMPERM_READ,4,2               ## @MEMPERM_READ
	.comm	_MEMPERM_WRITE,4,2              ## @MEMPERM_WRITE
	.comm	_MEMOP_FREE,4,2                 ## @MEMOP_FREE
	.no_dead_strip	_memchunkhax1_write_pair
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memchunkhax1_write_pair
_memchunkhax1_write_pair:               ; @memchunkhax1_write_pair
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _MEMOP_ALLOC_LINEAR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MEMOP_ALLOC_LINEAR@GOTPAGEOFF]
Lloh2:
	adrp	x25, _MEMPERM_READ@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MEMPERM_READ@GOTPAGEOFF]
	ldr	w4, [x24]
	ldr	w8, [x25]
Lloh4:
	adrp	x26, _MEMPERM_WRITE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MEMPERM_WRITE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w5, w9, w8
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #0
	mov	w3, #65536
	bl	_svcControlMemory
	ldr	x8, [sp, #8]
	add	x19, x8, #8, lsl #12            ; =32768
	add	x1, x8, #1, lsl #12             ; =4096
Lloh6:
	adrp	x23, _MEMOP_FREE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MEMOP_FREE@GOTPAGEOFF]
	ldr	w4, [x23]
	mov	x0, sp
	mov	w2, #0
	mov	w3, #4096
	mov	w5, #0
	bl	_svcControlMemory
	ldr	x8, [sp, #8]
	add	x1, x8, #3, lsl #12             ; =12288
	ldr	w4, [x23]
	mov	x0, sp
	mov	w2, #0
	mov	w3, #8192
	mov	w5, #0
	bl	_svcControlMemory
	ldr	x8, [sp, #8]
	add	x1, x8, #6, lsl #12             ; =24576
	ldr	w4, [x23]
	mov	x0, sp
	mov	w2, #0
	mov	w3, #4096
	mov	w5, #0
	bl	_svcControlMemory
	ldr	x22, [sp, #8]
	add	x1, x22, #1, lsl #12            ; =4096
	mov	x0, x22
	mov	w2, #16
	mov	x3, x19
	bl	_gspwn
	ldr	x27, [sp, #8]
	add	x0, x27, #2, lsl #12            ; =8192
	add	x1, x27, #3, lsl #12            ; =12288
	mov	w2, #16
	mov	x3, x19
	bl	_gspwn
	ldr	x28, [sp, #8]
	add	x0, x28, #5, lsl #12            ; =20480
	add	x1, x28, #6, lsl #12            ; =24576
	mov	w2, #16
	mov	x3, x19
	bl	_gspwn
	mov	w8, #8196
	ldr	x9, [x27, x8]
	stur	x9, [x22, #4]
	ldr	x9, [x27, #8200]
	str	x9, [x28, #20488]
	sub	x9, x21, #4
	str	x9, [x27, #8200]
	str	x20, [x27, x8]
	ldr	x8, [sp, #8]
	add	x0, x8, #3, lsl #12             ; =12288
	add	x1, x8, #2, lsl #12             ; =8192
	mov	w2, #16
	mov	x3, x19
	bl	_gspwn
	ldr	w4, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w5, w9, w8
	mov	x0, sp
	mov	x1, #0
	mov	w2, #0
	mov	w3, #8192
	bl	_svcControlMemory
	ldr	x1, [sp, #8]
	add	x0, x1, #1, lsl #12             ; =4096
	mov	w2, #16
	mov	x3, x19
	bl	_gspwn
	ldr	x8, [sp, #8]
	add	x0, x8, #6, lsl #12             ; =24576
	add	x1, x8, #5, lsl #12             ; =20480
	mov	w2, #16
	mov	x3, x19
	bl	_gspwn
	ldr	x1, [sp, #8]
	ldr	w4, [x23]
	mov	x0, sp
	mov	w2, #0
	mov	w3, #4096
	mov	w5, #0
	bl	_svcControlMemory
	ldr	x8, [sp, #8]
	add	x1, x8, #2, lsl #12             ; =8192
	ldr	w4, [x23]
	mov	x0, sp
	mov	w2, #0
	mov	w3, #16384
	mov	w5, #0
	bl	_svcControlMemory
	ldr	x8, [sp, #8]
	add	x1, x8, #7, lsl #12             ; =28672
	ldr	w4, [x23]
	mov	x0, sp
	mov	w2, #0
	mov	w3, #36864
	mov	w5, #0
	bl	_svcControlMemory
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMOP_ALLOC_LINEAR,4,2         ; @MEMOP_ALLOC_LINEAR
	.comm	_MEMPERM_READ,4,2               ; @MEMPERM_READ
	.comm	_MEMPERM_WRITE,4,2              ; @MEMPERM_WRITE
	.comm	_MEMOP_FREE,4,2                 ; @MEMOP_FREE
	.no_dead_strip	_memchunkhax1_write_pair
.subsections_via_symbols
