	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_hbm_prop_req
_mei_hbm_prop_req:                      ## @mei_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	movq	_MEI_CLIENTS_MAX@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_find_next_bit
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MEI_HBM_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_mei_host_client_init
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	%rax, %r15
	leaq	-48(%rbp), %r12
	movl	$16, %esi
	movq	%r12, %rdi
	callq	_mei_hbm_hdr
	leaq	-64(%rbp), %r13
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_HOST_CLIENT_PROPERTIES_REQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_mei_hbm_write_message
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	_MEI_CLIENTS_INIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_mei_schedule_stall_timer
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_CLIENTS_MAX,8,3            ## @MEI_CLIENTS_MAX
	.comm	_MEI_HBM_STARTED,4,2            ## @MEI_HBM_STARTED
	.comm	_HOST_CLIENT_PROPERTIES_REQ_CMD,4,2 ## @HOST_CLIENT_PROPERTIES_REQ_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"properties request write failed: ret = %d\n"

	.comm	_MEI_CLIENTS_INIT_TIMEOUT,4,2   ## @MEI_CLIENTS_INIT_TIMEOUT
	.no_dead_strip	_mei_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 mei_hbm_prop_req
_mei_hbm_prop_req:                      ; @mei_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	x2, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x21, _MEI_CLIENTS_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MEI_CLIENTS_MAX@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_find_next_bit
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MEI_HBM_STARTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEI_HBM_STARTED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_mei_host_client_init
	mov	w20, #0
	b	LBB0_5
LBB0_2:
	mov	x20, x0
	add	x0, sp, #24
	mov	w1, #16
	bl	_mei_hbm_hdr
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh5:
	adrp	x8, _HOST_CLIENT_PROPERTIES_REQ_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOST_CLIENT_PROPERTIES_REQ_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	x20, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_mei_hbm_write_message
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _MEI_CLIENTS_INIT_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MEI_CLIENTS_INIT_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_mei_schedule_stall_timer
LBB0_5:
	mov	x0, x20
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_CLIENTS_MAX,8,3            ; @MEI_CLIENTS_MAX
	.comm	_MEI_HBM_STARTED,4,2            ; @MEI_HBM_STARTED
	.comm	_HOST_CLIENT_PROPERTIES_REQ_CMD,4,2 ; @HOST_CLIENT_PROPERTIES_REQ_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"properties request write failed: ret = %d\n"

	.comm	_MEI_CLIENTS_INIT_TIMEOUT,4,2   ; @MEI_CLIENTS_INIT_TIMEOUT
	.no_dead_strip	_mei_hbm_prop_req
.subsections_via_symbols
