	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_loop
_do_loop:                               ## @do_loop
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_doexit@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_w_arg@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	cmpl	$128, %edi
	jne	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r14), %edi
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	callq	_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	(%r14), %rdi
	movl	%eax, %esi
	callq	_fix_packets
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_write_packets
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_print_packets
	jmp	LBB0_9
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_doexit,8,3                     ## @doexit
	.comm	_errno,4,2                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read: %s\n"

	.comm	_w_arg,8,3                      ## @w_arg
	.no_dead_strip	_do_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_loop
_do_loop:                               ; @do_loop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x21, _doexit@GOTPAGE
Lloh1:
	ldr	x21, [x21, _doexit@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x22, _errno@GOTPAGE
Lloh3:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x23, _w_arg@GOTPAGE
Lloh5:
	ldr	x23, [x23, _w_arg@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	cmp	w0, #128
	b.ne	LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19]
	ldp	w2, w0, [x19, #8]
	bl	_read
	tbnz	w0, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
	mov	x1, x20
	bl	_fix_packets
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x20
	bl	_write_packets
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
	mov	x1, x20
	bl	_print_packets
	b	LBB0_4
LBB0_10:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	bl	_strerror
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fprintf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_doexit,8,3                     ; @doexit
	.comm	_errno,4,2                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read: %s\n"

	.comm	_w_arg,8,3                      ; @w_arg
	.no_dead_strip	_do_loop
.subsections_via_symbols
