	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ishtp_hbm_start_req            ## -- Begin function ishtp_hbm_start_req
	.p2align	4, 0x90
_ishtp_hbm_start_req:                   ## @ishtp_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_ishtp_hbm_hdr
	movq	_HOST_START_REQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_HBM_MAJOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_HBM_MINOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_ISHTP_HBM_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ishtp_write_message
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ISHTP_DEV_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_ISHTP_HBM_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_ish_hw_reset
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	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	_ISHTP_HBM_START,4,2            ## @ISHTP_HBM_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version message send failed\n"

	.comm	_ISHTP_DEV_RESETTING,4,2        ## @ISHTP_DEV_RESETTING
	.comm	_ISHTP_HBM_IDLE,4,2             ## @ISHTP_HBM_IDLE
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ishtp_hbm_start_req            ; -- Begin function ishtp_hbm_start_req
	.p2align	2
_ishtp_hbm_start_req:                   ; @ishtp_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
	str	wzr, [sp, #20]
	add	x0, sp, #24
	mov	w1, #16
	bl	_ishtp_hbm_hdr
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, _ISHTP_HBM_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISHTP_HBM_START@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_ishtp_write_message
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _ISHTP_DEV_RESETTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISHTP_DEV_RESETTING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ISHTP_HBM_IDLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ISHTP_HBM_IDLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_ish_hw_reset
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.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	_ISHTP_HBM_START,4,2            ; @ISHTP_HBM_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version message send failed\n"

	.comm	_ISHTP_DEV_RESETTING,4,2        ; @ISHTP_DEV_RESETTING
	.comm	_ISHTP_HBM_IDLE,4,2             ; @ISHTP_HBM_IDLE
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
