	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_hw_raminit_syscon
_c_can_hw_raminit_syscon:               ## @c_can_hw_raminit_syscon
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	$0, -36(%rbp)
	movq	_raminit_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movb	(%rbx), %al
	movb	4(%rbx), %cl
	movl	$1, %r14d
	shll	%cl, %r14d
	movl	$1, %r15d
	btsl	%eax, %r14d
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%r14d, %ecx
	notl	%ecx
	andl	-36(%rbp), %ecx
	movl	%ecx, -36(%rbp)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	%r14d, %edx
	callq	_regmap_update_bits
	movb	(%rbx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_c_can_hw_raminit_wait_syscon
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	movl	-36(%rbp), %ecx
	movb	(%rbx), %al
	movb	4(%rbx), %dl
	btsl	%eax, %ecx
	btsl	%edx, %ecx
	movl	%ecx, -36(%rbp)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	%r14d, %edx
	callq	_regmap_update_bits
	movb	4(%rbx), %cl
	shll	%cl, %r15d
	movl	-36(%rbp), %eax
	btrl	%ecx, %eax
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movb	(%rbx), %cl
	btrl	%ecx, %eax
	movl	%eax, -36(%rbp)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movb	4(%rbx), %cl
	movl	-36(%rbp), %eax
	movl	$1, %r15d
	shll	%cl, %r15d
LBB0_3:
	orl	%eax, %r15d
	movl	%r15d, -36(%rbp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_c_can_hw_raminit_wait_syscon
LBB0_4:
	movq	_raminit_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_raminit_lock,4,2               ## @raminit_lock
	.no_dead_strip	_c_can_hw_raminit_syscon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_can_hw_raminit_syscon
_c_can_hw_raminit_syscon:               ; @c_can_hw_raminit_syscon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x0, _raminit_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _raminit_lock@GOTPAGEOFF]
	bl	_spin_lock
	mov	w22, #1
	ldp	w8, w9, [x19]
	lsl	w8, w22, w8
	lsl	w9, w22, w9
	orr	w20, w9, w8
	ldp	w1, w0, [x19, #8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
	bic	w3, w8, w20
	str	w3, [sp, #12]
	ldp	w1, w0, [x19, #8]
	mov	x2, x20
	bl	_regmap_update_bits
	ldr	w8, [x19]
	lsl	w1, w22, w8
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_c_can_hw_raminit_wait_syscon
	cbz	w21, LBB0_4
; %bb.1:
	ldp	w8, w9, [x19]
	lsl	w8, w22, w8
	ldr	w10, [sp, #12]
	orr	w8, w10, w8
	lsl	w9, w22, w9
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldp	w1, w0, [x19, #8]
	mov	x2, x20
	bl	_regmap_update_bits
	ldr	w8, [x19, #4]
	lsl	w9, w22, w8
	ldr	w8, [sp, #12]
	bic	w8, w8, w9
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_3
; %bb.2:
	ldr	w9, [x19]
	mov	w21, #1
	lsl	w9, w21, w9
	bic	w3, w8, w9
	str	w3, [sp, #12]
	ldp	w1, w0, [x19, #8]
	mov	x2, x20
	bl	_regmap_update_bits
	ldr	w9, [x19, #4]
	ldr	w8, [sp, #12]
	lsl	w9, w21, w9
LBB0_3:
	orr	w2, w8, w9
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_c_can_hw_raminit_wait_syscon
LBB0_4:
Lloh2:
	adrp	x0, _raminit_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _raminit_lock@GOTPAGEOFF]
	bl	_spin_unlock
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_raminit_lock,4,2               ; @raminit_lock
	.no_dead_strip	_c_can_hw_raminit_syscon
.subsections_via_symbols
