	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_pkg_static
_extract_pkg_static:                    ## @extract_pkg_static
	.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, %r12d
	movq	%rsi, %r13
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_archive_read_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_archive_read_support_filter_all
	movq	%r15, %rdi
	callq	_archive_read_support_format_tar
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_archive_read_open_fd
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_5
## %bb.6:
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_archive_read_next_header
	movl	%eax, %r14d
	movl	(%rbx), %eax
	cmpl	%eax, %r14d
	jne	LBB0_12
## %bb.7:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	leaq	-48(%rbp), %r12
	leaq	L_.str.3(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_archive_read_next_header
	movl	%eax, %r14d
	movl	(%rbx), %eax
	cmpl	%eax, %r14d
	jne	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	movl	%eax, %edi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:
	movq	_ARCHIVE_EXTRACT_OWNER@GOTPCREL(%rip), %rax
	movq	_ARCHIVE_EXTRACT_PERM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ARCHIVE_EXTRACT_TIME@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ARCHIVE_EXTRACT_ACL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ARCHIVE_EXTRACT_FFLAGS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-48(%rbp), %rsi
	movq	_ARCHIVE_EXTRACT_XATTR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_archive_read_extract
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	callq	_archive_entry_pathname
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_strlcpy
	movl	(%rbx), %eax
LBB0_12:
	xorl	%ebx, %ebx
	cmpl	%eax, %r14d
	je	LBB0_16
## %bb.13:
	movq	%r15, %rdi
	callq	_archive_error_string
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$-1, %ebx
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_15
LBB0_5:
	movq	%r15, %rdi
	callq	_archive_error_string
	leaq	L_.str.2(%rip), %rdi
LBB0_14:
	movl	%eax, %esi
	callq	_warnx
LBB0_15:
	movl	$-1, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_archive_read_free
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %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	"archive_read_new"

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

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.2:                               ## @.str.2
	.asciz	"archive_read_open_fd: %s"

L_.str.3:                               ## @.str.3
	.asciz	"/pkg-static"

	.comm	_ARCHIVE_EXTRACT_OWNER,4,2      ## @ARCHIVE_EXTRACT_OWNER
	.comm	_ARCHIVE_EXTRACT_PERM,4,2       ## @ARCHIVE_EXTRACT_PERM
	.comm	_ARCHIVE_EXTRACT_TIME,4,2       ## @ARCHIVE_EXTRACT_TIME
	.comm	_ARCHIVE_EXTRACT_ACL,4,2        ## @ARCHIVE_EXTRACT_ACL
	.comm	_ARCHIVE_EXTRACT_FFLAGS,4,2     ## @ARCHIVE_EXTRACT_FFLAGS
	.comm	_ARCHIVE_EXTRACT_XATTR,4,2      ## @ARCHIVE_EXTRACT_XATTR
L_.str.4:                               ## @.str.4
	.asciz	"failed to extract pkg-static: %s"

	.no_dead_strip	_extract_pkg_static
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_pkg_static
_extract_pkg_static:                    ; @extract_pkg_static
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_archive_read_new
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	bl	_archive_read_support_filter_all
	mov	x0, x19
	bl	_archive_read_support_format_tar
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4096
	bl	_archive_read_open_fd
Lloh0:
	adrp	x24, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.3:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.4:
Lloh2:
	adrp	x23, l_.str.3@PAGE
Lloh3:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.8:
	ldr	x1, [sp, #8]
Lloh4:
	adrp	x8, _ARCHIVE_EXTRACT_OWNER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_EXTRACT_OWNER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ARCHIVE_EXTRACT_PERM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ARCHIVE_EXTRACT_PERM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _ARCHIVE_EXTRACT_TIME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ARCHIVE_EXTRACT_TIME@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _ARCHIVE_EXTRACT_ACL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ARCHIVE_EXTRACT_ACL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _ARCHIVE_EXTRACT_FFLAGS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ARCHIVE_EXTRACT_FFLAGS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _ARCHIVE_EXTRACT_XATTR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ARCHIVE_EXTRACT_XATTR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_archive_read_extract
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_archive_entry_pathname
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_strlcpy
	ldr	w8, [x24]
	cmp	w22, w8
	b.eq	LBB0_18
LBB0_9:
	mov	x0, x19
	bl	_archive_error_string
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w20, #-1
	b	LBB0_16
LBB0_11:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_archive_error_string
	mov	x1, x0
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_warnx
LBB0_14:
	mov	w20, #-1
LBB0_15:
	mov	x0, x19
	bl	_archive_read_free
LBB0_16:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_17:
	mov	x22, x0
	cmp	w22, w8
	b.ne	LBB0_9
LBB0_18:
	mov	w20, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_read_new"

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

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.2:                               ; @.str.2
	.asciz	"archive_read_open_fd: %s"

l_.str.3:                               ; @.str.3
	.asciz	"/pkg-static"

	.comm	_ARCHIVE_EXTRACT_OWNER,4,2      ; @ARCHIVE_EXTRACT_OWNER
	.comm	_ARCHIVE_EXTRACT_PERM,4,2       ; @ARCHIVE_EXTRACT_PERM
	.comm	_ARCHIVE_EXTRACT_TIME,4,2       ; @ARCHIVE_EXTRACT_TIME
	.comm	_ARCHIVE_EXTRACT_ACL,4,2        ; @ARCHIVE_EXTRACT_ACL
	.comm	_ARCHIVE_EXTRACT_FFLAGS,4,2     ; @ARCHIVE_EXTRACT_FFLAGS
	.comm	_ARCHIVE_EXTRACT_XATTR,4,2      ; @ARCHIVE_EXTRACT_XATTR
l_.str.4:                               ; @.str.4
	.asciz	"failed to extract pkg-static: %s"

	.no_dead_strip	_extract_pkg_static
.subsections_via_symbols
