	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hot_add_req
_hot_add_req:                           ## @hot_add_req
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_DM_MEM_HOT_ADD_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	$24, -20(%rbp)
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movl	$1, -24(%rbp)
	movq	_do_hot_add@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	sete	%cl
	testb	%cl, %cl
	je	LBB0_6
	jmp	LBB0_7
LBB0_2:
	movq	_do_hot_add@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.4:
	movl	$0, -24(%rbp)
	xorl	%ecx, %ecx
	testb	%cl, %cl
	jne	LBB0_7
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_3:
	movl	$1, -24(%rbp)
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_8:
	movq	_DM_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_dm_device@GOTPCREL(%rip), %rbx
	movl	%eax, 8(%rbx)
	movq	_trans_id@GOTPCREL(%rip), %rdi
	callq	_atomic_inc_return
	movl	%eax, -16(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rsi
	movl	$24, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_device,48,3                 ## @dm_device
	.comm	_DM_MEM_HOT_ADD_RESPONSE,4,2    ## @DM_MEM_HOT_ADD_RESPONSE
	.comm	_do_hot_add,8,3                 ## @do_hot_add
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory hot add failed\n"

	.comm	_DM_INITIALIZED,4,2             ## @DM_INITIALIZED
	.comm	_trans_id,4,2                   ## @trans_id
	.comm	_VM_PKT_DATA_INBAND,4,2         ## @VM_PKT_DATA_INBAND
	.comm	_HA_CHUNK,8,3                   ## @HA_CHUNK
	.no_dead_strip	_hot_add_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hot_add_req
_hot_add_req:                           ; @hot_add_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w19, #24
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _DM_MEM_HOT_ADD_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_MEM_HOT_ADD_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	str	w19, [sp, #20]
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [sp, #16]
Lloh3:
	adrp	x9, _do_hot_add@GOTPAGE
Lloh4:
	ldr	x9, [x9, _do_hot_add@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, #0
	cset	w9, eq
	tbz	w9, #0, LBB0_4
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x9, _do_hot_add@GOTPAGE
Lloh7:
	ldr	x9, [x9, _do_hot_add@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.3:
	mov	w9, #0
	str	wzr, [sp, #16]
	tbnz	w9, #0, LBB0_6
LBB0_4:
	cbnz	x8, LBB0_7
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [sp, #16]
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_7:
Lloh11:
	adrp	x8, _DM_INITIALIZED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DM_INITIALIZED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x19, _dm_device@GOTPAGE
Lloh15:
	ldr	x19, [x19, _dm_device@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh16:
	adrp	x0, _trans_id@GOTPAGE
Lloh17:
	ldr	x0, [x0, _trans_id@GOTPAGEOFF]
	bl	_atomic_inc_return
	str	w0, [sp, #24]
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	w2, #24
	mov	x3, #0
	mov	w5, #0
	bl	_vmbus_sendpacket
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_device,48,3                 ; @dm_device
	.comm	_DM_MEM_HOT_ADD_RESPONSE,4,2    ; @DM_MEM_HOT_ADD_RESPONSE
	.comm	_do_hot_add,8,3                 ; @do_hot_add
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory hot add failed\n"

	.comm	_DM_INITIALIZED,4,2             ; @DM_INITIALIZED
	.comm	_trans_id,4,2                   ; @trans_id
	.comm	_VM_PKT_DATA_INBAND,4,2         ; @VM_PKT_DATA_INBAND
	.comm	_HA_CHUNK,8,3                   ; @HA_CHUNK
	.no_dead_strip	_hot_add_req
.subsections_via_symbols
