	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function am654_hbmc_calibrate
_am654_hbmc_calibrate:                  ## @am654_hbmc_calibrate
	.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
	movq	%rdi, %r14
	movq	_AM654_HBMC_CALIB_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$1, -48(%rbp)
	movq	_CFI_DEVICETYPE_X16@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, -44(%rbp)
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	movl	$240, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_cfi_send_gen_cmd
	movl	-44(%rbp), %r9d
	movq	$0, (%rsp)
	movl	$152, %edi
	movl	$85, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_cfi_send_gen_cmd
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	decl	%r12d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_cfi_qry_present
	movl	%eax, %r13d
	incl	%ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	subl	$1, %r12d
	setb	%al
	cmpl	$5, %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%al, %al
	je	LBB0_3
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $r13d
LBB0_5:
	leaq	-48(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_cfi_qry_mode_off
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AM654_HBMC_CALIB_COUNT,4,2     ## @AM654_HBMC_CALIB_COUNT
	.comm	_CFI_DEVICETYPE_X16,4,2         ## @CFI_DEVICETYPE_X16
	.no_dead_strip	_am654_hbmc_calibrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function am654_hbmc_calibrate
_am654_hbmc_calibrate:                  ; @am654_hbmc_calibrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AM654_HBMC_CALIB_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AM654_HBMC_CALIB_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w8, #1
Lloh3:
	adrp	x9, _CFI_DEVICETYPE_X16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CFI_DEVICETYPE_X16@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x9]
	stp	w8, w5, [sp, #8]
	add	x4, sp, #8
	mov	w0, #240
	mov	w1, #0
	mov	w2, #0
	mov	x3, x19
	mov	x6, #0
	bl	_cfi_send_gen_cmd
	ldr	w5, [sp, #12]
	add	x4, sp, #8
	mov	w0, #152
	mov	w1, #85
	mov	w2, #0
	mov	x3, x19
	mov	x6, #0
	bl	_cfi_send_gen_cmd
	cbz	w20, LBB0_4
; %bb.1:
	mov	w21, #0
	sub	w22, w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_cfi_qry_present
	cmp	w0, #0
	csinc	w21, wzr, w21, eq
	cmp	w21, #5
	ccmp	w22, #0, #4, ne
	sub	w22, w22, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x20, x0
	b	LBB0_5
LBB0_4:
                                        ; implicit-def: $w20
LBB0_5:
	add	x2, sp, #8
	mov	w0, #0
	mov	x1, x19
	bl	_cfi_qry_mode_off
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AM654_HBMC_CALIB_COUNT,4,2     ; @AM654_HBMC_CALIB_COUNT
	.comm	_CFI_DEVICETYPE_X16,4,2         ; @CFI_DEVICETYPE_X16
	.no_dead_strip	_am654_hbmc_calibrate
.subsections_via_symbols
