	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snvs_lpgpr_write
_snvs_lpgpr_write:                      ## @snvs_lpgpr_write
	.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	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	movl	12(%r13), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_IMX_GPR_SL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_3
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edi
	movl	8(%r13), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_IMX_GPR_HL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_2
## %bb.5:
	movl	(%rbx), %edi
	movl	%r12d, %esi
	addq	(%r13), %rsi
	shrq	$2, %r15
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_regmap_bulk_write
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX_GPR_SL,4,2                 ## @IMX_GPR_SL
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_IMX_GPR_HL,4,2                 ## @IMX_GPR_HL
	.no_dead_strip	_snvs_lpgpr_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snvs_lpgpr_write
_snvs_lpgpr_write:                      ; @snvs_lpgpr_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x0]
	ldr	w1, [x23, #12]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _IMX_GPR_SL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMX_GPR_SL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	w0, [x22]
	ldr	w1, [x23, #8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_3
; %bb.5:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _IMX_GPR_HL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMX_GPR_HL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.6:
	ldr	w0, [x22]
	ldr	x8, [x23]
	add	x1, x8, w21, uxtw
	lsr	x3, x20, #2
	mov	x2, x19
	bl	_regmap_bulk_write
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX_GPR_SL,4,2                 ; @IMX_GPR_SL
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_IMX_GPR_HL,4,2                 ; @IMX_GPR_HL
	.no_dead_strip	_snvs_lpgpr_write
.subsections_via_symbols
