	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_rtc_start_transfer
_aml8726_rtc_start_transfer:            ## @aml8726_rtc_start_transfer
	.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, %r13
	movq	_AML_RTC_0_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movl	%r14d, %esi
	callq	_CSR_READ_4
	movq	_AML_RTC_SCLK@GOTPCREL(%rip), %rcx
	movq	_AML_RTC_SEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_AML_RTC_SDI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_CSR_WRITE_4
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_CSR_BARRIER
	movl	$-40, %ebx
	movq	_AML_RTC_1_REG@GOTPCREL(%rip), %r14
	movq	_AML_RTC_SRDY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_DELAY
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_CSR_READ_4
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	jne	LBB0_2
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_3:
	movl	(%r15), %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_CSR_READ_4
	movq	_AML_RTC_SEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_CSR_WRITE_4
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AML_RTC_0_REG,4,2              ## @AML_RTC_0_REG
	.comm	_AML_RTC_SCLK,4,2               ## @AML_RTC_SCLK
	.comm	_AML_RTC_SEN,4,2                ## @AML_RTC_SEN
	.comm	_AML_RTC_SDI,4,2                ## @AML_RTC_SDI
	.comm	_AML_RTC_1_REG,4,2              ## @AML_RTC_1_REG
	.comm	_AML_RTC_SRDY,4,2               ## @AML_RTC_SRDY
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_aml8726_rtc_start_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_rtc_start_transfer
_aml8726_rtc_start_transfer:            ; @aml8726_rtc_start_transfer
	.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
Lloh0:
	adrp	x21, _AML_RTC_0_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AML_RTC_0_REG@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x1, x20
	bl	_CSR_READ_4
Lloh2:
	adrp	x8, _AML_RTC_SCLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AML_RTC_SCLK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _AML_RTC_SEN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AML_RTC_SEN@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _AML_RTC_SDI@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AML_RTC_SDI@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_CSR_WRITE_4
	ldr	w1, [x21]
	mov	x0, x19
	bl	_CSR_BARRIER
	mov	w20, #-40
Lloh10:
	adrp	x23, _AML_RTC_1_REG@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AML_RTC_1_REG@GOTPAGEOFF]
Lloh12:
	adrp	x24, _AML_RTC_SRDY@GOTPAGE
Lloh13:
	ldr	x24, [x24, _AML_RTC_SRDY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_DELAY
	ldr	w1, [x23]
	mov	x0, x19
	bl	_CSR_READ_4
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adds	w20, w20, #1
	b.lo	LBB0_1
; %bb.3:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w20, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_CSR_READ_4
	ldr	w8, [x22]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_CSR_WRITE_4
	mov	w0, #0
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AML_RTC_0_REG,4,2              ; @AML_RTC_0_REG
	.comm	_AML_RTC_SCLK,4,2               ; @AML_RTC_SCLK
	.comm	_AML_RTC_SEN,4,2                ; @AML_RTC_SEN
	.comm	_AML_RTC_SDI,4,2                ; @AML_RTC_SDI
	.comm	_AML_RTC_1_REG,4,2              ; @AML_RTC_1_REG
	.comm	_AML_RTC_SRDY,4,2               ; @AML_RTC_SRDY
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_aml8726_rtc_start_transfer
.subsections_via_symbols
