	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_prep_negotiate_resp      ## -- Begin function vmbus_prep_negotiate_resp
	.p2align	4, 0x90
_vmbus_prep_negotiate_resp:             ## @vmbus_prep_negotiate_resp
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rbp), %rbx
	movl	$16, (%rdi)
	movl	32(%rsi), %edi
	movl	36(%rsi), %r11d
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movslq	%edi, %r14
	movl	%ecx, %r13d
	movb	$1, %r12b
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%r13, %rax
	setb	%r12b
	je	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%edi, %edi
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdx,%rax,4), %ebx
	movzwl	%bx, %r15d
	sarl	$16, %ebx
	movq	40(%rsi), %rcx
	xorl	%r10d, %r10d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r10
	cmpq	%r10, %rdi
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%ebx, (%rcx,%r10,8)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%r15d, 4(%rcx,%r10,8)
	jne	LBB0_7
## %bb.10:
	testl	%r9d, %r9d
	setle	%al
	notb	%r12b
	orb	%al, %r12b
	xorl	%eax, %eax
	testb	$1, %r12b
	jne	LBB0_20
## %bb.11:
	addl	%r11d, %edi
	movslq	%edi, %rax
	movl	%r9d, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r10
	cmpq	%r9, %r10
	je	LBB0_19
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testl	%r11d, %r11d
	jle	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r8,%r10,4), %edx
	movzwl	%dx, %r12d
	sarl	$16, %edx
	movq	%r14, %rdi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%rdi
	cmpq	%rax, %rdi
	jge	LBB0_18
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edx, (%rcx,%rdi,8)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpl	%r12d, 4(%rcx,%rdi,8)
	jne	LBB0_17
## %bb.16:
	movl	$1, %eax
	movl	%edx, %r11d
	jmp	LBB0_21
LBB0_1:
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_9:
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	xorl	%r12d, %r12d
LBB0_21:
	movl	%ebx, %edi
LBB0_22:
	movq	16(%rbp), %rbx
LBB0_23:
	movq	24(%rbp), %rcx
	movl	%eax, 32(%rsi)
	movl	%eax, 36(%rsi)
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.24:
	movl	%edi, %edx
	shll	$16, %edx
	orl	%r15d, %edx
	movl	%edx, (%rbx)
LBB0_25:
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.26:
	movl	%r11d, %edx
	shll	$16, %edx
	orl	%r12d, %edx
	movl	%edx, (%rcx)
LBB0_27:
	movq	40(%rsi), %rcx
	movl	%edi, (%rcx)
	movl	%r15d, 4(%rcx)
	movl	%r11d, 8(%rcx)
	movl	%r12d, 12(%rcx)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_prep_negotiate_resp      ; -- Begin function vmbus_prep_negotiate_resp
	.p2align	2
_vmbus_prep_negotiate_resp:             ; @vmbus_prep_negotiate_resp
	.cfi_startproc
; %bb.0:
	mov	w8, #16
	str	w8, [x0]
	ldp	w10, w8, [x1, #32]
	cmp	w3, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x13, #0
	mov	x9, x10
	sxtw	x11, w9
	mov	w14, w3
	mov	w15, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #1
	cmp	x13, x14
	cset	w15, lo
	b.eq	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x2, x13, lsl #2]
	asr	w12, w9, #16
	and	w9, w9, #0xffff
	ldr	x16, [x1, #40]
	add	x17, x16, #4
	mov	x0, x10
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x17, x17, #8
	subs	x0, x0, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w3, [x17, #-4]
	cmp	w3, w12
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w3, [x17]
	cmp	w3, w9
	b.ne	LBB0_5
; %bb.8:
	cmp	w5, #1
	cset	w13, lt
	orn	w13, w13, w15
	tbnz	w13, #0, LBB0_18
; %bb.9:
	mov	x14, #0
	add	w10, w8, w10
	sxtw	x10, w10
	mov	w15, w5
	add	x13, x16, x11, lsl #3
	add	x16, x13, #4
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x14, x14, #1
	cmp	x14, x15
	b.eq	LBB0_18
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w13, [x4, x14, lsl #2]
	asr	w17, w13, #16
	and	w13, w13, #0xffff
	mov	x0, x16
	mov	x2, x11
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x2, x2, #1
	add	x0, x0, #8
	cmp	x2, x10
	b.ge	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w3, [x0, #-4]
	cmp	w3, w17
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w3, [x0]
	cmp	w3, w13
	b.ne	LBB0_13
; %bb.16:
	mov	w0, #1
	mov	x8, x17
	b	LBB0_19
LBB0_17:
	mov	w0, #0
	mov	w13, #0
	mov	w9, #0
	stp	w0, w0, [x1, #32]
	cbnz	x6, LBB0_20
	b	LBB0_21
LBB0_18:
	mov	w0, #0
	mov	w13, #0
LBB0_19:
	mov	x10, x12
	stp	w0, w0, [x1, #32]
	cbz	x6, LBB0_21
LBB0_20:
	mov	x11, x9
	bfi	w11, w10, #16, #16
	str	w11, [x6]
LBB0_21:
	cbz	x7, LBB0_23
; %bb.22:
	mov	x11, x13
	bfi	w11, w8, #16, #16
	str	w11, [x7]
LBB0_23:
	ldr	x11, [x1, #40]
	stp	w10, w9, [x11]
	stp	w8, w13, [x11, #8]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
