	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cobalt_cpld_set_freq           ## -- Begin function cobalt_cpld_set_freq
	.p2align	4, 0x90
_cobalt_cpld_set_freq:                  ## @cobalt_cpld_set_freq
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_multipliers@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	$-1, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$0, -116(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$12, %r14
	cmpq	%rax, %r15
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_multipliers@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi,%r14), %eax
	imull	%ebx, %eax
	movq	_DCO_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DCO_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	shll	$28, %eax
	orl	$19585000, %eax                 ## imm = 0x12AD7E8
	movl	%eax, %edi
	movl	$39170000, %esi                 ## imm = 0x255AFD0
	leaq	-80(%rbp), %rdx
	callq	_div_u64_rem
	movl	-80(%rbp), %eax
	cmpl	%r13d, %eax
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	cmovbl	%r15d, %ecx
	movl	%ecx, -116(%rbp)                ## 4-byte Spill
	cmovbl	%eax, %r13d
	movl	$1, %eax
	cmovbl	%eax, %r12d
	movq	_multipliers@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_2
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.7:
	movq	_multipliers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %r14d
	movl	8(%rax,%rcx,4), %r15d
	decl	%r14d
	movl	(%rax,%rcx,4), %edi
	movl	%ebx, %r12d
	imull	%ebx, %edi
	shll	$28, %edi
	movl	$39170000, %esi                 ## imm = 0x255AFD0
	callq	_div_u64
	movl	%eax, %ebx
	movq	_SI570_CLOCK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_cpld_read
	shll	$5, %r15d
	addl	$-128, %r15d
	sarl	$2, %r14d
	orl	%r15d, %r14d
	movl	%r14d, -80(%rbp)
	movl	%ebx, %eax
	shrl	$24, %eax
	movl	%eax, -72(%rbp)
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -68(%rbp)
	movzbl	%bh, %eax
	movl	%eax, -64(%rbp)
	movzbl	%bl, %eax
	movl	%eax, -60(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rcx
	movl	$1, %edi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_cobalt_dbg
	movl	$-3, %r15d
	movq	-128(%rbp), %r12                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SI570_CLOCK_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	movq	_SI570_REG7@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	-80(%rbp), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movq	_SI570_REG8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-76(%rbp), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movq	_SI570_REG9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-72(%rbp), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movq	_SI570_REG10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movq	_SI570_REG11@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-64(%rbp), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movq	_SI570_REG12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movl	(%rbx), %esi
	movq	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%r14), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	movq	_SI570_REG7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cpld_read
	movl	%eax, -112(%rbp)
	movq	_SI570_REG8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cpld_read
	movl	%eax, -108(%rbp)
	movq	_SI570_REG9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cpld_read
	movl	%eax, -104(%rbp)
	movq	_SI570_REG10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cpld_read
	movl	%eax, -100(%rbp)
	movq	_SI570_REG11@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cpld_read
	movl	%eax, -96(%rbp)
	movq	_SI570_REG12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cpld_read
	movl	%eax, -92(%rbp)
	movl	(%rbx), %esi
	movl	(%r13), %edx
	orl	(%r14), %edx
	movq	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	movl	(%rbx), %esi
	leaq	-112(%rbp), %rbx
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_cpld_write
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	movl	$24, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_cobalt_dbg
	incl	%r15d
	jne	LBB0_8
	jmp	LBB0_14
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	movl	$1, %eax
	cmpl	$-3, %r15d
	je	LBB0_15
## %bb.13:
	negl	%r15d
	movl	%r15d, %r14d
LBB0_14:
	movl	$3, %esi
	subl	%r14d, %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_cobalt_info
	movl	$1, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_multipliers,8,3                ## @multipliers
	.comm	_DCO_MIN,4,2                    ## @DCO_MIN
	.comm	_DCO_MAX,4,2                    ## @DCO_MAX
	.comm	_SI570_CLOCK_CTRL,4,2           ## @SI570_CLOCK_CTRL
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL,4,2 ## @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN,4,2 ## @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u: %6ph\n"

	.comm	_SI570_REG7,4,2                 ## @SI570_REG7
	.comm	_SI570_REG8,4,2                 ## @SI570_REG8
	.comm	_SI570_REG9,4,2                 ## @SI570_REG9
	.comm	_SI570_REG10,4,2                ## @SI570_REG10
	.comm	_SI570_REG11,4,2                ## @SI570_REG11
	.comm	_SI570_REG12,4,2                ## @SI570_REG12
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER,4,2 ## @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER,4,2 ## @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER
L_.str.1:                               ## @.str.1
	.asciz	"retry: %6ph\n"

