	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_newc_header
_find_newc_header:                      ## @find_newc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_newc_header_size@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	___archive_read_ahead
	movq	%rax, %r13
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	testq	%r13, %r13
	je	LBB0_20
## %bb.1:
	xorl	%r14d, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	subq	%r13, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___archive_read_consume
	addq	%rbx, %r14
	movl	(%r15), %esi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rdx
	callq	___archive_read_ahead
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movslq	-44(%rbp), %r12
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	5(%r13), %al
	addb	$-49, %al
	cmpb	$1, %al
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_is_hex
	testq	%rax, %rax
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movq	%r13, %rbx
	cmpl	%r12d, %eax
	jg	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %r12
	movq	%r13, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=2
	addq	$2, %rbx
	movl	(%r15), %eax
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=2
	movslq	%eax, %rcx
	addq	%rbx, %rcx
	cmpq	%r12, %rcx
	ja	LBB0_18
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	5(%rbx), %ecx
	leal	-49(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$48, %ecx
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	addq	$6, %rbx
	jmp	LBB0_17
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_is_hex
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	subq	%r13, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	___archive_read_consume
	addq	%r14, %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	je	LBB0_20
## %bb.14:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_newc_header_size,4,2           ## @newc_header_size
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"07070"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.1:                               ## @.str.1
	.asciz	"Skipped %d bytes before finding valid header"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.no_dead_strip	_find_newc_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_newc_header
_find_newc_header:                      ; @find_newc_header
	.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	x19, x0
Lloh0:
	adrp	x24, _newc_header_size@GOTPAGE
Lloh1:
	ldr	x24, [x24, _newc_header_size@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	bl	___archive_read_ahead
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
	mov	x25, #0
Lloh2:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ARCHIVE_FATAL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x22, x21
	mov	x0, x19
	mov	x1, x21
	bl	___archive_read_consume
	add	x25, x21, x25
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	___archive_read_ahead
	mov	x21, x0
	cbz	x0, LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldrsw	x27, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #5
	bl	_memcmp
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #5]
	sub	w8, w8, #49
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_is_hex
	cbnz	x0, LBB0_19
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	mov	x22, x21
	cmp	w8, w27
	b.gt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x21, x27
	mov	x22, x21
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	cmp	w9, #48
	add	x9, x22, #6
	csinc	x22, x9, x22, ne
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x9, x22, w8, sxtw
	cmp	x9, x27
	b.hi	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w9, [x22, #5]
	sub	w10, w9, #49
	cmp	w10, #2
	b.hs	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x20
	mov	x1, x22
	mov	w2, #5
	bl	_memcmp
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w1, [x24]
	mov	x0, x22
	bl	_is_hex
	cbnz	x0, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x22, #2
	ldr	w8, [x24]
	b	LBB0_9
LBB0_14:
	sub	x20, x22, x21
	mov	x0, x19
	mov	x1, x20
	bl	___archive_read_consume
	adds	x3, x20, x25
	b.eq	LBB0_18
; %bb.15:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_archive_set_error
Lloh10:
	adrp	x23, _ARCHIVE_WARN@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ARCHIVE_WARN@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
Lloh12:
	adrp	x23, _ARCHIVE_FATAL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	mov	x23, x26
	b	LBB0_19
LBB0_18:
Lloh14:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x23]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_newc_header_size,4,2           ; @newc_header_size
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"07070"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.1:                               ; @.str.1
	.asciz	"Skipped %d bytes before finding valid header"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.no_dead_strip	_find_newc_header
.subsections_via_symbols
