	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __send_control_msg
___send_control_msg:                    ## @__send_control_msg
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_use_multiport
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%ebx, -40(%rbp)
	movl	%r12d, -48(%rbp)
	movl	%r15d, -44(%rbp)
	movq	8(%r14), %rbx
	leaq	-56(%rbp), %r15
	leaq	-48(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$12, %edx
	callq	_sg_init_one
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_virtqueue_add_buf
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_virtqueue_kick
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_virtqueue_get_buf
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	-36(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_virtqueue_get_buf
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_6:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___send_control_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __send_control_msg
___send_control_msg:                    ; @__send_control_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_use_multiport
	cbz	w0, LBB0_6
; %bb.1:
	stp	w20, w22, [sp, #12]
	str	w21, [sp, #8]
	ldr	x20, [x19, #8]
	add	x0, sp, #24
	add	x1, sp, #8
	mov	w2, #12
	bl	_sg_init_one
	mov	x0, x19
	bl	_spin_lock
	add	x1, sp, #24
	add	x4, sp, #8
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_virtqueue_add_buf
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_virtqueue_kick
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #4
	mov	x0, x20
	bl	_virtqueue_get_buf
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_cpu_relax
	b	LBB0_3
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___send_control_msg
.subsections_via_symbols
