	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setArgv0                       ## -- Begin function setArgv0
	.p2align	4, 0x90
_setArgv0:                              ## @setArgv0
	.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	%rsi, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movq	_argv0@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	(%r13), %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rax), %rcx
	cmpq	%rdi, %rcx
	jbe	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rax), %r14
	cmpb	$47, -1(%rbx,%rax)
	movq	%r14, %rax
	jne	LBB0_1
## %bb.3:
	movl	%r14d, %edx
	notl	%edx
	leaq	(%rbx,%r14), %rsi
	incq	%rsi
	callq	_memmove
	movq	(%r13), %rax
	movq	_argv0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	%rax, %rdi
	notq	%rbx
	addq	%rbx, %rdi
	subq	%r14, %rdi
	addl	%r15d, %r12d
	subl	%eax, %r12d
	leal	(%r12,%r14), %edx
	incl	%edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r13), %rax
	movq	_argv0@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	addq	%rbx, %rax
	subq	%r14, %rax
	movq	%rax, (%rcx)
LBB0_4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:
	movl	%eax, %r14d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_argv0,8,3                      ## @argv0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setArgv0                       ; -- Begin function setArgv0
	.p2align	2
_setArgv0:                              ; @setArgv0
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1]
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	mov	x23, #0
	add	x25, x21, w0, sxtw
Lloh0:
	adrp	x24, _argv0@GOTPAGE
Lloh1:
	ldr	x24, [x24, _argv0@GOTPAGEOFF]
	str	x25, [x24]
	ldr	x0, [x19]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x25, x23
	cmp	x8, x0
	b.ls	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldurb	w8, [x8, #-1]
	sub	x23, x23, #1
	cmp	w8, #47
	b.ne	LBB0_1
; %bb.3:
	mvn	w2, w23
	add	x8, x25, x23
	add	x1, x8, #1
	bl	_memmove
	ldr	x8, [x19]
	ldr	x9, [x24]
	mvn	x25, x25
	add	x9, x8, x9
	add	x9, x9, x25
	sub	x0, x9, x23
	add	w9, w22, w21
	sub	w8, w9, w8
	add	w8, w8, w23
	add	w2, w8, #1
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x8, x8, x9
	add	x8, x8, x25
	sub	x8, x8, x23
	str	x8, [x24]
LBB0_4:
	cmp	w20, #2
	b.lt	LBB0_7
; %bb.5:
	mov	w8, w20
	add	x20, x19, #8
	sub	x21, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x20], #8
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	subs	x21, x21, #1
	b.ne	LBB0_6
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_argv0,8,3                      ; @argv0
.subsections_via_symbols
