	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_hbm_start_req              ## -- Begin function mei_hbm_start_req
	.p2align	4, 0x90
_mei_hbm_start_req:                     ## @mei_hbm_start_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mei_hbm_reset
	leaq	-48(%rbp), %r14
	movl	$12, %esi
	movq	%r14, %rdi
	callq	_mei_hbm_hdr
	leaq	-40(%rbp), %r15
	movl	$12, %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_HOST_START_REQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_HBM_MAJOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_HBM_MINOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_MEI_HBM_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mei_hbm_write_message
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	_MEI_HBM_STARTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_MEI_CLIENTS_INIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_mei_schedule_stall_timer
LBB0_3:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_START_REQ_CMD,4,2         ## @HOST_START_REQ_CMD
	.comm	_HBM_MAJOR_VERSION,4,2          ## @HBM_MAJOR_VERSION
	.comm	_HBM_MINOR_VERSION,4,2          ## @HBM_MINOR_VERSION
	.comm	_MEI_HBM_IDLE,4,2               ## @MEI_HBM_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version message write failed: ret = %d\n"

	.comm	_MEI_HBM_STARTING,4,2           ## @MEI_HBM_STARTING
	.comm	_MEI_CLIENTS_INIT_TIMEOUT,4,2   ## @MEI_CLIENTS_INIT_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_hbm_start_req              ; -- Begin function mei_hbm_start_req
	.p2align	2
_mei_hbm_start_req:                     ; @mei_hbm_start_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	x19, x0
	bl	_mei_hbm_reset
	add	x0, sp, #24
	mov	w1, #12
	bl	_mei_hbm_hdr
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _HOST_START_REQ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOST_START_REQ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh3:
	adrp	x8, _HBM_MAJOR_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HBM_MAJOR_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _HBM_MINOR_VERSION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HBM_MINOR_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
Lloh9:
	adrp	x8, _MEI_HBM_IDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEI_HBM_IDLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_mei_hbm_write_message
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _MEI_HBM_STARTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MEI_HBM_STARTING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MEI_CLIENTS_INIT_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MEI_CLIENTS_INIT_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_mei_schedule_stall_timer
LBB0_3:
	mov	x0, x20
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_START_REQ_CMD,4,2         ; @HOST_START_REQ_CMD
	.comm	_HBM_MAJOR_VERSION,4,2          ; @HBM_MAJOR_VERSION
	.comm	_HBM_MINOR_VERSION,4,2          ; @HBM_MINOR_VERSION
	.comm	_MEI_HBM_IDLE,4,2               ; @MEI_HBM_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version message write failed: ret = %d\n"

	.comm	_MEI_HBM_STARTING,4,2           ; @MEI_HBM_STARTING
	.comm	_MEI_CLIENTS_INIT_TIMEOUT,4,2   ; @MEI_CLIENTS_INIT_TIMEOUT
.subsections_via_symbols
