	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setproctitle_internal
_setproctitle_internal:                 ## @setproctitle_internal
	.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
	subq	$24, %rsp
	.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, %r15
	cmpq	$0, _setproctitle_internal.buf(%rip)
	jne	LBB0_3
## %bb.1:
	movq	_SPT_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%rax, _setproctitle_internal.buf(%rip)
	testq	%rax, %rax
	je	LBB0_30
## %bb.2:
	movq	%rax, _setproctitle_internal.nargv(%rip)
LBB0_3:
	movq	_setproctitle_internal.obuf(%rip), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	testq	%r15, %r15
	je	LBB0_9
LBB0_5:
	movq	_setproctitle_internal.buf(%rip), %rbx
	movq	_SPT_BUFSIZE@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	movb	$0, -1(%rax,%rbx)
	cmpb	$45, (%r15)
	jne	LBB0_11
## %bb.6:
	incq	%r15
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_7:
	movq	_SPT_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%rax, _setproctitle_internal.obuf(%rip)
	testq	%rax, %rax
	je	LBB0_30
## %bb.8:
	movb	$0, (%rax)
	testq	%r15, %r15
	jne	LBB0_5
LBB0_9:
	cmpb	$0, (%rax)
	je	LBB0_30
## %bb.10:
	movq	_setproctitle_internal.oargv(%rip), %r14
	movl	_setproctitle_internal.oargc(%rip), %r15d
	jmp	LBB0_13
