	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arpc_alloc
_arpc_alloc:                            ## @arpc_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
	movslq	%esi, %rbx
	addq	$40, %rbx
	movq	_ARPC_OUT_SIZE_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	ja	LBB0_7
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r13
	leaq	32(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%r15), %esi
	movl	$1, %edi
	callq	_kzalloc
	movq	%rax, 24(%r13)
	movq	(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r12d, 20(%rdi)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	(%r13), %rcx
	movl	%eax, 16(%rcx)
	movl	12(%rcx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_init_completion
	jmp	LBB0_8
LBB0_5:
	callq	_kfree
LBB0_6:
	movq	%r13, %rdi
	callq	_kfree
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARPC_OUT_SIZE_MAX,4,2          ## @ARPC_OUT_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_arpc_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arpc_alloc
_arpc_alloc:                            ; @arpc_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	x20, x1
	sxtw	x8, w20
	add	x23, x8, #40
Lloh0:
	adrp	x8, _ARPC_OUT_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARPC_OUT_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	x23, x8
	b.hi	LBB0_7
; %bb.1:
	mov	x22, x2
	mov	x21, x0
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.2:
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	ldr	w1, [x24]
	mov	x0, x23
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w1, [x24]
	mov	w0, #1
	bl	_kzalloc
	mov	x8, x0
	str	x0, [x19, #24]
	ldr	x0, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	str	w22, [x0, #20]
	mov	x0, x23
	bl	_cpu_to_le16
	mov	x22, x19
	ldr	x8, [x22], #8
	str	w0, [x8, #16]
	ldr	w0, [x8, #12]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	x0, x22
	bl	_init_completion
	b	LBB0_8
LBB0_5:
	bl	_kfree
LBB0_6:
	mov	x0, x19
	bl	_kfree
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ARPC_OUT_SIZE_MAX,4,2          ; @ARPC_OUT_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_arpc_alloc
.subsections_via_symbols
