	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sixpack_receive_buf
_sixpack_receive_buf:                   ## @sixpack_receive_buf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.1:
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_sp_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r12
	movq	%r14, -576(%rbp)                ## 8-byte Spill
	cmpl	$512, %r15d                     ## imm = 0x200
	movl	$512, %edx                      ## imm = 0x200
	cmovbl	%r15d, %edx
	leaq	-560(%rbp), %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	%r12, %r13
	addq	$8, %r13
	movl	%r15d, -564(%rbp)               ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rbx
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r15d
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %r14
	cmpb	$0, (%rbx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SIXPF_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	incl	(%rax)
	jmp	LBB0_8
LBB0_9:
	leaq	-560(%rbp), %rsi
	movq	%r12, %rdi
	movl	-564(%rbp), %edx                ## 4-byte Reload
	callq	_sixpack_decode
	movq	%r12, %rdi
	callq	_sp_put
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	callq	_tty_unthrottle
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIXPF_ERROR,4,2                ## @SIXPF_ERROR
	.no_dead_strip	_sixpack_receive_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sixpack_receive_buf
_sixpack_receive_buf:                   ; @sixpack_receive_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #528
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	w3, LBB0_9
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_sp_get
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	mov	w8, #512
	cmp	w20, #512
	csel	w2, w20, w8, lo
	add	x0, sp, #8
	mov	x1, x23
	bl	_memcpy
	add	x23, x21, #8
Lloh3:
	adrp	x24, _SIXPF_ERROR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SIXPF_ERROR@GOTPAGEOFF]
	mov	x25, x20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w25, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w25, #1
	cbz	x22, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x22], #1
	cbz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x23
	bl	_test_and_set_bit
	cbnz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_3
LBB0_8:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_sixpack_decode
	mov	x0, x21
	bl	_sp_put
	mov	x0, x19
	bl	_tty_unthrottle
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SIXPF_ERROR,4,2                ; @SIXPF_ERROR
	.no_dead_strip	_sixpack_receive_buf
.subsections_via_symbols
