	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_thread                      ## -- Begin function io_thread
	.p2align	4, 0x90
_io_thread:                             ## @io_thread
	.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
	xorl	%eax, %eax
	callq	_ignore_sigwinch_sig
	movq	_kernel_fd@GOTPCREL(%rip), %rbx
	leaq	-48(%rbp), %r13
	movq	_io_count@GOTPCREL(%rip), %r15
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %esi
	negl	%eax
	movq	%r14, %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %edx
	callq	_printk
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_os_read_file
	cmpl	$8, %eax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	(%r15)
	movq	-48(%rbp), %rdi
	callq	_do_io
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_os_write_file
	cmpl	$8, %eax
	je	LBB0_1
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %esi
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	jmp	LBB0_5
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	negl	%eax
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_fd,4,2                  ## @kernel_fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"io_thread - read failed, fd = %d, err = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"io_thread - short read, fd = %d, length = %d\n"

	.comm	_io_count,4,2                   ## @io_count
L_.str.2:                               ## @.str.2
	.asciz	"io_thread - write failed, fd = %d, err = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_thread                      ; -- Begin function io_thread
	.p2align	2
_io_thread:                             ; @io_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	bl	_ignore_sigwinch_sig
Lloh0:
	adrp	x22, _kernel_fd@GOTPAGE
Lloh1:
	ldr	x22, [x22, _kernel_fd@GOTPAGEOFF]
Lloh2:
	adrp	x23, _io_count@GOTPAGE
Lloh3:
	ldr	x23, [x23, _io_count@GOTPAGEOFF]
Lloh4:
	adrp	x19, l_.str.2@PAGE
Lloh5:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	w1, [x22]
	tbnz	w0, #31, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_printk
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x1, sp, #8
	mov	w2, #8
	bl	_os_read_file
	cmp	w0, #8
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	x0, [sp, #8]
	bl	_do_io
	ldr	w0, [x22]
	add	x1, sp, #8
	mov	w2, #8
	bl	_os_write_file
	cmp	w0, #8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
	neg	w2, w0
	mov	x0, x19
	bl	_printk
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	neg	w2, w2
	mov	x0, x20
	bl	_printk
	b	LBB0_3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_fd,4,2                  ; @kernel_fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"io_thread - read failed, fd = %d, err = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"io_thread - short read, fd = %d, length = %d\n"

	.comm	_io_count,4,2                   ; @io_count
l_.str.2:                               ; @.str.2
	.asciz	"io_thread - write failed, fd = %d, err = %d\n"

.subsections_via_symbols
