	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___archive_check_magic          ## -- Begin function __archive_check_magic
	.p2align	4, 0x90
___archive_check_magic:                 ## @__archive_check_magic
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_archive_handle_type_name
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	%r13d, (%r12)
	jne	LBB0_3
LBB0_4:
	movl	4(%r12), %esi
	testl	%r15d, %esi
	je	LBB0_6
## %bb.5:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movq	%r14, %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	xorl	%eax, %eax
	callq	_diediedie
	cmpl	%r13d, (%r12)
	je	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	$-1, %esi
	movq	%r14, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_9
LBB0_6:
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %r13
	cmpq	%rsi, (%r13)
	je	LBB0_8
## %bb.7:
	leaq	-112(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_write_all_states
	movslq	%eax, %rbx
	leaq	-176(%rbp), %rdi
	movl	%r15d, %esi
	callq	_write_all_states
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	$-1, %esi
	movq	%r14, %rcx
	movq	%rbx, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	(%r13), %rsi
LBB0_8:
	movl	%esi, 4(%r12)
LBB0_9:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PROGRAMMER ERROR: Function "

L_.str.1:                               ## @.str.1
	.asciz	" invoked with invalid archive handle.\n"

L_.str.2:                               ## @.str.2
	.asciz	"PROGRAMMER ERROR: Function '%s' invoked on '%s' archive object, which is not supported."

	.comm	_ARCHIVE_STATE_FATAL,8,3        ## @ARCHIVE_STATE_FATAL
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.3:                               ## @.str.3
	.asciz	"INTERNAL ERROR: Function '%s' invoked with archive structure in state '%s', should be in state '%s'"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___archive_check_magic          ; -- Begin function __archive_check_magic
	.p2align	2
___archive_check_magic:                 ; @__archive_check_magic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w0, [x0]
	bl	_archive_handle_type_name
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x0, x20
	bl	_errmsg
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	bl	_diediedie
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x19, #4]
	tst	w1, w21
	b.eq	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #-1
	mov	x3, x20
	mov	x4, x22
	bl	_archive_set_error
Lloh11:
	adrp	x8, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w8, [x19, #4]
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x23, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x1
	b.eq	LBB0_8
; %bb.7:
	add	x0, sp, #72
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_write_all_states
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	add	x0, sp, #8
	mov	x1, x21
	bl	_write_all_states
                                        ; kill: def $w0 killed $w0 def $x0
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	str	x0, [sp]
	mov	x0, x19
	mov	w1, #-1
	mov	x3, x20
	mov	x4, x22
	bl	_archive_set_error
	ldr	x1, [x23]
LBB0_8:
	str	w1, [x19, #4]
LBB0_9:
Lloh18:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PROGRAMMER ERROR: Function "

l_.str.1:                               ; @.str.1
	.asciz	" invoked with invalid archive handle.\n"

l_.str.2:                               ; @.str.2
	.asciz	"PROGRAMMER ERROR: Function '%s' invoked on '%s' archive object, which is not supported."

	.comm	_ARCHIVE_STATE_FATAL,8,3        ; @ARCHIVE_STATE_FATAL
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.3:                               ; @.str.3
	.asciz	"INTERNAL ERROR: Function '%s' invoked with archive structure in state '%s', should be in state '%s'"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
.subsections_via_symbols
