	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_buffer
_register_buffer:                       ## @register_buffer
	.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	_random_data@GOTPCREL(%rip), %r15
	movq	_data_left@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rsi
	addq	%rax, %rsi
	movq	_RANDOM_DATA_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rax, %rdx
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sg_init_one
	movq	_vq@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%r15), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_virtqueue_add_buf
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	movl	(%r14), %edi
	callq	_virtqueue_kick
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_random_data,8,3                ## @random_data
	.comm	_data_left,8,3                  ## @data_left
	.comm	_RANDOM_DATA_SIZE,8,3           ## @RANDOM_DATA_SIZE
	.comm	_vq,4,2                         ## @vq
	.no_dead_strip	_register_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_buffer
_register_buffer:                       ; @register_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _random_data@GOTPAGE
Lloh1:
	ldr	x20, [x20, _random_data@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _data_left@GOTPAGE
Lloh3:
	ldr	x9, [x9, _data_left@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh5:
	adrp	x8, _RANDOM_DATA_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RANDOM_DATA_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	sub	x2, x8, x9
	add	x0, sp, #8
	bl	_sg_init_one
Lloh8:
	adrp	x19, _vq@GOTPAGE
Lloh9:
	ldr	x19, [x19, _vq@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	x4, [x20]
	add	x1, sp, #8
	mov	w2, #0
	mov	w3, #1
	bl	_virtqueue_add_buf
	tbz	x0, #63, LBB0_2
; %bb.1:
	bl	_BUG
LBB0_2:
	ldr	w0, [x19]
	bl	_virtqueue_kick
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_random_data,8,3                ; @random_data
	.comm	_data_left,8,3                  ; @data_left
	.comm	_RANDOM_DATA_SIZE,8,3           ; @RANDOM_DATA_SIZE
	.comm	_vq,4,2                         ; @vq
	.no_dead_strip	_register_buffer
.subsections_via_symbols
