	.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
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	_DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_10
## %bb.1:
	movq	_DM_BUFIO_BLOCK_SIZE_GFP_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_4
## %bb.2:
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_DATA_MODE_GET_FREE_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	8(%rdi), %esi
	movl	%ebx, %edi
	callq	___get_free_pages
	jmp	LBB0_9
LBB0_10:
	movq	_DATA_MODE_SLAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	callq	_DM_BUFIO_CACHE
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kmem_cache_alloc               ## TAILCALL
LBB0_4:
	movq	_DATA_MODE_VMALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movq	___GFP_NORETRY@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_5
## %bb.6:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_PF_MEMALLOC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %r14d
	andl	%ecx, %r14d
	orl	%ecx, %edx
	movl	%edx, (%rax)
	jmp	LBB0_7
LBB0_5:
                                        ## implicit-def: $r14d
LBB0_7:
	movq	(%rdi), %rdi
	movq	___GFP_HIGHMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%ebx, %esi
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	___vmalloc
	testl	%ebx, (%r15)
	je	LBB0_9
## %bb.8:
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_PF_MEMALLOC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	(%rcx), %edx
	orl	%r14d, %edx
	movl	%edx, (%rcx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT,8,3 ## @DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT
	.comm	_DATA_MODE_SLAB,4,2             ## @DATA_MODE_SLAB
	.comm	_DM_BUFIO_BLOCK_SIZE_GFP_LIMIT,8,3 ## @DM_BUFIO_BLOCK_SIZE_GFP_LIMIT
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	_DATA_MODE_GET_FREE_PAGES,4,2   ## @DATA_MODE_GET_FREE_PAGES
	.comm	_DATA_MODE_VMALLOC,4,2          ## @DATA_MODE_VMALLOC
	.comm	_current,8,3                    ## @current
	.comm	_PF_MEMALLOC,4,2                ## @PF_MEMALLOC
	.comm	___GFP_HIGHMEM,4,2              ## @__GFP_HIGHMEM
	.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	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	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _DM_BUFIO_BLOCK_SIZE_GFP_LIMIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DM_BUFIO_BLOCK_SIZE_GFP_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x20, ___GFP_NORETRY@GOTPAGE
Lloh7:
	ldr	x20, [x20, ___GFP_NORETRY@GOTPAGEOFF]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.2:
	ldr	w8, [x20]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _DATA_MODE_GET_FREE_PAGES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DATA_MODE_GET_FREE_PAGES@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x2]
	ldr	w1, [x0, #8]
	mov	x0, x19
	bl	___get_free_pages
	b	LBB0_10
LBB0_4:
Lloh11:
	adrp	x8, _DATA_MODE_SLAB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DATA_MODE_SLAB@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x2]
	bl	_DM_BUFIO_CACHE
	mov	x1, 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
	b	_kmem_cache_alloc
LBB0_5:
Lloh14:
	adrp	x8, _DATA_MODE_VMALLOC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DATA_MODE_VMALLOC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x2]
	ldr	w8, [x20]
Lloh17:
	adrp	x22, _current@GOTPAGE
Lloh18:
	ldr	x22, [x22, _current@GOTPAGEOFF]
Lloh19:
	adrp	x21, _PF_MEMALLOC@GOTPAGE
Lloh20:
	ldr	x21, [x21, _PF_MEMALLOC@GOTPAGEOFF]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x22]
	ldr	w9, [x8]
	ldr	w10, [x21]
	and	w23, w10, w9
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_8
LBB0_7:
                                        ; implicit-def: $w23
LBB0_8:
Lloh21:
	adrp	x8, ___GFP_HIGHMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, ___GFP_HIGHMEM@GOTPAGEOFF]
	ldr	x0, [x0]
Lloh23:
	ldr	w8, [x8]
	orr	w1, w8, w19
Lloh24:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	___vmalloc
	ldr	w8, [x20]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x22]
	ldr	w9, [x8]
	ldr	w10, [x21]
	bic	w9, w9, w10
	orr	w9, w9, w23
	str	w9, [x8]
LBB0_10:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT,8,3 ; @DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT
	.comm	_DATA_MODE_SLAB,4,2             ; @DATA_MODE_SLAB
	.comm	_DM_BUFIO_BLOCK_SIZE_GFP_LIMIT,8,3 ; @DM_BUFIO_BLOCK_SIZE_GFP_LIMIT
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	_DATA_MODE_GET_FREE_PAGES,4,2   ; @DATA_MODE_GET_FREE_PAGES
	.comm	_DATA_MODE_VMALLOC,4,2          ; @DATA_MODE_VMALLOC
	.comm	_current,8,3                    ; @current
	.comm	_PF_MEMALLOC,4,2                ; @PF_MEMALLOC
	.comm	___GFP_HIGHMEM,4,2              ; @__GFP_HIGHMEM
	.comm	_PAGE_KERNEL,4,2                ; @PAGE_KERNEL
	.no_dead_strip	_alloc_buffer_data
.subsections_via_symbols
