	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ids                        ## -- Begin function set_ids
	.p2align	4, 0x90
_set_ids:                               ## @set_ids
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_lchown
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_6
## %bb.1:
	movq	_NM_PAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_argv0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EPERM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_vflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movq	%rbx, %rcx
	callq	_syswarn
	movl	$-1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NM_PAX,4,2                     ## @NM_PAX
	.comm	_argv0,4,2                      ## @argv0
	.comm	_errno,8,3                      ## @errno
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_vflag,8,3                      ## @vflag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set file uid/gid of %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ids                        ; -- Begin function set_ids
	.p2align	2
_set_ids:                               ; @set_ids
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_lchown
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
Lloh0:
	adrp	x8, _NM_PAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NM_PAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _argv0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _argv0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcmp
Lloh6:
	adrp	x20, _errno@GOTPAGE
Lloh7:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _EPERM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _vflag@GOTPAGE
Lloh12:
	ldr	x10, [x10, _vflag@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, #0, #0, eq
	b.ne	LBB0_5
; %bb.4:
	bl	_geteuid
	cbnz	x0, LBB0_6
LBB0_5:
	ldr	x1, [x20]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x19
	bl	_syswarn
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NM_PAX,4,2                     ; @NM_PAX
	.comm	_argv0,4,2                      ; @argv0
	.comm	_errno,8,3                      ; @errno
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_vflag,8,3                      ; @vflag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set file uid/gid of %s"

.subsections_via_symbols
