	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$16, (%rdi)
	movslq	32(%rdx), %rsi
	xorl	%r10d, %r10d
	movl	36(%rdx), %r9d
	testq	%rsi, %rsi
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %eax
	sarl	$16, %eax
	movzwl	%cx, %r12d
	movl	%esi, %r14d
	movq	40(%rdx), %rcx
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	%esi, %r11d
	xorl	%r10d, %r10d
LBB0_12:
	testb	$1, %r14b
	je	LBB0_16
## %bb.13:
	cmpl	%eax, (%rcx,%rbx,8)
	jne	LBB0_16
## %bb.14:
	cmpl	%r12d, 4(%rcx,%rbx,8)
	jne	LBB0_16
## %bb.15:
	movl	$1, %r15d
	movl	%r12d, %r10d
	movl	%eax, %r11d
LBB0_16:
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.17:
	testl	%r9d, %r9d
	jle	LBB0_24
## %bb.18:
	movl	%r8d, %eax
	sarl	$16, %r8d
	movzwl	%ax, %edi
	leal	(%r9,%rsi), %eax
	movq	40(%rdx), %rbx
	movslq	%eax, %rcx
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rsi
	cmpq	%rcx, %rsi
	jge	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r8d, (%rbx,%rsi,8)
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	%edi, 4(%rbx,%rsi,8)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$1, %eax
	movl	%edi, %r14d
	movl	%r8d, %r9d
	jmp	LBB0_22
LBB0_1:
	movl	%esi, %r11d
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_4:
	movl	%r14d, %edi
	andl	$-2, %edi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	%esi, %r11d
	xorl	%r10d, %r10d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rbx
	cmpq	%rbx, %rdi
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rcx,%rbx,8)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, 4(%rcx,%rbx,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r15d
	movl	%r12d, %r10d
	movl	%eax, %r11d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%eax, 8(%rcx,%rbx,8)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, 12(%rcx,%rbx,8)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r15d
	movl	%r12d, %r10d
	movl	%eax, %r11d
	jmp	LBB0_11
LBB0_23:
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_25
LBB0_24:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
LBB0_25:
	movl	%ecx, 32(%rdx)
	movl	%ecx, 36(%rdx)
	movq	40(%rdx), %rcx
	movl	%r11d, (%rcx)
	movl	%r10d, 4(%rcx)
	movl	%r9d, 8(%rcx)
	movl	%r14d, 12(%rcx)
	popq	%rbx
	popq	%r12
	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	w15, w8, [x2, #32]
	cmp	w15, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w16, #0
	mov	w9, #0
	asr	w12, w3, #16
	and	w17, w3, #0xffff
	asr	w11, w4, #16
	and	w13, w4, #0xffff
	mov	x10, x15
	sxtw	x14, w10
	ldr	x10, [x2, #40]
	add	x0, x10, #4
	mov	w1, #1
	mov	x3, x15
	mov	x10, x15
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #8
	subs	x3, x3, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w4, [x0, #-4]
	cmp	w4, w12
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w4, [x0]
	cmp	w4, w17
	csel	w9, w9, w17, ne
	csel	w10, w10, w12, ne
	csel	w16, w16, w1, ne
	b	LBB0_2
LBB0_5:
	mov	w12, #0
	cbz	w16, LBB0_14
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.7:
	mov	w0, #0
	mov	w12, #0
	add	w15, w8, w15
	ldr	x16, [x2, #40]
	sxtw	x15, w15
	add	x16, x16, x14, lsl #3
	add	x16, x16, #4
	mov	w17, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x14, x14, #1
	add	x16, x16, #8
	cmp	x14, x15
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x16, #-4]
	cmp	w1, w11
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x16]
	cmp	w1, w13
	csel	w12, w12, w13, ne
	csel	w8, w8, w11, ne
	csel	w0, w0, w17, ne
	b	LBB0_8
LBB0_11:
	mov	w9, #0
	mov	w12, #0
	b	LBB0_15
LBB0_12:
	cbz	w0, LBB0_14
; %bb.13:
	mov	w11, #1
	b	LBB0_16
LBB0_14:
	mov	x15, x10
LBB0_15:
	mov	w0, #0
	mov	w11, #0
	mov	x10, x15
LBB0_16:
	stp	w11, w11, [x2, #32]
	ldr	x11, [x2, #40]
	stp	w10, w9, [x11]
	stp	w8, w12, [x11, #8]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
