	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_freq
_set_freq:                              ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movl	%esi, %edi
	callq	_FREQ2BITS
	movl	%eax, %r12d
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_outbit
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$32768, %edi                    ## imm = 0x8000
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$16384, %edi                    ## imm = 0x4000
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$8192, %edi                     ## imm = 0x2000
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$4096, %edi                     ## imm = 0x1000
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$2048, %edi                     ## imm = 0x800
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$1024, %edi                     ## imm = 0x400
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$512, %edi                      ## imm = 0x200
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$256, %edi                      ## imm = 0x100
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$128, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$64, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$32, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$16, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$8, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$4, %edi
	movl	%ebx, %esi
	callq	_outbit
	movl	%r12d, %edi
	andl	$2, %edi
	movl	%ebx, %esi
	callq	_outbit
	andl	$1, %r12d
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_outbit
	movslq	%r14d, %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$42, %rcx
	addl	%edx, %ecx
	imull	$16000, %ecx, %edx              ## imm = 0x3E80
	subl	%edx, %eax
	cwtl
	imull	$26215, %eax, %r8d              ## imm = 0x6667
	movl	%r8d, %eax
	shrl	$31, %eax
	sarl	$22, %r8d
	addl	%eax, %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dprintk
	movq	%r15, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_turn_power                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio freq set to %d.%02d MHz\n"

	.no_dead_strip	_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_freq
_set_freq:                              ; @set_freq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
	mov	x0, x1
	bl	_FREQ2BITS
	mov	x22, x0
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	mov	w0, #1
	mov	x1, x21
	bl	_outbit
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	mov	w0, #0
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x8000
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x4000
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x2000
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x1000
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x800
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x400
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x200
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x100
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x80
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x40
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x20
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x10
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x8
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x4
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x2
	mov	x1, x21
	bl	_outbit
	and	w0, w22, #0x1
	mov	x1, x21
	bl	_outbit
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #42
	add	w3, w8, w9
	mov	w8, #16000
	msub	w8, w3, w8, w20
	sxth	w8, w8
	mov	w9, #26215
	mul	w8, w8, w9
	asr	w9, w8, #22
	add	w4, w9, w8, lsr #31
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dprintk
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_turn_power
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio freq set to %d.%02d MHz\n"

	.no_dead_strip	_set_freq
.subsections_via_symbols
