	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icom_init                      ## -- Begin function icom_init
	.p2align	4, 0x90
_icom_init:                             ## @icom_init
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_tty_open
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	leaq	-72(%rbp), %rsi
	movl	%eax, %edi
	callq	_tcgetattr
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movq	_IBAUD@GOTPCREL(%rip), %rax
	movq	_CS8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CLOCAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	-64(%rbp), %rax
	movq	_VMIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	_VTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$5, (%rax,%rcx,4)
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_cfsetispeed
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_cfsetospeed
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r12, %rdx
	callq	_tcsetattr
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movl	%ebx, %edi
	callq	_close
	movl	%r12d, (%r15)
LBB0_5:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,4,2                      ## @errno
	.comm	_IBAUD,4,2                      ## @IBAUD
	.comm	_CS8,4,2                        ## @CS8
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_TCSANOW,4,2                    ## @TCSANOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icom_init                      ; -- Begin function icom_init
	.p2align	2
_icom_init:                             ; @icom_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #511
	bl	_tty_open
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_tcgetattr
	tbnz	w0, #31, LBB0_3
; %bb.2:
	str	xzr, [sp, #40]
Lloh3:
	adrp	x8, _IBAUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IBAUD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CS8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CS8@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CLOCAL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CLOCAL@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [sp, #8]
	stp	xzr, xzr, [sp, #24]
	ldr	x8, [sp, #16]
Lloh12:
	adrp	x9, _VMIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
Lloh15:
	adrp	x9, _VTIME@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	mov	w10, #5
	str	w10, [x8, x9, lsl #2]
	add	x0, sp, #8
	mov	x1, x20
	bl	_cfsetispeed
	add	x0, sp, #8
	mov	x1, x20
	bl	_cfsetospeed
Lloh18:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_tcsetattr
	tbz	w0, #31, LBB0_5
LBB0_3:
Lloh21:
	adrp	x20, _errno@GOTPAGE
Lloh22:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x19
	bl	_close
	str	w21, [x20]
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,4,2                      ; @errno
	.comm	_IBAUD,4,2                      ; @IBAUD
	.comm	_CS8,4,2                        ; @CS8
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_TCSANOW,4,2                    ; @TCSANOW
.subsections_via_symbols
