	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_hbm_dma_setup_req
_mei_hbm_dma_setup_req:                 ## @mei_hbm_dma_setup_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	%rdi, %r15
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	callq	_mei_hbm_hdr
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_MEI_HBM_DMA_SETUP_REQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_DMA_DSCR_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	16(%r15), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rbx,8), %r12d
	movl	%r12d, %edi
	callq	_upper_32_bits
	movq	-64(%rbp), %rcx
	movl	%eax, 8(%rcx,%r13)
	movl	%r12d, %edi
	callq	_lower_32_bits
	movq	-64(%rbp), %rcx
	movl	%eax, 4(%rcx,%r13)
	movq	16(%r15), %rax
	movl	(%rax,%rbx,8), %edx
	movl	%edx, (%rcx,%r13)
	incq	%rbx
	movl	(%r14), %ecx
	addq	$12, %r13
	cmpq	%rcx, %rbx
	jb	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_mei_dma_ring_reset
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mei_hbm_write_message
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_5:
	movq	_MEI_HBM_DR_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_MEI_CLIENTS_INIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_mei_schedule_stall_timer
LBB0_6:
	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_HBM_DMA_SETUP_REQ_CMD,4,2  ## @MEI_HBM_DMA_SETUP_REQ_CMD
	.comm	_DMA_DSCR_NUM,4,2               ## @DMA_DSCR_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma setup request write failed: ret = %d.\n"

	.comm	_MEI_HBM_DR_SETUP,4,2           ## @MEI_HBM_DR_SETUP
	.comm	_MEI_CLIENTS_INIT_TIMEOUT,4,2   ## @MEI_CLIENTS_INIT_TIMEOUT
	.no_dead_strip	_mei_hbm_dma_setup_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_dma_setup_req
_mei_hbm_dma_setup_req:                 ; @mei_hbm_dma_setup_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x0, sp, #24
	mov	w1, #16
	bl	_mei_hbm_hdr
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _MEI_HBM_DMA_SETUP_REQ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEI_HBM_DMA_SETUP_REQ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh3:
	adrp	x21, _DMA_DSCR_NUM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DMA_DSCR_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x19, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23
	ldr	w20, [x8, #4]
	mov	x0, x20
	bl	_upper_32_bits
	ldr	x8, [sp, #8]
	add	x8, x8, x22
	str	w0, [x8, #8]
	mov	x0, x20
	bl	_lower_32_bits
	ldr	x8, [sp, #8]
	add	x9, x8, x22
	str	w0, [x9, #4]
	ldr	x8, [x19, #16]
	ldr	w10, [x8, x23]
	str	w10, [x9]
	add	x24, x24, #1
	ldr	w9, [x21]
	add	x23, x23, #8
	add	x22, x22, #12
	cmp	x24, x9
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_mei_dma_ring_reset
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_mei_hbm_write_message
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _MEI_HBM_DR_SETUP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MEI_HBM_DR_SETUP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _MEI_CLIENTS_INIT_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MEI_CLIENTS_INIT_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_mei_schedule_stall_timer
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_HBM_DMA_SETUP_REQ_CMD,4,2  ; @MEI_HBM_DMA_SETUP_REQ_CMD
	.comm	_DMA_DSCR_NUM,4,2               ; @DMA_DSCR_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma setup request write failed: ret = %d.\n"

	.comm	_MEI_HBM_DR_SETUP,4,2           ; @MEI_HBM_DR_SETUP
	.comm	_MEI_CLIENTS_INIT_TIMEOUT,4,2   ; @MEI_CLIENTS_INIT_TIMEOUT
	.no_dead_strip	_mei_hbm_dma_setup_req
.subsections_via_symbols
