	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_header
_process_header:                        ## @process_header
	.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	%rsi, %r12
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_1:
	movq	_cnts@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%r14d, %r14
	leaq	2(%r12), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, 4(%r15,%r14,8)
	movq	%r12, %rdi
	callq	_strlen
	cmpl	$3, %eax
	jl	LBB0_8
## %bb.2:
	movl	%eax, %ebx
	addq	$-2, %rbx
	addq	$3, %r12
	movq	_MAX_NLEN@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_strncpy
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	decq	%rbx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, -1(%r12)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_strlen
	movl	(%r13), %edx
	decl	%edx
	movl	(%r15,%r14,8), %edi
	movq	%r12, %rsi
	cmpl	%edx, %eax
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_strcpy
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s/"

L_.str.1:                               ## @.str.1
	.asciz	"Check -- invalid header no s/ in %s\n"

	.comm	_cnts,8,3                       ## @cnts
	.comm	_MAX_NLEN,4,2                   ## @MAX_NLEN
	.no_dead_strip	_process_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_header
_process_header:                        ; @process_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_printf
LBB0_2:
Lloh4:
	adrp	x8, _cnts@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cnts@GOTPAGEOFF]
Lloh6:
	ldr	x21, [x8]
	add	x0, x19, #2
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	add	x8, x21, w20, sxtw #3
	str	w0, [x8, #4]
	mov	x0, x19
	bl	_strlen
	cmp	w0, #3
	b.lt	LBB0_9
; %bb.3:
	sxtw	x8, w20
	add	x20, x21, x8, lsl #3
	mov	w8, w0
	sub	x21, x8, #2
	add	x19, x19, #3
Lloh7:
	adrp	x22, _MAX_NLEN@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MAX_NLEN@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_strncpy
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, #1
	subs	x21, x21, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w8, [x19, #-1]
	cmp	w8, #47
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_strlen
	mov	x8, x0
	ldr	w9, [x22]
	sub	w2, w9, #1
	ldr	w0, [x20]
	mov	x1, x19
	cmp	w8, w2
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_strcpy
	b	LBB0_5
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s/"

l_.str.1:                               ; @.str.1
	.asciz	"Check -- invalid header no s/ in %s\n"

	.comm	_cnts,8,3                       ; @cnts
	.comm	_MAX_NLEN,4,2                   ; @MAX_NLEN
	.no_dead_strip	_process_header
.subsections_via_symbols
