	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_gpu_get_vbuf
_virtio_gpu_get_vbuf:                   ## @virtio_gpu_get_vbuf
	.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
	movl	%r8d, %r13d
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmem_cache_zalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_MAX_INLINE_CMD_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r15d, (%rax)
	setl	%dil
	callq	_BUG_ON
	leaq	32(%rbx), %rax
	movq	%rax, 16(%rbx)
	movl	%r15d, (%rbx)
	movl	%r13d, 24(%rbx)
	movl	%r12d, 4(%rbx)
	movq	_MAX_INLINE_RESP_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movslq	%r15d, %rax
	leaq	32(%rbx,%rax), %rax
	cmovlq	%r14, %rax
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_INLINE_CMD_SIZE,4,2        ## @MAX_INLINE_CMD_SIZE
	.comm	_MAX_INLINE_RESP_SIZE,4,2       ## @MAX_INLINE_RESP_SIZE
	.no_dead_strip	_virtio_gpu_get_vbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_gpu_get_vbuf
_virtio_gpu_get_vbuf:                   ; @virtio_gpu_get_vbuf
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmem_cache_zalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _MAX_INLINE_CMD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INLINE_CMD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w0, lt
	bl	_BUG_ON
	add	x8, x22, #32
	str	w23, [x22, #24]
	stp	w21, w20, [x22]
Lloh6:
	adrp	x9, _MAX_INLINE_RESP_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_INLINE_RESP_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	x10, x8, w21, sxtw
	cmp	w9, w20
	csel	x9, x19, x10, lt
	stp	x9, x8, [x22, #8]
	cmp	x9, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x22
	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
LBB0_2:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_INLINE_CMD_SIZE,4,2        ; @MAX_INLINE_CMD_SIZE
	.comm	_MAX_INLINE_RESP_SIZE,4,2       ; @MAX_INLINE_RESP_SIZE
	.no_dead_strip	_virtio_gpu_get_vbuf
.subsections_via_symbols
