	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ishtp_hbm_prop_req
_ishtp_hbm_prop_req:                    ## @ishtp_hbm_prop_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movslq	(%rdi), %r15
	movl	36(%rdi), %edi
	movq	_ISHTP_CLIENTS_MAX@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	8(%rbx), %rdx
	callq	_find_next_bit
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ISHTP_HBM_WORKING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_ISHTP_DEV_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$1, (%rbx)
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ishtp_bus_new_client
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	cmpl	%r15d, %eax
	jl	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	%rax, %r14
	movq	24(%rbx), %rax
	movq	%r14, (%rax,%r15,8)
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_ishtp_hbm_hdr
	movq	_HOST_CLIENT_PROPERTIES_REQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%r14, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ishtp_write_message
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ISHTP_DEV_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_ish_hw_reset
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_5:
	movq	%r14, 8(%rbx)
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISHTP_CLIENTS_MAX,8,3          ## @ISHTP_CLIENTS_MAX
	.comm	_ISHTP_HBM_WORKING,4,2          ## @ISHTP_HBM_WORKING
	.comm	_ISHTP_DEV_ENABLED,4,2          ## @ISHTP_DEV_ENABLED
	.comm	_HOST_CLIENT_PROPERTIES_REQ_CMD,4,2 ## @HOST_CLIENT_PROPERTIES_REQ_CMD
	.comm	_ISHTP_DEV_RESETTING,4,2        ## @ISHTP_DEV_RESETTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"properties request send failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ishtp_hbm_prop_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ishtp_hbm_prop_req
_ishtp_hbm_prop_req:                    ; @ishtp_hbm_prop_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	str	xzr, [sp, #16]
	ldrsw	x21, [x0]
	ldr	w0, [x0, #36]
Lloh0:
	adrp	x22, _ISHTP_CLIENTS_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ISHTP_CLIENTS_MAX@GOTPAGEOFF]
	ldr	x1, [x22]
	ldr	x2, [x19, #8]
	bl	_find_next_bit
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _ISHTP_HBM_WORKING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISHTP_HBM_WORKING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ISHTP_DEV_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISHTP_DEV_ENABLED@GOTPAGEOFF]
	str	w8, [x19, #32]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x19, #20]
	mov	w8, #1
	str	w8, [x19]
	cmp	w21, #1
	b.lt	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ishtp_bus_new_client
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cmp	w8, w21
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	x20, x0
	ldr	x8, [x19, #24]
	str	x0, [x8, x21, lsl #3]
	add	x0, sp, #24
	mov	w1, #16
	bl	_ishtp_hbm_hdr
Lloh8:
	adrp	x8, _HOST_CLIENT_PROPERTIES_REQ_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HOST_CLIENT_PROPERTIES_REQ_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	x20, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_ishtp_write_message
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _ISHTP_DEV_RESETTING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISHTP_DEV_RESETTING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w0, [x19, #16]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_ish_hw_reset
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	str	x20, [x19, #8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISHTP_CLIENTS_MAX,8,3          ; @ISHTP_CLIENTS_MAX
	.comm	_ISHTP_HBM_WORKING,4,2          ; @ISHTP_HBM_WORKING
	.comm	_ISHTP_DEV_ENABLED,4,2          ; @ISHTP_DEV_ENABLED
	.comm	_HOST_CLIENT_PROPERTIES_REQ_CMD,4,2 ; @HOST_CLIENT_PROPERTIES_REQ_CMD
	.comm	_ISHTP_DEV_RESETTING,4,2        ; @ISHTP_DEV_RESETTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"properties request send failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ishtp_hbm_prop_req
.subsections_via_symbols
