	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun6i_csi_update_buf_addr      ## -- Begin function sun6i_csi_update_buf_addr
	.p2align	4, 0x90
_sun6i_csi_update_buf_addr:             ## @sun6i_csi_update_buf_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_sun6i_csi_to_dev
	movq	%rax, %rbx
	movl	8(%rax), %edi
	movq	_CSI_CH_F0_BUFA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	addl	%r14d, %edx
	sarl	$2, %edx
	callq	_regmap_write
	movq	(%rbx), %rax
	movl	4(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_CSI_CH_F1_BUFA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r14d, %edx
	sarl	$2, %edx
	callq	_regmap_write
	movq	(%rbx), %rax
LBB0_2:
	movl	8(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_3
## %bb.4:
	movl	8(%rbx), %edi
	movq	_CSI_CH_F2_BUFA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r14d, %edx
	sarl	$2, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSI_CH_F0_BUFA_REG,4,2         ## @CSI_CH_F0_BUFA_REG
	.comm	_CSI_CH_F1_BUFA_REG,4,2         ## @CSI_CH_F1_BUFA_REG
	.comm	_CSI_CH_F2_BUFA_REG,4,2         ## @CSI_CH_F2_BUFA_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun6i_csi_update_buf_addr      ; -- Begin function sun6i_csi_update_buf_addr
	.p2align	2
_sun6i_csi_update_buf_addr:             ; @sun6i_csi_update_buf_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_sun6i_csi_to_dev
	mov	x20, x0
Lloh0:
	adrp	x8, _CSI_CH_F0_BUFA_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSI_CH_F0_BUFA_REG@GOTPAGEOFF]
	ldr	w0, [x0, #8]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8]
	add	w8, w8, w19
	asr	w2, w8, #2
	bl	_regmap_write
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	cmn	w9, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _CSI_CH_F1_BUFA_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSI_CH_F1_BUFA_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w9, w19
	asr	w2, w8, #2
	bl	_regmap_write
	ldr	x8, [x20]
LBB0_2:
	ldr	w8, [x8, #8]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x9, _CSI_CH_F2_BUFA_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSI_CH_F2_BUFA_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	w8, w8, w19
	asr	w2, w8, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_write
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CSI_CH_F0_BUFA_REG,4,2         ; @CSI_CH_F0_BUFA_REG
	.comm	_CSI_CH_F1_BUFA_REG,4,2         ; @CSI_CH_F1_BUFA_REG
	.comm	_CSI_CH_F2_BUFA_REG,4,2         ; @CSI_CH_F2_BUFA_REG
.subsections_via_symbols
