	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_pkg_static
_install_pkg_static:                    ## @install_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.2:
	leaq	-36(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.5:
	movl	$-1, %ebx
	jmp	LBB0_14
LBB0_10:
	movl	-36(%rbp), %edi
	callq	_WEXITSTATUS
	movl	-36(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	callq	_WEXITSTATUS
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_12:
	callq	_WIFSIGNALED
	movl	-36(%rbp), %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	%ebx, %edi
	callq	_WTERMSIG
	movl	%eax, %ebx
	andl	$128, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_execl
	movl	$1, %edi
	callq	__exit
LBB0_7:
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %r8
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_execl
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pkg-static"

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

L_.str.2:                               ## @.str.2
	.asciz	"-f"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.no_dead_strip	_install_pkg_static
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_pkg_static
_install_pkg_static:                    ; @install_pkg_static
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_fork
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.1:
	cbz	w19, LBB0_11
; %bb.2:
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x21, _EINTR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EINTR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.5:
	mov	w19, #-1
	b	LBB0_10
LBB0_6:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_8
; %bb.7:
	bl	_WEXITSTATUS
	mov	x19, x0
	b	LBB0_10
LBB0_8:
	bl	_WIFSIGNALED
	ldr	w19, [sp, #12]
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_WTERMSIG
	and	w19, w0, #0x80
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	cbnz	w22, LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x3, x20
	mov	x4, #0
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	str	xzr, [sp]
	mov	x0, x21
	mov	x4, x20
LBB0_14:
	bl	_execl
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pkg-static"

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

l_.str.2:                               ; @.str.2
	.asciz	"-f"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.no_dead_strip	_install_pkg_static
.subsections_via_symbols