LBB0_11:
	movl	(%r13), %r12d
	xorl	%eax, %eax
	callq	__getprogname
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_setproctitle_internal.buf(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
LBB0_12:
	addq	%rax, %rbx
	movl	(%r13), %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_vsnprintf
	movl	$1, %r15d
	leaq	_setproctitle_internal.nargv(%rip), %r14
	movq	_setproctitle_internal.buf(%rip), %rax
LBB0_13:
	movq	%rax, _setproctitle_internal.kbuf(%rip)
	movq	_setproctitle_internal.ps_strings(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movq	$8, -48(%rbp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_31
## %bb.15:
	movq	-64(%rbp), %rax
	movq	%rax, _setproctitle_internal.ps_strings(%rip)
LBB0_16:
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_30
## %bb.17:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	cmpl	$-1, _setproctitle_internal.oargc(%rip)
	je	LBB0_21
LBB0_18:
	movq	_setproctitle_internal.ps_strings(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movq	%r14, (%rax)
	movq	(%r14), %rbx
	jmp	LBB0_31
LBB0_30:
	xorl	%ebx, %ebx
LBB0_31:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	8(%rax), %eax
	movl	%eax, _setproctitle_internal.oargc(%rip)
	movq	%r12, _setproctitle_internal.oargv(%rip)
	movq	$0, -48(%rbp)
	testl	%eax, %eax
	jle	LBB0_18
## %bb.22:
	movq	_SPT_BUFSIZE@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %r8
	testq	%r8, %r8
	je	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_setproctitle_internal.obuf(%rip), %rdi
	addq	%rax, %rdi
	movl	(%rbx), %esi
	subl	%eax, %esi
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %rax
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	-48(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%r15
	movq	%r15, -48(%rbp)
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	xorl	%r15d, %r15d
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	_setproctitle_internal.oargv(%rip), %r12
	movq	(%r12,%r13,8), %rdi
	callq	_strlen
	addq	%r15, %rax
	movq	%rax, -48(%rbp)
	movslq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_18
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%r13
	movslq	_setproctitle_internal.oargc(%rip), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_23
	jmp	LBB0_18
LBB0_32:
	movl	%r13d, _setproctitle_internal.oargc(%rip)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_setproctitle_internal.ps_strings,8,3 ## @setproctitle_internal.ps_strings
.zerofill __DATA,__bss,_setproctitle_internal.buf,8,3 ## @setproctitle_internal.buf
.zerofill __DATA,__bss,_setproctitle_internal.obuf,8,3 ## @setproctitle_internal.obuf
.zerofill __DATA,__bss,_setproctitle_internal.oargv,8,3 ## @setproctitle_internal.oargv
.zerofill __DATA,__bss,_setproctitle_internal.kbuf,8,3 ## @setproctitle_internal.kbuf
	.section	__DATA,__data
	.p2align	2                               ## @setproctitle_internal.oargc
_setproctitle_internal.oargc:
	.long	4294967295                      ## 0xffffffff

.zerofill __DATA,__bss,_setproctitle_internal.nargv,16,4 ## @setproctitle_internal.nargv
	.comm	_SPT_BUFSIZE,4,2                ## @SPT_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: "

L_.str.1:                               ## @.str.1
	.asciz	"kern.ps_strings"

L_.str.2:                               ## @.str.2
	.asciz	"%s%s"

L_.str.3:                               ## @.str.3
	.asciz	" "

L_.str.4:                               ## @.str.4
	.space	1

	.no_dead_strip	_setproctitle_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setproctitle_internal
_setproctitle_internal:                 ; @setproctitle_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	adrp	x24, _setproctitle_internal.buf@PAGE
	ldr	x8, [x24, _setproctitle_internal.buf@PAGEOFF]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SPT_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPT_BUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_malloc
	str	x0, [x24, _setproctitle_internal.buf@PAGEOFF]
	cbz	x0, LBB0_20
; %bb.2:
	adrp	x8, _setproctitle_internal.nargv@PAGE
	str	x0, [x8, _setproctitle_internal.nargv@PAGEOFF]
LBB0_3:
	adrp	x23, _setproctitle_internal.obuf@PAGE
	ldr	x0, [x23, _setproctitle_internal.obuf@PAGEOFF]
	cbz	x0, LBB0_7
; %bb.4:
	cbz	x20, LBB0_9
LBB0_5:
Lloh3:
	adrp	x25, _SPT_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SPT_BUFSIZE@GOTPAGEOFF]
	ldr	x21, [x24, _setproctitle_internal.buf@PAGEOFF]
	ldrsw	x8, [x25]
	add	x8, x8, x21
	sturb	wzr, [x8, #-1]
	ldrb	w8, [x20]
	cmp	w8, #45
	b.ne	LBB0_11
; %bb.6:
	mov	x0, #0
	add	x20, x20, #1
	b	LBB0_12
LBB0_7:
Lloh5:
	adrp	x8, _SPT_BUFSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPT_BUFSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_malloc
	str	x0, [x23, _setproctitle_internal.obuf@PAGEOFF]
	cbz	x0, LBB0_20
; %bb.8:
	strb	wzr, [x0]
	cbnz	x20, LBB0_5
LBB0_9:
	ldrb	w8, [x0]
	cbz	w8, LBB0_19
; %bb.10:
Lloh8:
	adrp	x8, _setproctitle_internal.oargv@PAGE
Lloh9:
	ldr	x20, [x8, _setproctitle_internal.oargv@PAGEOFF]
Lloh10:
	adrp	x8, _setproctitle_internal.oargc@PAGE
Lloh11:
	ldr	w21, [x8, _setproctitle_internal.oargc@PAGEOFF]
	b	LBB0_13
LBB0_11:
	ldr	w22, [x25]
	bl	__getprogname
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	ldr	x21, [x24, _setproctitle_internal.buf@PAGEOFF]
	mov	x0, x21
	bl	_strlen
LBB0_12:
	add	x8, x21, x0
	ldr	w9, [x25]
	sub	w1, w9, w0
	mov	x0, x8
	mov	x2, x20
	mov	x3, x19
	bl	_vsnprintf
	ldr	x0, [x24, _setproctitle_internal.buf@PAGEOFF]
	mov	w21, #1
Lloh14:
	adrp	x20, _setproctitle_internal.nargv@PAGE
Lloh15:
	add	x20, x20, _setproctitle_internal.nargv@PAGEOFF
LBB0_13:
	adrp	x8, _setproctitle_internal.kbuf@PAGE
	str	x0, [x8, _setproctitle_internal.kbuf@PAGEOFF]
	adrp	x22, _setproctitle_internal.ps_strings@PAGE
	ldr	x8, [x22, _setproctitle_internal.ps_strings@PAGEOFF]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x28, [x8]
	cbnz	x28, LBB0_17
	b	LBB0_19
LBB0_15:
	mov	w8, #8
	str	x8, [sp, #24]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #16
	add	x2, sp, #24
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.16:
	ldr	x8, [sp, #16]
	str	x8, [x22, _setproctitle_internal.ps_strings@PAGEOFF]
	ldr	x28, [x8]
	cbz	x28, LBB0_19
LBB0_17:
	adrp	x24, _setproctitle_internal.oargc@PAGE
	ldr	w9, [x24, _setproctitle_internal.oargc@PAGEOFF]
	cmn	w9, #1
	b.eq	LBB0_21
LBB0_18:
	ldr	x8, [x22, _setproctitle_internal.ps_strings@PAGEOFF]
	str	w21, [x8, #8]
	str	x20, [x8]
	ldr	x0, [x20]
	b	LBB0_20
LBB0_19:
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	ldr	w8, [x8, #8]
	str	w8, [x24, _setproctitle_internal.oargc@PAGEOFF]
	adrp	x25, _setproctitle_internal.oargv@PAGE
	str	x28, [x25, _setproctitle_internal.oargv@PAGEOFF]
	str	xzr, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.22:
	mov	x8, #0
	mov	x26, #0
Lloh18:
	adrp	x27, _SPT_BUFSIZE@GOTPAGE
Lloh19:
	ldr	x27, [x27, _SPT_BUFSIZE@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x28, x26, lsl #3]
	cbz	x9, LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x10, [x23, _setproctitle_internal.obuf@PAGEOFF]
	add	x0, x10, x8
	ldr	w10, [x27]
	sub	w1, w10, w8
	cmp	x8, #0
Lloh20:
	adrp	x8, l_.str.3@PAGE
Lloh21:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh22:
	adrp	x10, l_.str.4@PAGE
Lloh23:
	add	x10, x10, l_.str.4@PAGEOFF
	csel	x3, x10, x8, eq
	str	x9, [sp]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x19, x8, #1
	str	x19, [sp, #24]
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x19, #0
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x28, [x25, _setproctitle_internal.oargv@PAGEOFF]
	ldr	x0, [x28, x26, lsl #3]
	bl	_strlen
	ldrsw	x9, [x27]
	add	x8, x19, x0
	cmp	x8, x9
	str	x8, [sp, #24]
	b.hs	LBB0_18
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x26, x26, #1
	ldrsw	x9, [x24, _setproctitle_internal.oargc@PAGEOFF]
	cmp	x26, x9
	b.lt	LBB0_23
	b	LBB0_18
LBB0_29:
	str	w26, [x24, _setproctitle_internal.oargc@PAGEOFF]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_setproctitle_internal.ps_strings,8,3 ; @setproctitle_internal.ps_strings
.zerofill __DATA,__bss,_setproctitle_internal.buf,8,3 ; @setproctitle_internal.buf
.zerofill __DATA,__bss,_setproctitle_internal.obuf,8,3 ; @setproctitle_internal.obuf
.zerofill __DATA,__bss,_setproctitle_internal.oargv,8,3 ; @setproctitle_internal.oargv
.zerofill __DATA,__bss,_setproctitle_internal.kbuf,8,3 ; @setproctitle_internal.kbuf
	.section	__DATA,__data
	.p2align	2                               ; @setproctitle_internal.oargc
_setproctitle_internal.oargc:
	.long	4294967295                      ; 0xffffffff

.zerofill __DATA,__bss,_setproctitle_internal.nargv,16,3 ; @setproctitle_internal.nargv
	.comm	_SPT_BUFSIZE,4,2                ; @SPT_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: "

l_.str.1:                               ; @.str.1
	.asciz	"kern.ps_strings"

l_.str.2:                               ; @.str.2
	.asciz	"%s%s"

l_.str.3:                               ; @.str.3
	.asciz	" "

l_.str.4:                               ; @.str.4
	.space	1

	.no_dead_strip	_setproctitle_internal
.subsections_via_symbols
