	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_modems
_print_modems:                          ## @print_modems
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_TIOCMGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_4:
	movq	_chan_name@GOTPCREL(%rip), %r9
	movl	-12(%rbp), %eax
	movq	_TIOCM_LE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leaq	L_.str.4(%rip), %r10
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rdx
	cmoveq	%r10, %rdx
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	%rbx, %rcx
	cmoveq	%r10, %rcx
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	movq	%rbx, %r8
	cmoveq	%r10, %r8
	movq	(%r9), %rsi
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%eax, %edi
	movq	%rbx, %r9
	cmoveq	%r10, %r9
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%eax, %edi
	movq	%rbx, %r11
	cmoveq	%r10, %r11
	movq	_TIOCM_CD@GOTPCREL(%rip), %rdi
	andl	(%rdi), %eax
	cmoveq	%r10, %rbx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	callq	_printf
	addq	$16, %rsp
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCMGET,4,2                   ## @TIOCMGET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getting modem status"

L_.str.2:                               ## @.str.2
	.asciz	"%s\t%s\t%s\t%s\t%s\t%s\t%s\n"

	.comm	_chan_name,8,3                  ## @chan_name
	.comm	_TIOCM_LE,4,2                   ## @TIOCM_LE
L_.str.3:                               ## @.str.3
	.asciz	"On"

L_.str.4:                               ## @.str.4
	.asciz	"-"

	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_TIOCM_CTS,4,2                  ## @TIOCM_CTS
	.comm	_TIOCM_CD,4,2                   ## @TIOCM_CD
L_str:                                  ## @str
	.asciz	"Channel\tLE\tDTR\tDSR\tRTS\tCTS\tCD"

	.no_dead_strip	_print_modems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_modems
_print_modems:                          ; @print_modems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
Lloh0:
	adrp	x8, _TIOCMGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIOCMGET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #20
	bl	_ioctl
	tbnz	x0, #63, LBB0_5
; %bb.1:
	cbz	w19, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_3:
Lloh5:
	adrp	x8, _chan_name@GOTPAGE
Lloh6:
	ldr	x8, [x8, _chan_name@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldur	w9, [x29, #-20]
Lloh8:
	adrp	x10, _TIOCM_LE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TIOCM_LE@GOTPAGEOFF]
Lloh10:
	adrp	x11, l_.str.3@PAGE
Lloh11:
	add	x11, x11, l_.str.3@PAGEOFF
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x12, l_.str.4@PAGE
Lloh14:
	add	x12, x12, l_.str.4@PAGEOFF
	tst	w10, w9
Lloh15:
	adrp	x10, _TIOCM_DTR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TIOCM_DTR@GOTPAGEOFF]
	csel	x13, x12, x11, eq
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x10, x12, x11, eq
Lloh18:
	adrp	x14, _TIOCM_DSR@GOTPAGE
Lloh19:
	ldr	x14, [x14, _TIOCM_DSR@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
	tst	w14, w9
	csel	x14, x12, x11, eq
Lloh21:
	adrp	x15, _TIOCM_RTS@GOTPAGE
Lloh22:
	ldr	x15, [x15, _TIOCM_RTS@GOTPAGEOFF]
Lloh23:
	ldr	w15, [x15]
	tst	w15, w9
	csel	x15, x12, x11, eq
Lloh24:
	adrp	x16, _TIOCM_CTS@GOTPAGE
Lloh25:
	ldr	x16, [x16, _TIOCM_CTS@GOTPAGEOFF]
Lloh26:
	ldr	w16, [x16]
	tst	w16, w9
	csel	x16, x12, x11, eq
Lloh27:
	adrp	x17, _TIOCM_CD@GOTPAGE
Lloh28:
	ldr	x17, [x17, _TIOCM_CD@GOTPAGEOFF]
Lloh29:
	ldr	w17, [x17]
	tst	w17, w9
	csel	x9, x12, x11, eq
	stp	x16, x9, [sp, #40]
	stp	x14, x15, [sp, #24]
	stp	x13, x10, [sp, #8]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	str	x8, [sp]
	bl	_printf
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCMGET,4,2                   ; @TIOCMGET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getting modem status"

l_.str.2:                               ; @.str.2
	.asciz	"%s\t%s\t%s\t%s\t%s\t%s\t%s\n"

	.comm	_chan_name,8,3                  ; @chan_name
	.comm	_TIOCM_LE,4,2                   ; @TIOCM_LE
l_.str.3:                               ; @.str.3
	.asciz	"On"

l_.str.4:                               ; @.str.4
	.asciz	"-"

	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_TIOCM_CTS,4,2                  ; @TIOCM_CTS
	.comm	_TIOCM_CD,4,2                   ; @TIOCM_CD
l_str:                                  ; @str
	.asciz	"Channel\tLE\tDTR\tDSR\tRTS\tCTS\tCD"

	.no_dead_strip	_print_modems
.subsections_via_symbols
