	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl172_timing_prop
_pl172_timing_prop:                     ## @pl172_timing_prop
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_amba_get_drvdata
	movq	%rax, %r14
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	(%r14), %edi
	imull	-52(%rbp), %edi
	movq	_NSEC_PER_MSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	subl	%r15d, %eax
	js	LBB0_2
## %bb.5:
	cmpl	%ebx, %eax
	jle	LBB0_3
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	movl	4(%r14), %esi
	addl	%r12d, %esi
	movl	%eax, %edi
	callq	_writel
LBB0_4:
	movslq	%r15d, %rbx
	addl	4(%r14), %r12d
	movl	%r12d, %edi
	callq	_readl
	addq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_dev_dbg
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSEC_PER_MSEC,4,2              ## @NSEC_PER_MSEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s timing too tight\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s: %u cycle(s)\n"

	.no_dead_strip	_pl172_timing_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl172_timing_prop
_pl172_timing_prop:                     ; @pl172_timing_prop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x25, x1
	mov	x20, x0
	bl	_amba_get_drvdata
	mov	x23, x0
	add	x2, sp, #12
	mov	x0, x25
	mov	x1, x19
	bl	_of_property_read_u32
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	mul	w0, w9, w8
Lloh0:
	adrp	x8, _NSEC_PER_MSEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSEC_PER_MSEC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	subs	w0, w0, w21
	b.mi	LBB0_4
; %bb.2:
	cmp	w0, w24
	b.le	LBB0_5
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldr	w8, [x23, #4]
	add	w1, w8, w22
	bl	_writel
LBB0_6:
	ldr	w8, [x23, #4]
	add	w0, w8, w22
	bl	_readl
	add	x3, x0, w21, sxtw
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_dbg
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NSEC_PER_MSEC,4,2              ; @NSEC_PER_MSEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s timing too tight\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s: %u cycle(s)\n"

	.no_dead_strip	_pl172_timing_prop
.subsections_via_symbols
