	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aemif_get_hw_params
_aemif_get_hw_params:                   ## @aemif_get_hw_params
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_platform_get_drvdata
	movq	16(%rax), %r15
	movslq	%ebx, %rcx
	movq	(%rax), %r14
	movq	_A1CR_OFFSET@GOTPCREL(%rip), %rdx
	leaq	(%rcx,%rcx,8), %r12
	movl	(%r15,%r12,8), %ecx
	subl	8(%rax), %ecx
	movl	12(%rax), %eax
	addl	(%rdx), %eax
	leal	(%rax,%rcx,4), %edi
	callq	_readl
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TA_VAL
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_aemif_cycles_to_nsec
	movq	%rax, 64(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_RHOLD_VAL
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_aemif_cycles_to_nsec
	movq	%rax, 56(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_RSTROBE_VAL
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_aemif_cycles_to_nsec
	movq	%rax, 48(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_RSETUP_VAL
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_aemif_cycles_to_nsec
	movq	%rax, 40(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_WHOLD_VAL
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_aemif_cycles_to_nsec
	movq	%rax, 32(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_WSTROBE_VAL
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_aemif_cycles_to_nsec
	movq	%rax, 24(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_WSETUP_VAL
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_aemif_cycles_to_nsec
	movq	%rax, 16(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_EW_VAL
	movl	%eax, 12(%r15,%r12,8)
	movl	%ebx, %edi
	callq	_SS_VAL
	movl	%eax, 8(%r15,%r12,8)
	movq	_ASIZE_MAX@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, 4(%r15,%r12,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A1CR_OFFSET,4,2                ## @A1CR_OFFSET
	.comm	_ASIZE_MAX,4,2                  ## @ASIZE_MAX
	.no_dead_strip	_aemif_get_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aemif_get_hw_params
_aemif_get_hw_params:                   ; @aemif_get_hw_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	bl	_platform_get_drvdata
	ldr	x8, [x0, #16]
	ldr	x20, [x0]
Lloh0:
	adrp	x9, _A1CR_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _A1CR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #72
	smaddl	x21, w19, w10, x8
	ldr	w8, [x21]
	ldp	w10, w11, [x0, #8]
	sub	w8, w8, w10
	add	w9, w11, w9
	add	w0, w9, w8, lsl #2
	bl	_readl
	mov	x19, x0
	bl	_TA_VAL
	mov	x1, x20
	bl	_aemif_cycles_to_nsec
	str	x0, [x21, #64]
	mov	x0, x19
	bl	_RHOLD_VAL
	mov	x1, x20
	bl	_aemif_cycles_to_nsec
	str	x0, [x21, #56]
	mov	x0, x19
	bl	_RSTROBE_VAL
	mov	x1, x20
	bl	_aemif_cycles_to_nsec
	str	x0, [x21, #48]
	mov	x0, x19
	bl	_RSETUP_VAL
	mov	x1, x20
	bl	_aemif_cycles_to_nsec
	str	x0, [x21, #40]
	mov	x0, x19
	bl	_WHOLD_VAL
	mov	x1, x20
	bl	_aemif_cycles_to_nsec
	str	x0, [x21, #32]
	mov	x0, x19
	bl	_WSTROBE_VAL
	mov	x1, x20
	bl	_aemif_cycles_to_nsec
	str	x0, [x21, #24]
	mov	x0, x19
	bl	_WSETUP_VAL
	mov	x1, x20
	bl	_aemif_cycles_to_nsec
	str	x0, [x21, #16]
	mov	x0, x19
	bl	_EW_VAL
	str	w0, [x21, #12]
	mov	x0, x19
	bl	_SS_VAL
	str	w0, [x21, #8]
Lloh3:
	adrp	x8, _ASIZE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w19
	str	w8, [x21, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_A1CR_OFFSET,4,2                ; @A1CR_OFFSET
	.comm	_ASIZE_MAX,4,2                  ; @ASIZE_MAX
	.no_dead_strip	_aemif_get_hw_params
.subsections_via_symbols
