	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readit
_readit:                                ## @readit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	__PATH_DEVPCI@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %r13
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	cmpb	$58, (%rdi)
	jne	LBB0_4
## %bb.11:
	incq	%rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_getsel
	movl	%eax, -48(%rbp)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r13
	jle	LBB0_5
## %bb.12:
	movl	$16, %eax
	xorl	%edx, %edx
	idivl	%r15d
	movl	%eax, %r14d
	movl	$1, %ebx
LBB0_13:
	movl	%ebx, %eax
	cltd
	idivl	%r14d
	cmpl	$1, %edx
	je	LBB0_15
## %bb.14:
	movl	$10, %edi
	callq	_putchar
LBB0_15:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_getsel
	movl	%eax, -48(%rbp)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
LBB0_5:
	movslq	%r15d, %r12
	movl	$1, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_putchar
	incl	%ebx
	addq	%r12, %r13
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	jg	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_readone
	testb	$7, %bl
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$32, %edi
	callq	_putchar
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$16, %eax
	xorl	%edx, %edx
	idivl	%r15d
	movl	%eax, %r14d
	movl	%ebx, %eax
	cltd
	idivl	%r14d
	movl	$10, %edi
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$32, %edi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_DEVPCI,4,2               ## @_PATH_DEVPCI
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_readit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readit
_readit:                                ; @readit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x22, __PATH_DEVPCI@GOTPAGE
Lloh1:
	ldr	x22, [x22, __PATH_DEVPCI@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w2, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_strtol
	mov	x21, x0
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.3:
	ldrb	w9, [x8]
	cmp	w9, #58
	b.ne	LBB0_9
; %bb.4:
	add	x0, x8, #1
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x22, x0
	mov	x0, x23
	bl	_getsel
	str	w0, [sp]
	cmp	x21, x22
	b.le	LBB0_10
; %bb.5:
	mov	w8, #16
	mov	w23, #1
	sdiv	w24, w8, w20
LBB0_6:
	sdiv	w8, w23, w24
	msub	w8, w8, w24, w23
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.7:
	mov	w0, #10
	bl	_putchar
LBB0_8:
	mov	x0, x19
	bl	_close
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	mov	x0, x23
	bl	_getsel
	str	w0, [sp]
	mov	x22, x21
LBB0_10:
	sxtw	x25, w20
	mov	w23, #1
	mov	w26, #32
	mov	w8, #16
	mov	w27, #10
	sdiv	w24, w8, w20
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sdiv	w8, w23, w24
	msub	w8, w8, w24, w23
	cmp	w8, #0
	csel	w0, w27, w26, eq
	bl	_putchar
	add	w23, w23, #1
	add	x21, x21, x25
	cmp	x21, x22
	b.gt	LBB0_6
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_readone
	tst	w23, #0x7
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #32
	bl	_putchar
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_DEVPCI,4,2               ; @_PATH_DEVPCI
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_readit
.subsections_via_symbols