L_.str.2:                               ## @.str.2
	.asciz	"Needed %d retries\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cobalt_cpld_set_freq
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cobalt_cpld_set_freq
	.p2align	2
_cobalt_cpld_set_freq:                  ; @cobalt_cpld_set_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x21, _multipliers@GOTPAGE
Lloh4:
	ldr	x21, [x21, _multipliers@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_15
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	w23, #0
	mov	w22, #0
	mov	w26, #-1
Lloh5:
	adrp	x27, _DCO_MIN@GOTPAGE
Lloh6:
	ldr	x27, [x27, _DCO_MIN@GOTPAGEOFF]
Lloh7:
	adrp	x28, _DCO_MAX@GOTPAGE
Lloh8:
	ldr	x28, [x28, _DCO_MAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #12
	cmp	x25, w0, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x24]
	mul	w8, w8, w20
	ldr	w9, [x27]
	ldr	w10, [x28]
	cmp	w8, w9
	ccmp	w8, w10, #2, hs
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #55272
	movk	w0, #298, lsl #16
	bfi	w0, w8, #28, #4
	add	x2, sp, #48
	mov	w1, #45008
	movk	w1, #597, lsl #16
	bl	_div_u64_rem
	ldr	w8, [sp, #48]
	cmp	w8, w26
	csel	w22, w25, w22, lo
	csel	w26, w8, w26, lo
	csinc	w23, w23, wzr, hs
	ldr	x0, [x21]
	b	LBB0_2
LBB0_5:
	cbz	w23, LBB0_10
; %bb.6:
	ldr	x8, [x21]
	mov	w9, #12
	umaddl	x8, w22, w9, x8
	ldp	w9, w10, [x8]
	sub	w23, w10, #1
	ldr	w24, [x8, #8]
	mul	w8, w20, w9
	lsl	w0, w8, #28
	mov	w1, #45008
	movk	w1, #597, lsl #16
	bl	_div_u64
	mov	x21, x0
Lloh9:
	adrp	x8, _SI570_CLOCK_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SI570_CLOCK_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cpld_read
	lsl	w8, w24, #5
	sub	w8, w8, #128
	orr	w8, w8, w23, asr #2
	lsr	w9, w21, #24
	str	w8, [sp, #48]
	str	w9, [sp, #56]
	dup.2s	v0, w21
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [sp, #60]
	and	w8, w21, #0xff
	str	w8, [sp, #68]
	add	x8, sp, #48
	stp	x20, x8, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_cobalt_dbg
	mov	w24, #-3
Lloh16:
	adrp	x21, _SI570_CLOCK_CTRL@GOTPAGE
Lloh17:
	ldr	x21, [x21, _SI570_CLOCK_CTRL@GOTPAGEOFF]
Lloh18:
	adrp	x26, _SI570_REG7@GOTPAGE
Lloh19:
	ldr	x26, [x26, _SI570_REG7@GOTPAGEOFF]
Lloh20:
	adrp	x27, _SI570_REG8@GOTPAGE
Lloh21:
	ldr	x27, [x27, _SI570_REG8@GOTPAGEOFF]
Lloh22:
	adrp	x28, _SI570_REG9@GOTPAGE
Lloh23:
	ldr	x28, [x28, _SI570_REG9@GOTPAGEOFF]
Lloh24:
	adrp	x25, _SI570_REG11@GOTPAGE
Lloh25:
	ldr	x25, [x25, _SI570_REG11@GOTPAGEOFF]
Lloh26:
	adrp	x23, _SI570_REG12@GOTPAGE
Lloh27:
	ldr	x23, [x23, _SI570_REG12@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
Lloh28:
	adrp	x8, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x22, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL@GOTPAGE
Lloh32:
	ldr	x22, [x22, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_cpld_write
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	ldr	w1, [x26]
	ldr	w2, [sp, #48]
	mov	x0, x19
	bl	_cpld_write
	ldr	w1, [x27]
	ldr	w2, [sp, #52]
	mov	x0, x19
	bl	_cpld_write
	ldr	w1, [x28]
	ldr	w2, [sp, #56]
	mov	x0, x19
	bl	_cpld_write
Lloh34:
	adrp	x20, _SI570_REG10@GOTPAGE
Lloh35:
	ldr	x20, [x20, _SI570_REG10@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x20]
	ldr	w2, [sp, #60]
	mov	x0, x19
	bl	_cpld_write
	ldr	w1, [x25]
	ldr	w2, [sp, #64]
	mov	x0, x19
	bl	_cpld_write
	ldr	w1, [x23]
	ldr	w2, [sp, #68]
	mov	x0, x19
	bl	_cpld_write
	ldr	w1, [x21]
Lloh37:
	adrp	x22, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN@GOTPAGE
Lloh38:
	ldr	x22, [x22, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh39:
	adrp	x9, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER@GOTPAGE
Lloh40:
	ldr	x9, [x9, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_cpld_write
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	ldr	w1, [x21]
	ldr	w8, [x22]
Lloh42:
	adrp	x20, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL@GOTPAGE
Lloh43:
	ldr	x20, [x20, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_cpld_write
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	ldr	w1, [x26]
	mov	x0, x19
	bl	_cpld_read
	str	w0, [sp, #24]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_cpld_read
	str	w0, [sp, #28]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_cpld_read
	str	w0, [sp, #32]
Lloh44:
	adrp	x8, _SI570_REG10@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SI570_REG10@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cpld_read
	str	w0, [sp, #36]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_cpld_read
	str	w0, [sp, #40]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_cpld_read
	str	w0, [sp, #44]
	ldr	w1, [x21]
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh47:
	adrp	x9, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER@GOTPAGE
Lloh48:
	ldr	x9, [x9, _S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_cpld_write
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_cpld_write
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	add	x0, sp, #24
	add	x1, sp, #48
	mov	w2, #24
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, sp, #24
	str	x8, [sp]
	mov	w0, #1
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_cobalt_dbg
	adds	w24, w24, #1
	b.lo	LBB0_7
; %bb.9:
	mov	w8, #0
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	b	LBB0_15
LBB0_11:
	cmn	w24, #3
	b.eq	LBB0_14
; %bb.12:
	neg	w8, w24
LBB0_13:
	mov	w9, #3
	sub	w1, w9, w8
Lloh52:
	adrp	x0, l_.str.2@PAGE
Lloh53:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_cobalt_info
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldr	x8, [sp, #72]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_multipliers,8,3                ; @multipliers
	.comm	_DCO_MIN,4,2                    ; @DCO_MIN
	.comm	_DCO_MAX,4,2                    ; @DCO_MAX
	.comm	_SI570_CLOCK_CTRL,4,2           ; @SI570_CLOCK_CTRL
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL,4,2 ; @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_FPGA_CTRL
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN,4,2 ; @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u: %6ph\n"

	.comm	_SI570_REG7,4,2                 ; @SI570_REG7
	.comm	_SI570_REG8,4,2                 ; @SI570_REG8
	.comm	_SI570_REG9,4,2                 ; @SI570_REG9
	.comm	_SI570_REG10,4,2                ; @SI570_REG10
	.comm	_SI570_REG11,4,2                ; @SI570_REG11
	.comm	_SI570_REG12,4,2                ; @SI570_REG12
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER,4,2 ; @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_WR_TRIGGER
	.comm	_S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER,4,2 ; @S01755_REG_CLOCK_CTRL_BITMAP_CLKHSMA_RST_TRIGGER
l_.str.1:                               ; @.str.1
	.asciz	"retry: %6ph\n"

l_.str.2:                               ; @.str.2
	.asciz	"Needed %d retries\n"

.subsections_via_symbols
