	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IFX_MEI_BarUpdate
_IFX_MEI_BarUpdate:                     ## @IFX_MEI_BarUpdate
	.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
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.1:
	movl	%r14d, %r15d
	xorl	%ebx, %ebx
	movq	_XDATA_REGISTER@GOTPCREL(%rip), %r12
	movq	_ME_XMEM_BAR_BASE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%r15, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%rbx,4), %esi
	addq	(%r13), %rsi
	leaq	(%rbx,%rbx,2), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdx
	andl	$268435455, %edx                ## imm = 0xFFFFFFF
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_IFX_MEI_LongWordWriteOffset
	jmp	LBB0_4
LBB0_5:
	movq	_MAX_BAR_REGISTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	jle	LBB0_10
## %bb.6:
	leal	-1(%r14), %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %r13
	movslq	%r14d, %r12
	shll	$2, %r14d
	leaq	(%r12,%r12,2), %rcx
	leaq	(%rdx,%rcx,8), %r15
	addq	$16, %r15
	movq	_XDATA_REGISTER@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addl	$4, %r14d
	addq	$24, %r15
	cmpq	%rcx, %r12
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rbx), %r12d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r14d, %rsi
	movq	_ME_XMEM_BAR_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	(%r13), %rdx
	andl	$268435455, %edx                ## imm = 0xFFFFFFF
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_IFX_MEI_LongWordWriteOffset
	movq	(%r13), %rax
	movq	%rax, -16(%r15)
	movl	16(%r13), %eax
	movl	%eax, (%r15)
	movq	$0, -8(%r15)
	movq	_MAX_BAR_REGISTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_10:
	movq	_XDATA_REGISTER@GOTPCREL(%rip), %r14
	movslq	(%r14), %rsi
	leaq	(%rsi,%rsi,2), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rcx
	movq	_g_xdata_addr@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_ME_XMEM_BAR_BASE@GOTPCREL(%rip), %rcx
	shlq	$2, %rsi
	addq	(%rcx), %rsi
	movq	(%rbx,%rax,8), %rdx
	andl	$268435455, %edx                ## imm = 0xFFFFFFF
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_IFX_MEI_LongWordWriteOffset
	movq	_ME_XDATA_BASE_SH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movslq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	movq	(%rbx,%rax,8), %rdx
	andl	$268435455, %edx                ## imm = 0xFFFFFFF
	movq	%r15, %rdi
	callq	_IFX_MEI_LongWordWriteOffset
	movq	_DSL_DEV_MEI_ERR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XDATA_REGISTER,4,2             ## @XDATA_REGISTER
	.comm	_ME_XMEM_BAR_BASE,8,3           ## @ME_XMEM_BAR_BASE
	.comm	_MAX_BAR_REGISTERS,4,2          ## @MAX_BAR_REGISTERS
	.comm	_g_xdata_addr,8,3               ## @g_xdata_addr
	.comm	_ME_XDATA_BASE_SH,8,3           ## @ME_XDATA_BASE_SH
	.comm	_DSL_DEV_MEI_ERR_SUCCESS,4,2    ## @DSL_DEV_MEI_ERR_SUCCESS
	.no_dead_strip	_IFX_MEI_BarUpdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IFX_MEI_BarUpdate
_IFX_MEI_BarUpdate:                     ; @IFX_MEI_BarUpdate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_DSL_DEV_PRIVATE
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _XDATA_REGISTER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XDATA_REGISTER@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ME_XMEM_BAR_BASE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ME_XMEM_BAR_BASE@GOTPAGEOFF]
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	w25, w20
	mov	w26, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x24, x25
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	x24, x8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	lsl	w9, w24, #2
	add	x1, x8, x9
	mul	x8, x24, x26
	ldr	x8, [x21, x8]
	and	x2, x8, #0xfffffff
	mov	x0, x19
	bl	_IFX_MEI_LongWordWriteOffset
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x24, _MAX_BAR_REGISTERS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAX_BAR_REGISTERS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w20
	b.le	LBB0_10
; %bb.6:
	sxtw	x25, w20
	mov	w9, #24
	smaddl	x9, w20, w9, x21
	sub	x26, x9, #24
	sub	x27, x9, #8
	lsl	w20, w20, #2
	add	x28, x9, #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	add	w20, w20, #4
	add	x28, x28, #24
	cmp	x25, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	cmp	w25, w9
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23]
	add	x1, x8, w20, sxtw
	ldr	x8, [x26]
	and	x2, x8, #0xfffffff
	mov	x0, x19
	bl	_IFX_MEI_LongWordWriteOffset
	ldr	x8, [x26]
	ldr	w9, [x27]
	str	w9, [x28]
	stp	x8, xzr, [x28, #-16]
	ldr	w8, [x24]
	b	LBB0_7
LBB0_10:
	ldrsw	x8, [x22]
	mov	w20, #24
	mul	x9, x8, x20
	ldr	x10, [x21, x9]
Lloh6:
	adrp	x11, _g_xdata_addr@GOTPAGE
Lloh7:
	ldr	x11, [x11, _g_xdata_addr@GOTPAGEOFF]
Lloh8:
	str	x10, [x11]
	ldr	x10, [x23]
	add	x1, x10, x8, lsl #2
	ldr	x8, [x21, x9]
	and	x2, x8, #0xfffffff
	mov	x0, x19
	bl	_IFX_MEI_LongWordWriteOffset
Lloh9:
	adrp	x8, _ME_XDATA_BASE_SH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ME_XDATA_BASE_SH@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	ldrsw	x8, [x22]
	mul	x8, x8, x20
	ldr	x8, [x21, x8]
	and	x2, x8, #0xfffffff
	mov	x0, x19
	bl	_IFX_MEI_LongWordWriteOffset
Lloh12:
	adrp	x8, _DSL_DEV_MEI_ERR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DSL_DEV_MEI_ERR_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XDATA_REGISTER,4,2             ; @XDATA_REGISTER
	.comm	_ME_XMEM_BAR_BASE,8,3           ; @ME_XMEM_BAR_BASE
	.comm	_MAX_BAR_REGISTERS,4,2          ; @MAX_BAR_REGISTERS
	.comm	_g_xdata_addr,8,3               ; @g_xdata_addr
	.comm	_ME_XDATA_BASE_SH,8,3           ; @ME_XDATA_BASE_SH
	.comm	_DSL_DEV_MEI_ERR_SUCCESS,4,2    ; @DSL_DEV_MEI_ERR_SUCCESS
	.no_dead_strip	_IFX_MEI_BarUpdate
.subsections_via_symbols
