	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpmux                         ## -- Begin function tcpmux
	.p2align	4, 0x90
_tcpmux:                                ## @tcpmux
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MAX_SERV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_get_line
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	%eax, %eax
	movb	$0, (%r15,%rax)
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_warnx
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	movq	_servtab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	leaq	L_.str.5(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_ISMUX
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:
	movq	%rbx, %rdi
	callq	_ISMUXPLUS
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	leaq	L_.str.4(%rip), %r12
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %r12
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_strwrite
	jmp	LBB0_14
LBB0_16:
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.17:
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ISMUX
	testl	%eax, %eax
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rbx), %r12
	movq	%r12, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_write
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_strwrite
	jmp	LBB0_18
LBB0_22:
	xorl	%ebx, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.15:
	movq	%rbx, %rax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SERV_LEN,4,2               ## @MAX_SERV_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-Error reading service name\r\n"

	.comm	_debug,8,3                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"tcpmux: someone wants %s"

L_.str.2:                               ## @.str.2
	.asciz	"help"

	.comm	_servtab,8,3                    ## @servtab
L_.str.3:                               ## @.str.3
	.asciz	"\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"+Go\r\n"

L_.str.5:                               ## @.str.5
	.asciz	"-Service not available\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpmux                         ; -- Begin function tcpmux
	.p2align	2
_tcpmux:                                ; @tcpmux
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_SERV_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SERV_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	w8, w2, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x1, x21
	bl	_get_line
	tbnz	w0, #31, LBB0_10
; %bb.1:
	strb	wzr, [x21, w0, uxtw]
Lloh8:
	adrp	x8, _debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_warnx
LBB0_3:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
Lloh15:
	adrp	x8, _servtab@GOTPAGE
Lloh16:
	ldr	x8, [x8, _servtab@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
	cbz	w0, LBB0_14
; %bb.4:
Lloh18:
	adrp	x22, l_.str.5@PAGE
Lloh19:
	add	x22, x22, l_.str.5@PAGEOFF
	cbnz	x20, LBB0_6
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ISMUX
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x20]
	mov	x0, x21
	bl	_strcasecmp
	cbnz	w0, LBB0_5
; %bb.8:
	mov	x0, x20
	bl	_ISMUXPLUS
	cbz	x0, LBB0_12
; %bb.9:
Lloh20:
	adrp	x22, l_.str.4@PAGE
Lloh21:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x20, #0
Lloh22:
	adrp	x22, l_.str@PAGE
Lloh23:
	add	x22, x22, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	bl	_strwrite
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.13:
	mov	x0, x20
	sub	sp, x29, #32
	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
	ret
LBB0_14:
	cbz	x20, LBB0_12
; %bb.15:
Lloh27:
	adrp	x21, l_.str.3@PAGE
Lloh28:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_12
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ISMUX
	cbz	w0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x22, [x20]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_write
	mov	x0, x19
	mov	x1, x21
	bl	_strwrite
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SERV_LEN,4,2               ; @MAX_SERV_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-Error reading service name\r\n"

	.comm	_debug,8,3                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"tcpmux: someone wants %s"

l_.str.2:                               ; @.str.2
	.asciz	"help"

	.comm	_servtab,8,3                    ; @servtab
l_.str.3:                               ; @.str.3
	.asciz	"\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"+Go\r\n"

l_.str.5:                               ; @.str.5
	.asciz	"-Service not available\r\n"

.subsections_via_symbols
