	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_pll_freq_register
_pcxhr_pll_freq_register:               ## @pcxhr_pll_freq_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	leal	-110001(%rdi), %eax
	cmpl	$-103102, %eax                  ## imm = 0xFFFE6D42
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	jmp	LBB0_12
LBB0_2:
	movq	%rdx, %rcx
	movl	$56448000, %eax                 ## imm = 0x35D5400
	xorl	%edx, %edx
	divl	%edi
	decl	%eax
	movl	%eax, %edi
	shrl	%edi
	cmpl	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_5
## %bb.3:
	leal	2048(%rdi), %eax
	jmp	LBB0_4
LBB0_5:
	cmpl	$2047, %eax                     ## imm = 0x7FF
	ja	LBB0_7
## %bb.6:
	movl	%edi, %eax
	andl	$511, %eax                      ## imm = 0x1FF
LBB0_4:
	movl	%eax, (%rsi)
	testq	%rcx, %rcx
	je	LBB0_11
LBB0_9:
	incl	%edi
	xorl	%esi, %esi
	movl	$28224000, %eax                 ## imm = 0x1AEAA00
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_7:
	cmpl	$4095, %eax                     ## imm = 0xFFF
	ja	LBB0_10
## %bb.8:
	shrl	$2, %eax
	andl	$511, %eax                      ## imm = 0x1FF
	orl	$512, %eax                      ## imm = 0x200
	movl	%eax, (%rsi)
	andl	$-2, %edi
	testq	%rcx, %rcx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_10:
	shrl	$3, %eax
	andl	$511, %eax                      ## imm = 0x1FF
	orl	$1024, %eax                     ## imm = 0x400
	movl	%eax, (%rsi)
	andl	$-4, %edi
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_11:
	xorl	%esi, %esi
LBB0_12:
	movl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pcxhr_pll_freq_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_pll_freq_register
_pcxhr_pll_freq_register:               ; @pcxhr_pll_freq_register
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #26, lsl #12            ; =106496
	sub	w8, w8, #3505
	mov	w9, #27970
	movk	w9, #65534, lsl #16
	cmp	w8, w9
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	mov	w8, #21504
	movk	w8, #861, lsl #16
	udiv	w8, w8, w0
	sub	w9, w8, #1
	lsr	w8, w9, #1
	cmp	w9, #1023
	b.hi	LBB0_4
; %bb.3:
	add	w9, w8, #2048
	b	LBB0_6
LBB0_4:
	cmp	w9, #2047
	b.hi	LBB0_9
; %bb.5:
	ubfx	w9, w9, #1, #9
LBB0_6:
	str	w9, [x1]
	mov	w0, #0
	cbz	x2, LBB0_8
LBB0_7:
	add	w8, w8, #1
	mov	w9, #43520
	movk	w9, #430, lsl #16
	udiv	w8, w9, w8
	str	w8, [x2]
LBB0_8:
	ret
LBB0_9:
	cmp	w9, #4095
	b.hi	LBB0_11
; %bb.10:
	mov	w10, #512
	bfxil	w10, w9, #2, #9
	str	w10, [x1]
	and	w8, w8, #0x7ffffffe
	mov	w0, #0
	cbnz	x2, LBB0_7
	b	LBB0_8
LBB0_11:
	mov	w10, #1024
	bfxil	w10, w9, #3, #9
	str	w10, [x1]
	and	w8, w8, #0x7ffffffc
	mov	w0, #0
	cbnz	x2, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pcxhr_pll_freq_register
.subsections_via_symbols
