	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_change_process_name            ## -- Begin function change_process_name
	.p2align	4, 0x90
_change_process_name:                   ## @change_process_name
	.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
	movq	%rdi, %r14
	movq	_PR_SET_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_prctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_vkprintf
LBB0_2:
	movq	_argc_copy@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_5
## %bb.3:
	movl	$1, %ebx
	movq	_argv_copy@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	_argv_copy@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_strlen
	subl	%eax, %r15d
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	cmovgl	%r15d, %ebx
	movq	(%r12), %rax
	movq	(%rax), %r15
	addq	%r14, %rbx
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strncpy                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PR_SET_NAME,4,2                ## @PR_SET_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"changing process name to %s failed. %m\n"

	.comm	_argc_copy,4,2                  ## @argc_copy
	.comm	_argv_copy,8,3                  ## @argv_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_change_process_name            ; -- Begin function change_process_name
	.p2align	2
_change_process_name:                   ; @change_process_name
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _PR_SET_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PR_SET_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_prctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_vkprintf
LBB0_2:
Lloh5:
	adrp	x22, _argc_copy@GOTPAGE
Lloh6:
	ldr	x22, [x22, _argc_copy@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh7:
	adrp	x21, _argv_copy@GOTPAGE
Lloh8:
	ldr	x21, [x21, _argv_copy@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	mov	w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x20, [x8, x23, lsl #3]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_strlen
	sub	w8, w20, w0
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	ldr	x9, [x21]
	ldr	x20, [x9]
	add	x19, x19, x8
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_strncpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PR_SET_NAME,4,2                ; @PR_SET_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"changing process name to %s failed. %m\n"

	.comm	_argc_copy,4,2                  ; @argc_copy
	.comm	_argv_copy,8,3                  ; @argv_copy
.subsections_via_symbols
