	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svc_init_buffer
_svc_init_buffer:                       ## @svc_init_buffer
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_svc_is_backchannel
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	leal	1(%r15), %eax
	movq	_RPCSVC_MAXPAGES@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	seta	%dil
	callq	_BUG_ON
	incl	%r15d
	je	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx)
	addq	$8, %rbx
	decl	%r15d
	jne	LBB0_3
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%r15d, %ebx
LBB0_7:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RPCSVC_MAXPAGES,4,2            ## @RPCSVC_MAXPAGES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_svc_init_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svc_init_buffer
_svc_init_buffer:                       ; @svc_init_buffer
	.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	x20, x1
	mov	x19, x0
	bl	_svc_is_backchannel
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	udiv	w8, w20, w8
	adds	w20, w8, #1
	cset	w21, hs
Lloh3:
	adrp	x8, _RPCSVC_MAXPAGES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPCSVC_MAXPAGES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, hi
	bl	_BUG_ON
	tbz	w21, #0, LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
	mov	x21, #0
Lloh6:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_alloc_page
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	str	x0, [x8, x21]
	add	x21, x21, #8
	subs	w20, w20, #1
	b.ne	LBB0_5
LBB0_7:
	cmp	w20, #0
	cset	w0, eq
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RPCSVC_MAXPAGES,4,2            ; @RPCSVC_MAXPAGES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_svc_init_buffer
.subsections_via_symbols
