	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Platform_setSwapValues         ## -- Begin function Platform_setSwapValues
	.p2align	4, 0x90
_Platform_setSwapValues:                ## @Platform_setSwapValues
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	_SWAP_NSWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_swapctl
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	$12, %esi
	callq	_xCalloc
	movq	%rax, %rbx
	movq	_SWAP_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_swapctl
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.2:
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.4:
	movq	_SWF_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r15d, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r11
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	xorl	%r10d, %r10d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$12, %rdi
	cmpq	%rdi, %r11
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r8d, (%rbx,%rdi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1024, %eax                     ## imm = 0x400
	xorl	%edx, %edx
	idivl	%r9d
	movl	%eax, %ecx
	movl	4(%rbx,%rdi), %eax
	movl	8(%rbx,%rdi), %esi
	cltd
	idivl	%ecx
	cltq
	addq	%rax, %r10
	movl	%esi, %eax
	cltd
	idivl	%ecx
	cltq
	addq	%rax, %r15
	jmp	LBB0_7
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r10d, %r10d
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, (%r12)
	movq	%r15, (%r14)
	movq	%r10, 8(%r12)
	movq	8(%r14), %rax
	movq	%r10, (%rax)
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SWAP_NSWAP,4,2                 ## @SWAP_NSWAP
	.comm	_SWAP_STATS,4,2                 ## @SWAP_STATS
	.comm	_SWF_ENABLE,4,2                 ## @SWF_ENABLE
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Platform_setSwapValues         ; -- Begin function Platform_setSwapValues
	.p2align	2
_Platform_setSwapValues:                ; @Platform_setSwapValues
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x8, _SWAP_NSWAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWAP_NSWAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	mov	w2, #0
	bl	_swapctl
	cbz	w0, LBB0_7
; %bb.1:
	mov	x21, x0
	mov	w1, #12
	bl	_xCalloc
	mov	x20, x0
Lloh3:
	adrp	x8, _SWAP_STATS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SWAP_STATS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x21
	bl	_swapctl
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x9, #0
	mov	x8, #0
Lloh6:
	adrp	x10, _SWF_ENABLE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SWF_ENABLE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _DEV_BSIZE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DEV_BSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w13, [x11]
	mov	w11, w21
	add	x12, x20, #4
	mov	w14, #1024
	sdiv	w13, w14, w13
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x12, x12, #12
	subs	x11, x11, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x12, #-4]
	tst	w10, w14
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w14, w15, [x12]
	sdiv	w14, w14, w13
	add	x8, x8, w14, sxtw
	sdiv	w14, w15, w13
	add	x9, x9, w14, sxtw
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x8, #0
	mov	x9, #0
LBB0_9:
	str	x9, [x19]
	stp	x9, x8, [x22]
	ldr	x9, [x19, #8]
	str	x8, [x9]
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SWAP_NSWAP,4,2                 ; @SWAP_NSWAP
	.comm	_SWAP_STATS,4,2                 ; @SWAP_STATS
	.comm	_SWF_ENABLE,4,2                 ; @SWF_ENABLE
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
.subsections_via_symbols
