	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_mode
_set_mode:                              ## @set_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	andl	$4095, %r14d                    ## imm = 0xFFF
	movl	(%rdi), %eax
	movq	_TODO_SGID_CHECK@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_lazy_stat
	movl	%eax, %r15d
	cmpl	(%r13), %eax
	jne	LBB0_19
## %bb.2:
	movq	64(%rbx), %rax
	movq	(%rax), %rcx
	cmpq	8(%rbx), %rcx
	je	LBB0_5
## %bb.3:
	movq	_S_ISGID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	movq	_ARCHIVE_EXTRACT_OWNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	48(%rbx), %rdi
	leaq	L_.str(%rip), %rdx
	movl	$-1, %esi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	64(%rbx), %rax
LBB0_5:
	movq	8(%rax), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_9
## %bb.6:
	movq	_TODO_SUID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.7:
	movq	_S_ISUID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_ARCHIVE_EXTRACT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_9
## %bb.8:
	leaq	48(%rbx), %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	$-1, %esi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:
	movl	(%r12), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_TODO_SUID_CHECK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_14
LBB0_10:
	movl	(%r13), %r15d
	movq	_TODO_SUID_CHECK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.11:
	movq	32(%rbx), %rdx
	cmpq	24(%rbx), %rdx
	je	LBB0_14
## %bb.12:
	movq	_S_ISUID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %r14d
	movq	_ARCHIVE_EXTRACT_OWNER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 16(%rbx)
	je	LBB0_14
## %bb.13:
	leaq	48(%rbx), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	$-1, %esi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %ecx
	movl	(%rbx), %eax
LBB0_14:
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
LBB0_15:
	movl	56(%rbx), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movl	56(%rbx), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movl	52(%rbx), %edi
	movl	%r14d, %esi
	callq	_chmod
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	addq	$48, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_TODO_SGID_CHECK,4,2            ## @TODO_SGID_CHECK
	.comm	_S_ISGID,4,2                    ## @S_ISGID
	.comm	_ARCHIVE_EXTRACT_OWNER,4,2      ## @ARCHIVE_EXTRACT_OWNER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't restore SGID bit"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_TODO_SUID,4,2                  ## @TODO_SUID
	.comm	_S_ISUID,4,2                    ## @S_ISUID
L_.str.1:                               ## @.str.1
	.asciz	"Can't restore SUID bit"

	.comm	_TODO_SUID_CHECK,4,2            ## @TODO_SUID_CHECK
L_.str.2:                               ## @.str.2
	.asciz	"Can't make file SUID"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"Can't set permissions to 0%o"

	.no_dead_strip	_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_mode
_set_mode:                              ; @set_mode
	.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, x0
Lloh0:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	and	w19, w1, #0xfff
	ldr	w8, [x0]
Lloh2:
	adrp	x22, _TODO_SGID_CHECK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TODO_SGID_CHECK@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x0, x20
	bl	_lazy_stat
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.2:
	ldr	x8, [x20, #64]
	ldr	x9, [x8]
	ldr	x10, [x20, #8]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.3:
Lloh4:
	adrp	x9, _S_ISGID@GOTPAGE
Lloh5:
	ldr	x9, [x9, _S_ISGID@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bic	w19, w19, w9
	ldr	w9, [x20, #16]
Lloh7:
	adrp	x10, _ARCHIVE_EXTRACT_OWNER@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ARCHIVE_EXTRACT_OWNER@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
	add	x0, x20, #48
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #-1
	bl	_archive_set_error
Lloh12:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	ldr	x8, [x20, #64]
LBB0_5:
	ldr	x8, [x8, #8]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _TODO_SUID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TODO_SUID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _S_ISUID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_ISUID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w19, w19, w8
	ldr	w8, [x20, #16]
Lloh21:
	adrp	x9, _ARCHIVE_EXTRACT_OWNER@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ARCHIVE_EXTRACT_OWNER@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	add	x0, x20, #48
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #-1
	bl	_archive_set_error
Lloh26:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x8]
LBB0_9:
	ldr	w8, [x22]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh29:
	adrp	x9, _TODO_SUID_CHECK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TODO_SUID_CHECK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	b	LBB0_14
LBB0_10:
	ldr	w21, [x23]
Lloh32:
	adrp	x22, _TODO_SUID_CHECK@GOTPAGE
Lloh33:
	ldr	x22, [x22, _TODO_SUID_CHECK@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	ldp	x11, x10, [x20, #24]
	cmp	x10, x11
	b.eq	LBB0_14
; %bb.12:
Lloh34:
	adrp	x10, _S_ISUID@GOTPAGE
Lloh35:
	ldr	x10, [x10, _S_ISUID@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	bic	w19, w19, w10
	ldr	w10, [x20, #16]
Lloh37:
	adrp	x11, _ARCHIVE_EXTRACT_OWNER@GOTPAGE
Lloh38:
	ldr	x11, [x11, _ARCHIVE_EXTRACT_OWNER@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_14
; %bb.13:
	add	x0, x20, #48
Lloh40:
	adrp	x2, l_.str.2@PAGE
Lloh41:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #-1
	bl	_archive_set_error
Lloh42:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh44:
	ldr	w21, [x8]
	ldr	w9, [x22]
	ldr	w8, [x20]
LBB0_14:
	bic	w8, w8, w9
	str	w8, [x20]
LBB0_15:
	ldr	w0, [x20, #56]
	bl	_S_ISLNK
	cbnz	x0, LBB0_19
; %bb.16:
	ldr	w0, [x20, #56]
	bl	_S_ISDIR
	cbnz	w0, LBB0_19
; %bb.17:
	ldr	w0, [x20, #52]
	mov	x1, x19
	bl	_chmod
	cbz	w0, LBB0_19
; %bb.18:
	add	x0, x20, #48
Lloh45:
	adrp	x8, _errno@GOTPAGE
Lloh46:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	str	x19, [sp]
Lloh48:
	adrp	x2, l_.str.3@PAGE
Lloh49:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_archive_set_error
Lloh50:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh52:
	ldr	w21, [x8]
LBB0_19:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_TODO_SGID_CHECK,4,2            ; @TODO_SGID_CHECK
	.comm	_S_ISGID,4,2                    ; @S_ISGID
	.comm	_ARCHIVE_EXTRACT_OWNER,4,2      ; @ARCHIVE_EXTRACT_OWNER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't restore SGID bit"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_TODO_SUID,4,2                  ; @TODO_SUID
	.comm	_S_ISUID,4,2                    ; @S_ISUID
l_.str.1:                               ; @.str.1
	.asciz	"Can't restore SUID bit"

	.comm	_TODO_SUID_CHECK,4,2            ; @TODO_SUID_CHECK
l_.str.2:                               ; @.str.2
	.asciz	"Can't make file SUID"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"Can't set permissions to 0%o"

	.no_dead_strip	_set_mode
.subsections_via_symbols
