	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tea5764_set_freq
_tea5764_set_freq:                      ## @tea5764_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
	movq	_TEA5764_TNCTRL_HLSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
                                        ## kill: def $esi killed $esi def $rsi
	leal	225000(%rsi), %ecx
	addl	$-225000, %esi                  ## imm = 0xFFFC9118
	testl	%eax, %eax
	cmovnel	%ecx, %esi
	leal	8191(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$13, %eax
	movl	%eax, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEA5764_TNCTRL_HLSI,4,2        ## @TEA5764_TNCTRL_HLSI
	.no_dead_strip	_tea5764_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tea5764_set_freq
_tea5764_set_freq:                      ; @tea5764_set_freq
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TEA5764_TNCTRL_HLSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEA5764_TNCTRL_HLSI@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #37144
	movk	w8, #65532, lsl #16
	cneg	w8, w8, ne
	mov	w9, #8191
	add	w8, w8, w1
	add	w9, w8, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #13
	str	w8, [x0, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TEA5764_TNCTRL_HLSI,4,2        ; @TEA5764_TNCTRL_HLSI
	.no_dead_strip	_tea5764_set_freq
.subsections_via_symbols
