	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnm_get
_pnm_get:                               ## @pnm_get
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %r12
	cmpq	%r12, %rbx
	jb	LBB0_2
## %bb.1:
                                        ## implicit-def: $r13d
LBB0_8:
	cmpq	%r12, %rbx
	jae	LBB0_14
## %bb.9:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	movslq	%eax, %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_pnm_space
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%r15, %r14
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%r13b, (%rax,%r14)
	movl	(%rbx), %r13d
	addq	$4, %rbx
	incq	%r14
	cmpq	%r12, %rbx
	jb	LBB0_10
LBB0_13:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	addq	%r14, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_14:
	movb	$0, (%r15)
	movq	%rbx, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_pnm_space
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, %rbx
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%rbx), %r13d
	addq	$4, %rbx
	cmpl	$35, %r13d
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$35, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r12, %rbx
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx), %r13d
	addq	$4, %rbx
	cmpl	$10, %r13d
	jne	LBB0_4
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pnm_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnm_get
_pnm_get:                               ; @pnm_get
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x23, x24, [x0]
	cmp	x23, x24
	b.lo	LBB0_11
; %bb.1:
                                        ; implicit-def: $w21
LBB0_2:
	cmp	x23, x24
	b.hs	LBB0_8
; %bb.3:
	mov	x25, #0
	sub	w8, w22, #1
	sxtw	x22, w8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_pnm_space
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, x22
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w21, [x20, x25]
	ldr	w21, [x23], #4
	add	x25, x25, #1
	cmp	x23, x24
	b.lo	LBB0_4
LBB0_7:
	add	x20, x20, x25
LBB0_8:
	strb	wzr, [x20]
	str	x23, [x19]
	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_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_pnm_space
	cbz	w0, LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x23, x24
	b.hs	LBB0_2
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w21, [x23], #4
	cmp	w21, #35
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x23, x24
	b.hs	LBB0_14
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w21, [x23], #4
	cmp	w21, #10
	ccmp	x23, x24, #2, ne
	b.lo	LBB0_13
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w21, #35
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pnm_get
.subsections_via_symbols
