	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_ioc_lmem_init
_bfa_ioc_lmem_init:                     ## @bfa_ioc_lmem_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_readl
	movq	___PSS_LMEM_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	___PSS_LMEM_INIT_EN@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movl	$3, %edi
	callq	___PSS_I2C_CLK_DIV
	orl	%eax, %ebx
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_writel
	xorl	%ebx, %ebx
	movq	___PSS_LMEM_INIT_DONE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_readl
	movl	%eax, %r13d
	movl	(%r12), %eax
	testl	%r13d, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$9999, %ebx                     ## imm = 0x270F
	movl	%ecx, %ebx
	jb	LBB0_1
LBB0_3:
	xorl	%edi, %edi
	testl	%r13d, %eax
	sete	%dil
	callq	_BUG_ON
	movl	(%r15), %edi
	orl	(%r12), %edi
	notl	%edi
	andl	%r13d, %edi
	movl	(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___PSS_LMEM_RESET,4,2           ## @__PSS_LMEM_RESET
	.comm	___PSS_LMEM_INIT_EN,4,2         ## @__PSS_LMEM_INIT_EN
	.comm	___PSS_LMEM_INIT_DONE,4,2       ## @__PSS_LMEM_INIT_DONE
	.comm	_PSS_LMEM_INIT_TIME,4,2         ## @PSS_LMEM_INIT_TIME
	.no_dead_strip	_bfa_ioc_lmem_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_ioc_lmem_init
_bfa_ioc_lmem_init:                     ; @bfa_ioc_lmem_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0]
	bl	_readl
Lloh0:
	adrp	x8, ___PSS_LMEM_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___PSS_LMEM_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh3:
	adrp	x21, ___PSS_LMEM_INIT_EN@GOTPAGE
Lloh4:
	ldr	x21, [x21, ___PSS_LMEM_INIT_EN@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w20, w8, w9
	mov	w0, #3
	bl	___PSS_I2C_CLK_DIV
	orr	w0, w20, w0
	ldr	w1, [x19]
	bl	_writel
	mov	w23, #0
Lloh5:
	adrp	x22, ___PSS_LMEM_INIT_DONE@GOTPAGE
Lloh6:
	ldr	x22, [x22, ___PSS_LMEM_INIT_DONE@GOTPAGEOFF]
	mov	w24, #9999
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_readl
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w23, w24, #2, eq
	add	w23, w23, #1
	b.lo	LBB0_1
; %bb.2:
	mov	x20, x0
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	bic	w0, w20, w8
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___PSS_LMEM_RESET,4,2           ; @__PSS_LMEM_RESET
	.comm	___PSS_LMEM_INIT_EN,4,2         ; @__PSS_LMEM_INIT_EN
	.comm	___PSS_LMEM_INIT_DONE,4,2       ; @__PSS_LMEM_INIT_DONE
	.comm	_PSS_LMEM_INIT_TIME,4,2         ; @PSS_LMEM_INIT_TIME
	.no_dead_strip	_bfa_ioc_lmem_init
.subsections_via_symbols
