	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_post_msg                 ## -- Begin function vmbus_post_msg
	.p2align	4, 0x90
_vmbus_post_msg:                        ## @vmbus_post_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_vmbus_connection@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$1, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_msleep
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$21, %r15d
	setb	%cl
	shll	%cl, %ebx
	cmpl	$100, %r12d
	je	LBB0_14
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_hv_post_message
	movl	%eax, %r14d
	leal	-130(%r14), %ecx
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %r14d
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %ecx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movq	_CHANNELMSG_INITIATE_CONTACT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r15), %r12d
	movl	(%rax), %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1001, %ebx                     ## imm = 0x3E9
	jge	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_UDELAY_MS@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	cmpl	%eax, %ebx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_udelay
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ebx, %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_mdelay
	jmp	LBB0_13
LBB0_14:
	negl	%r14d
	jmp	LBB0_15
LBB0_3:
	cmpl	$128, %r14d
	je	LBB0_15
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmbus_connection,4,2           ## @vmbus_connection
	.comm	_CHANNELMSG_INITIATE_CONTACT,4,2 ## @CHANNELMSG_INITIATE_CONTACT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hv_post_msg() failed; error code:%d\n"

	.comm	_MAX_UDELAY_MS,4,2              ## @MAX_UDELAY_MS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_post_msg                 ; -- Begin function vmbus_post_msg
	.p2align	2
_vmbus_post_msg:                        ; @vmbus_post_msg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w24, #0
Lloh0:
	adrp	x8, _vmbus_connection@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmbus_connection@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w23, #1
Lloh3:
	adrp	x25, _ENOBUFS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ENOBUFS@GOTPAGEOFF]
	mov	w27, #19923
	movk	w27, #4194, lsl #16
	mov	w28, #1000
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	umull	x8, w23, w27
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_msleep
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #21
	add	w8, w24, #1
	cset	w9, lo
	lsl	w23, w23, w9
	mov	x24, x8
	cmp	w8, #100
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #1
	mov	x2, x21
	mov	x3, x20
	bl	_hv_post_message
	sub	w9, w0, #130
	mov	x8, x25
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	cmp	w0, #129
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
Lloh5:
	adrp	x8, _CHANNELMSG_INITIATE_CONTACT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHANNELMSG_INITIATE_CONTACT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	cmp	w9, w10
	b.eq	LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w26, [x8]
	cbz	w19, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #1001
	b.ge	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _MAX_UDELAY_MS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_UDELAY_MS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mul	w8, w8, w28
	cmp	w23, w8
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_udelay
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	smull	x8, w23, w27
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	bl	_mdelay
	b	LBB0_2
LBB0_11:
	neg	w1, w26
	b	LBB0_15
LBB0_12:
	cmp	w1, #128
	b.eq	LBB0_15
; %bb.13:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_14:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_15:
	mov	x0, x1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_vmbus_connection,4,2           ; @vmbus_connection
	.comm	_CHANNELMSG_INITIATE_CONTACT,4,2 ; @CHANNELMSG_INITIATE_CONTACT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hv_post_msg() failed; error code:%d\n"

	.comm	_MAX_UDELAY_MS,4,2              ; @MAX_UDELAY_MS
.subsections_via_symbols
