	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_message_alloc              ## -- Begin function rds_message_alloc
	.p2align	4, 0x90
_rds_message_alloc:                     ## @rds_message_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %eax
	movq	_KMALLOC_MAX_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$-32, %rcx
	cmpq	%rax, %rcx
	jb	LBB0_4
## %bb.2:
	movl	%edi, %ebx
	leal	32(%rbx), %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	movq	$0, 24(%rax)
	shrl	$2, %ebx
	movl	%ebx, (%rax)
	leaq	20(%rax), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	16(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%r14), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_init_waitqueue_head
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KMALLOC_MAX_SIZE,4,2           ## @KMALLOC_MAX_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_message_alloc              ; -- Begin function rds_message_alloc
	.p2align	2
_rds_message_alloc:                     ; @rds_message_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _KMALLOC_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KMALLOC_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x8, x8, #32
	cmp	x8, w0, uxtw
	b.hs	LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	add	w0, w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
	str	xzr, [x19, #24]
	lsr	w8, w20, #2
	str	w8, [x19]
	add	x0, x19, #20
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	add	x0, x19, #8
	bl	_spin_lock_init
	add	x0, x19, #4
	bl	_init_waitqueue_head
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KMALLOC_MAX_SIZE,4,2           ; @KMALLOC_MAX_SIZE
.subsections_via_symbols
