	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kcopyd_get_pages
_kcopyd_get_pages:                      ## @kcopyd_get_pages
	.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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	$0, (%rdx)
	movq	___GFP_KSWAPD_RECLAIM@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, (%r15)
	decl	%r12d
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r13), %edi
	callq	_alloc_pl
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	decl	(%r14)
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_kcopyd_put_pages
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	___GFP_KSWAPD_RECLAIM,4,2       ## @__GFP_KSWAPD_RECLAIM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_kcopyd_get_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kcopyd_get_pages
_kcopyd_get_pages:                      ; @kcopyd_get_pages
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [x2]
Lloh0:
	adrp	x23, ___GFP_NOWARN@GOTPAGE
Lloh1:
	ldr	x23, [x23, ___GFP_NOWARN@GOTPAGEOFF]
Lloh2:
	adrp	x24, ___GFP_NORETRY@GOTPAGE
Lloh3:
	ldr	x24, [x24, ___GFP_NORETRY@GOTPAGEOFF]
Lloh4:
	adrp	x25, ___GFP_KSWAPD_RECLAIM@GOTPAGE
Lloh5:
	ldr	x25, [x25, ___GFP_KSWAPD_RECLAIM@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	str	x8, [x22]
	str	x22, [x20]
	subs	w21, w21, #1
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w0, w8, w9
	bl	_alloc_pl
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x19, #8]
	cmp	x22, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	str	x8, [x19, #8]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_1
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	ldr	x1, [x20]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_kcopyd_put_pages
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	___GFP_KSWAPD_RECLAIM,4,2       ; @__GFP_KSWAPD_RECLAIM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_kcopyd_get_pages
.subsections_via_symbols
