	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_set_format        ## -- Begin function archive_read_set_format
	.p2align	4, 0x90
_archive_read_set_format:               ## @archive_read_set_format
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_archive_read_support_format_by_code
	movl	%eax, %r15d
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	%r12d, %r15d
	jl	LBB0_14
## %bb.1:
	cmpq	$0, 8(%r14)
	movl	%r12d, %r15d
	je	LBB0_3
## %bb.2:
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movq	_ARCHIVE_FORMAT_BASE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	addl	$-128, %ebx
	cmpl	$12, %ebx
	jae	LBB0_4
## %bb.5:
	movslq	%ebx, %rax
	leaq	l_reltable.archive_read_set_format(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	leaq	-50(%rbp), %rdi
	callq	_strcpy
	movq	16(%r14), %rax
	movq	%rax, 8(%r14)
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.6:
	leaq	-50(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	8(%r14), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, 8(%r14)
	movl	4(%rax), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.8:
	leaq	-50(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	addq	$4, 8(%r14)
LBB0_10:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.11:
	leaq	-50(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movq	_ARCHIVE_ERRNO_PROGRAMMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.13(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_13:
	cmpl	%r15d, %r12d
	cmovll	%r12d, %r15d
	jmp	LBB0_14
LBB0_4:
	movq	_ARCHIVE_ERRNO_PROGRAMMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.12(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_FORMAT_BASE_MASK,4,2   ## @ARCHIVE_FORMAT_BASE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"7zip"

L_.str.1:                               ## @.str.1
	.asciz	"ar"

L_.str.2:                               ## @.str.2
	.asciz	"cab"

L_.str.3:                               ## @.str.3
	.asciz	"cpio"

L_.str.4:                               ## @.str.4
	.asciz	"iso9660"

L_.str.5:                               ## @.str.5
	.asciz	"lha"

L_.str.6:                               ## @.str.6
	.asciz	"mtree"

L_.str.7:                               ## @.str.7
	.asciz	"rar"

L_.str.8:                               ## @.str.8
	.asciz	"rar5"

L_.str.9:                               ## @.str.9
	.asciz	"tar"

L_.str.10:                              ## @.str.10
	.asciz	"xar"

L_.str.11:                              ## @.str.11
	.asciz	"zip"

	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ## @ARCHIVE_ERRNO_PROGRAMMER
L_.str.12:                              ## @.str.12
	.asciz	"Invalid format code specified"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.13:                              ## @.str.13
	.asciz	"Internal error: Unable to set format"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.archive_read_set_format
l_reltable.archive_read_set_format:
	.long	L_.str.11-l_reltable.archive_read_set_format
	.long	L_.str.10-l_reltable.archive_read_set_format
	.long	L_.str.9-l_reltable.archive_read_set_format
	.long	L_.str.8-l_reltable.archive_read_set_format
	.long	L_.str.7-l_reltable.archive_read_set_format
	.long	L_.str.6-l_reltable.archive_read_set_format
	.long	L_.str.5-l_reltable.archive_read_set_format
	.long	L_.str.4-l_reltable.archive_read_set_format
	.long	L_.str.3-l_reltable.archive_read_set_format
	.long	L_.str.2-l_reltable.archive_read_set_format
	.long	L_.str.1-l_reltable.archive_read_set_format
	.long	L_.str-l_reltable.archive_read_set_format

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_set_format        ; -- Begin function archive_read_set_format
	.p2align	2
_archive_read_set_format:               ; @archive_read_set_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_archive_read_support_format_by_code
Lloh3:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	cmp	w0, w22
	b.lt	LBB0_12
; %bb.1:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _ARCHIVE_WARN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w21, w22, w9, eq
Lloh9:
	adrp	x8, _ARCHIVE_FORMAT_BASE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCHIVE_FORMAT_BASE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #128
	cmp	w8, #12
	b.hs	LBB0_11
; %bb.2:
Lloh12:
	adrp	x9, l_switch.table.archive_read_set_format@PAGE
Lloh13:
	add	x9, x9, l_switch.table.archive_read_set_format@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	add	x0, sp, #14
	bl	_strcpy
	ldr	x8, [x19, #16]
	str	x8, [x19, #8]
	ldr	w0, [x8]
	cbz	w0, LBB0_7
; %bb.3:
	add	x1, sp, #14
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]!
	str	x8, [x19, #8]
	cbz	w0, LBB0_7
; %bb.5:
	add	x1, sp, #14
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	add	x8, x8, #4
	str	x8, [x19, #8]
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	cbz	w0, LBB0_9
; %bb.8:
	add	x1, sp, #14
	bl	_strcmp
	cbz	x0, LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.13@PAGE
Lloh18:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh19:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
LBB0_10:
	cmp	w22, w21
	csel	w0, w22, w21, lt
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.12@PAGE
Lloh26:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh27:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
LBB0_12:
	ldr	x8, [sp, #24]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_FORMAT_BASE_MASK,4,2   ; @ARCHIVE_FORMAT_BASE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"7zip"

l_.str.1:                               ; @.str.1
	.asciz	"ar"

l_.str.2:                               ; @.str.2
	.asciz	"cab"

l_.str.3:                               ; @.str.3
	.asciz	"cpio"

l_.str.4:                               ; @.str.4
	.asciz	"iso9660"

l_.str.5:                               ; @.str.5
	.asciz	"lha"

l_.str.6:                               ; @.str.6
	.asciz	"mtree"

l_.str.7:                               ; @.str.7
	.asciz	"rar"

l_.str.8:                               ; @.str.8
	.asciz	"rar5"

l_.str.9:                               ; @.str.9
	.asciz	"tar"

l_.str.10:                              ; @.str.10
	.asciz	"xar"

l_.str.11:                              ; @.str.11
	.asciz	"zip"

	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ; @ARCHIVE_ERRNO_PROGRAMMER
l_.str.12:                              ; @.str.12
	.asciz	"Invalid format code specified"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.13:                              ; @.str.13
	.asciz	"Internal error: Unable to set format"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.archive_read_set_format
l_switch.table.archive_read_set_format:
	.quad	l_.str.11
	.quad	l_.str.10
	.quad	l_.str.9
	.quad	l_.str.8
	.quad	l_.str.7
	.quad	l_.str.6
	.quad	l_.str.5
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.1
	.quad	l_.str

.subsections_via_symbols
