	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_buffer_data
_alloc_buffer_data:                     ## @alloc_buffer_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_DATA_MODE_SLAB@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15)
	movq	16(%rbx), %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kmem_cache_alloc               ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movq	_KMALLOC_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_3
## %bb.2:
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.6:
	movq	_DATA_MODE_GET_FREE_PAGES@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15)
	movq	8(%rbx), %rsi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	subq	(%rax), %rsi
	addq	(%rcx), %rsi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___get_free_pages               ## TAILCALL
LBB0_3:
	movq	_DATA_MODE_VMALLOC@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15)
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.7:
	xorl	%eax, %eax
	callq	_memalloc_noio_save
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	___vmalloc
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_memalloc_noio_restore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rdi
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___vmalloc                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_MODE_SLAB,1,0             ## @DATA_MODE_SLAB
	.comm	_KMALLOC_MAX_SIZE,8,3           ## @KMALLOC_MAX_SIZE
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	_DATA_MODE_GET_FREE_PAGES,1,0   ## @DATA_MODE_GET_FREE_PAGES
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_SECTOR_SHIFT,8,3               ## @SECTOR_SHIFT
	.comm	_DATA_MODE_VMALLOC,1,0          ## @DATA_MODE_VMALLOC
	.comm	_PAGE_KERNEL,4,2                ## @PAGE_KERNEL
	.no_dead_strip	_alloc_buffer_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_buffer_data
_alloc_buffer_data:                     ; @alloc_buffer_data
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DATA_MODE_SLAB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA_MODE_SLAB@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x21]
	ldr	x0, [x20, #16]
	mov	x1, x19
	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
	b	_kmem_cache_alloc
LBB0_2:
	ldr	x9, [x20]
Lloh2:
	adrp	x8, _KMALLOC_MAX_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KMALLOC_MAX_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x8]
Lloh5:
	adrp	x8, ___GFP_NORETRY@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___GFP_NORETRY@GOTPAGEOFF]
	cmp	x9, x10
	b.gt	LBB0_5
; %bb.3:
	ldr	w9, [x8]
	tst	w9, w19
	b.eq	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _DATA_MODE_GET_FREE_PAGES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DATA_MODE_GET_FREE_PAGES@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x21]
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh11:
	adrp	x10, _SECTOR_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	ldr	x10, [x10]
	sub	x8, x8, x9
	add	x1, x8, x10
	mov	x0, x19
	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
	b	___get_free_pages
LBB0_5:
Lloh15:
	adrp	x9, _DATA_MODE_VMALLOC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DATA_MODE_VMALLOC@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [x21]
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	bl	_memalloc_noio_save
	mov	x21, x0
	ldr	x0, [x20]
Lloh17:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x1, x19
	bl	___vmalloc
	mov	x19, x0
	mov	x0, x21
	bl	_memalloc_noio_restore
	mov	x0, x19
	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
LBB0_7:
	ldr	x0, [x20]
Lloh20:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x1, x19
	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
	b	___vmalloc
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_MODE_SLAB,1,0             ; @DATA_MODE_SLAB
	.comm	_KMALLOC_MAX_SIZE,8,3           ; @KMALLOC_MAX_SIZE
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	_DATA_MODE_GET_FREE_PAGES,1,0   ; @DATA_MODE_GET_FREE_PAGES
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_SECTOR_SHIFT,8,3               ; @SECTOR_SHIFT
	.comm	_DATA_MODE_VMALLOC,1,0          ; @DATA_MODE_VMALLOC
	.comm	_PAGE_KERNEL,4,2                ; @PAGE_KERNEL
	.no_dead_strip	_alloc_buffer_data
.subsections_via_symbols
