	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function icom_freq
LCPI0_0:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_icom_freq
	.p2align	4, 0x90
_icom_freq:                             ## @icom_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PAD@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -44(%rbp)
	movq	_PR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -43(%rbp)
	movb	%al, -42(%rbp)
	movq	_TX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -40(%rbp)
	movq	_V_SFREQ@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -39(%rbp)
	leaq	-38(%rbp), %rdi
	movl	$0, -38(%rbp)
	movq	_FI@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -34(%rbp)
	movb	%al, -33(%rbp)
	movb	%sil, -41(%rbp)
	movq	_IC735@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	sete	%bl
	movl	%ebx, %esi
	xorl	$5, %esi
	mulsd	LCPI0_0(%rip), %xmm0
	callq	_doublefreq
	movl	$12, %r15d
	subl	%ebx, %r15d
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	callq	_write
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_msyslog
	movl	$1, %ecx
	jmp	LBB0_4
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_msyslog
	movl	$-1, %ecx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PAD,1,0                        ## @PAD
	.comm	_PR,1,0                         ## @PR
	.comm	_TX,1,0                         ## @TX
	.comm	_V_SFREQ,1,0                    ## @V_SFREQ
	.comm	_FI,1,0                         ## @FI
	.comm	_IC735,4,2                      ## @IC735
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"icom_freq: write() failed: %m"

L_.str.1:                               ## @.str.1
	.asciz	"icom_freq: only wrote %d of %d bytes."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icom_freq                      ; -- Begin function icom_freq
	.p2align	2
_icom_freq:                             ; @icom_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _PAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAD@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh5:
	adrp	x9, _PR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PR@GOTPAGEOFF]
	strb	w8, [sp, #28]
	ldrb	w8, [x9]
	strb	w8, [sp, #29]
	strb	w8, [sp, #30]
Lloh7:
	adrp	x8, _TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TX@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #32]
Lloh9:
	adrp	x8, _V_SFREQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V_SFREQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #33]
	add	x8, sp, #28
	add	x0, x8, #6
	stur	wzr, [sp, #34]
Lloh11:
	adrp	x8, _FI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FI@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #38]
	strb	w8, [sp, #39]
	strb	w1, [sp, #31]
Lloh13:
	adrp	x8, _IC735@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IC735@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w1
	mov	w8, #4
	cinc	w19, w8, ne
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	mov	x1, x19
	bl	_doublefreq
	add	w19, w19, #7
	add	x1, sp, #28
	mov	x0, x20
	mov	x2, x19
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, w19
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msyslog
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	x0, x19, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_msyslog
	mov	w0, #1
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PAD,1,0                        ; @PAD
	.comm	_PR,1,0                         ; @PR
	.comm	_TX,1,0                         ; @TX
	.comm	_V_SFREQ,1,0                    ; @V_SFREQ
	.comm	_FI,1,0                         ; @FI
	.comm	_IC735,4,2                      ; @IC735
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"icom_freq: write() failed: %m"

l_.str.1:                               ; @.str.1
	.asciz	"icom_freq: only wrote %d of %d bytes."

.subsections_via_symbols
