	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swap_pager_alloc
_swap_pager_alloc:                      ## @swap_pager_alloc
	.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	%r8, %r12
	movl	%ecx, %r14d
	movl	%esi, %r15d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_sw_alloc_sx@GOTPCREL(%rip), %rdi
	callq	_sx_xlock
	movq	%rbx, %rdi
	callq	_NOBJLIST
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_vm_pager_object_lookup
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_swap_pager_alloc_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	(%rax), %rdi
	callq	_NOBJLIST
	movq	_pager_object_list@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_TAILQ_INSERT_TAIL
	jmp	LBB0_5
LBB0_6:
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_swap_pager_alloc_init          ## TAILCALL
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movq	_sw_alloc_sx@GOTPCREL(%rip), %rdi
	callq	_sx_xunlock
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sw_alloc_sx,4,2                ## @sw_alloc_sx
	.comm	_pager_object_list,4,2          ## @pager_object_list
	.no_dead_strip	_swap_pager_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_pager_alloc
_swap_pager_alloc:                      ; @swap_pager_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x19, x3
	mov	x20, x1
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x0, _sw_alloc_sx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sw_alloc_sx@GOTPAGEOFF]
	bl	_sx_xlock
	mov	x0, x23
	bl	_NOBJLIST
	mov	x1, x23
	bl	_vm_pager_object_lookup
	mov	x22, x0
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_swap_pager_alloc_init
	mov	x22, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x22]
	bl	_NOBJLIST
Lloh2:
	adrp	x8, _pager_object_list@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pager_object_list@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
LBB0_4:
Lloh5:
	adrp	x0, _sw_alloc_sx@GOTPAGE
Lloh6:
	ldr	x0, [x0, _sw_alloc_sx@GOTPAGEOFF]
	bl	_sx_xunlock
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_swap_pager_alloc_init
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_sw_alloc_sx,4,2                ; @sw_alloc_sx
	.comm	_pager_object_list,4,2          ; @pager_object_list
	.no_dead_strip	_swap_pager_alloc
.subsections_via_symbols
