	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_systimer_delay
_bcm_systimer_delay:                    ## @bcm_systimer_delay
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_bcm_systimer_tc@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1125899907, %rax, %r14         ## imm = 0x431BDE83
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$50, %r14
	addl	%eax, %r14d
	imull	%edi, %r14d
	movq	_SYSTIMER_CLO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_bcm_systimer_tc_read_4
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	incl	%r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_bcm_systimer_tc_read_4
	cmpl	%ebx, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	setle	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %ebx
	subl	%eax, %r14d
	addl	%ebx, %r14d
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jg	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bcm_systimer_tc,4,2            ## @bcm_systimer_tc
	.comm	_SYSTIMER_CLO,4,2               ## @SYSTIMER_CLO
	.no_dead_strip	_bcm_systimer_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_systimer_delay
_bcm_systimer_delay:                    ; @bcm_systimer_delay
	.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
Lloh0:
	adrp	x8, _bcm_systimer_tc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bcm_systimer_tc@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	mul	w21, w8, w0
Lloh3:
	adrp	x20, _SYSTIMER_CLO@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SYSTIMER_CLO@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_bcm_systimer_tc_read_4
	tbnz	w21, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	add	w21, w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_bcm_systimer_tc_read_4
	cmp	w0, w19
	b.eq	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cinc	w8, w19, le
	sub	w9, w21, w0
	add	w21, w9, w8
	mov	x19, x0
	cmp	w21, #0
	b.gt	LBB0_2
LBB0_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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bcm_systimer_tc,4,2            ; @bcm_systimer_tc
	.comm	_SYSTIMER_CLO,4,2               ; @SYSTIMER_CLO
	.no_dead_strip	_bcm_systimer_delay
.subsections_via_symbols
