	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf4371_setup
_adf4371_setup:                         ## @adf4371_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	24(%rdi), %ebx
	xorl	%edi, %edi
	callq	_ADF4371_REG
	movq	_ADF4371_RESET_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movl	24(%r15), %r14d
	movq	_adf4371_reg_defaults@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_multi_reg_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	32(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_device_property_read_bool
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	24(%r15), %r14d
	movl	$37, %edi
	callq	_ADF4371_REG
	movl	%eax, %r12d
	movq	_ADF4371_MUTE_LD_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_ADF4371_MUTE_LD
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_10
LBB0_4:
	movl	24(%r15), %r14d
	xorl	%edi, %edi
	callq	_ADF4371_REG
	movl	%eax, %r12d
	movq	_ADF4371_ADDR_ASC_MSK@GOTPCREL(%rip), %rax
	movq	_ADF4371_ADDR_ASC_R_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movl	$1, %edi
	callq	_ADF4371_ADDR_ASC
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_ADF4371_ADDR_ASC_R
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	4(%r15), %esi
	movl	8(%r15), %ecx
	movq	_ADF4371_MAX_FREQ_PFD@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	incl	%esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, (%r15)
	cmpl	(%rdi), %eax
	jg	LBB0_6
## %bb.7:
	movl	%esi, 4(%r15)
	movl	%eax, %edi
	movl	$2400000, %esi                  ## imm = 0x249F00
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	movl	(%r15), %edi
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_DIV_ROUND_CLOSEST
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	$2, %edx
	movl	$1, %edi
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incl	%edi
	cmpl	$1024, %edi                     ## imm = 0x400
	cmovael	%edx, %edi
	sbbl	$-1, %ebx
	movl	%ebx, %esi
	shll	$10, %esi
	addl	%edi, %esi
	cmpl	%ecx, %esi
	jbe	LBB0_8
## %bb.9:
	imull	$50, %eax, %eax
	movl	$2048, %ecx                     ## imm = 0x800
	subl	%edi, %ecx
	orl	$1, %eax
	cmpl	%eax, %ecx
	cmoval	%ecx, %eax
	leal	(%rdi,%rax), %r12d
	addl	$-1025, %r12d                   ## imm = 0xFBFF
	shrl	$10, %r12d
	addl	$2, %r12d
	movq	16(%r15), %rax
	movl	%r14d, (%rax)
	movzbl	%dil, %ecx
	movl	%ecx, 4(%rax)
	shrl	$8, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ADF4371_TIMEOUT
	orl	$4, %eax
	movq	16(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	%ebx, 12(%rcx)
	movl	%r12d, %edi
	callq	_ADF4371_VCO_ALC_TOUT
	movq	16(%r15), %rcx
	movl	%eax, 16(%rcx)
	movl	24(%r15), %ebx
	movl	$48, %edi
	callq	_ADF4371_REG
	movq	16(%r15), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$5, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_bulk_write              ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADF4371_RESET_CMD,4,2          ## @ADF4371_RESET_CMD
	.comm	_adf4371_reg_defaults,4,2       ## @adf4371_reg_defaults
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adi,mute-till-lock-en"

	.comm	_ADF4371_MUTE_LD_MSK,4,2        ## @ADF4371_MUTE_LD_MSK
	.comm	_ADF4371_ADDR_ASC_MSK,4,2       ## @ADF4371_ADDR_ASC_MSK
	.comm	_ADF4371_ADDR_ASC_R_MSK,4,2     ## @ADF4371_ADDR_ASC_R_MSK
	.comm	_ADF4371_MAX_FREQ_PFD,4,2       ## @ADF4371_MAX_FREQ_PFD
	.no_dead_strip	_adf4371_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf4371_setup
_adf4371_setup:                         ; @adf4371_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w20, [x0, #24]
	mov	w0, #0
	bl	_ADF4371_REG
	mov	x1, x0
Lloh0:
	adrp	x8, _ADF4371_RESET_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADF4371_RESET_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_regmap_write
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	w20, [x19, #24]
Lloh3:
	adrp	x8, _adf4371_reg_defaults@GOTPAGE
Lloh4:
	ldr	x8, [x8, _adf4371_reg_defaults@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_multi_reg_write
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	x0, [x19, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_property_read_bool
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w20, [x19, #24]
	mov	w0, #37
	bl	_ADF4371_REG
	mov	x21, x0
Lloh8:
	adrp	x8, _ADF4371_MUTE_LD_MSK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADF4371_MUTE_LD_MSK@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	w0, #1
	bl	_ADF4371_MUTE_LD
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_10
LBB0_4:
	ldr	w20, [x19, #24]
	mov	w0, #0
	bl	_ADF4371_REG
	mov	x21, x0
Lloh11:
	adrp	x8, _ADF4371_ADDR_ASC_MSK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADF4371_ADDR_ASC_MSK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ADF4371_ADDR_ASC_R_MSK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ADF4371_ADDR_ASC_R_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	w0, #1
	bl	_ADF4371_ADDR_ASC
	mov	x23, x0
	mov	w0, #1
	bl	_ADF4371_ADDR_ASC_R
	orr	w3, w0, w23
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldp	w8, w9, [x19, #4]
Lloh17:
	adrp	x10, _ADF4371_MAX_FREQ_PFD@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ADF4371_MAX_FREQ_PFD@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	sdiv	w0, w9, w8
	str	w0, [x19]
	ldr	w11, [x10]
	cmp	w0, w11
	b.gt	LBB0_6
; %bb.7:
	str	w8, [x19, #4]
	mov	w1, #40704
	movk	w1, #36, lsl #16
	bl	_DIV_ROUND_UP
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_DIV_ROUND_CLOSEST
	add	w8, w0, w0, lsl #2
	lsl	w9, w8, #2
	mov	w10, #2
	mov	w8, #1
	mov	w22, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w8, #1
	cmp	w11, #1023
	csinc	w8, w10, w8, hi
	cinc	w22, w22, hi
	add	w11, w8, w22, lsl #10
	cmp	w11, w9
	b.ls	LBB0_8
; %bb.9:
	mov	w9, #50
	mul	w9, w0, w9
	mov	w10, #2048
	orr	w9, w9, #0x1
	sub	w10, w10, w8
	cmp	w10, w9
	csel	w9, w10, w9, hi
	add	w9, w8, w9
	sub	w9, w9, #1025
	lsr	w9, w9, #10
	add	w21, w9, #2
	ldr	x9, [x19, #16]
	and	w10, w8, #0xff
	stp	w20, w10, [x9]
	lsr	w0, w8, #8
	bl	_ADF4371_TIMEOUT
	ldr	x8, [x19, #16]
	orr	w9, w0, #0x4
	stp	w9, w22, [x8, #8]
	mov	x0, x21
	bl	_ADF4371_VCO_ALC_TOUT
	ldr	x8, [x19, #16]
	str	w0, [x8, #16]
	ldr	w20, [x19, #24]
	mov	w0, #48
	bl	_ADF4371_REG
	mov	x1, x0
	ldr	x2, [x19, #16]
	mov	x0, x20
	mov	w3, #5
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_regmap_bulk_write
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ADF4371_RESET_CMD,4,2          ; @ADF4371_RESET_CMD
	.comm	_adf4371_reg_defaults,4,2       ; @adf4371_reg_defaults
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adi,mute-till-lock-en"

	.comm	_ADF4371_MUTE_LD_MSK,4,2        ; @ADF4371_MUTE_LD_MSK
	.comm	_ADF4371_ADDR_ASC_MSK,4,2       ; @ADF4371_ADDR_ASC_MSK
	.comm	_ADF4371_ADDR_ASC_R_MSK,4,2     ; @ADF4371_ADDR_ASC_R_MSK
	.comm	_ADF4371_MAX_FREQ_PFD,4,2       ; @ADF4371_MAX_FREQ_PFD
	.no_dead_strip	_adf4371_setup
.subsections_via_symbols
