	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ps_title                   ## -- Begin function set_ps_title
	.p2align	4, 0x90
_set_ps_title:                          ## @set_ps_title
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_is_ps_title_available
	movq	_PS_TITLE_SUCCESS@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_2
## %bb.1:
	movq	_ps_buffer@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_ps_buffer_size@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_strncpy
	movq	(%r15), %rax
	movslq	(%r12), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	(%r15), %rdi
	callq	_strlen
	movq	_ps_buffer_cur_len@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_TITLE_SUCCESS,4,2           ## @PS_TITLE_SUCCESS
	.comm	_ps_buffer,8,3                  ## @ps_buffer
	.comm	_ps_buffer_size,4,2             ## @ps_buffer_size
	.comm	_ps_buffer_cur_len,4,2          ## @ps_buffer_cur_len
	.comm	_PSTAT_SETCMD,4,2               ## @PSTAT_SETCMD
	.comm	_PS_PADDING,4,2                 ## @PS_PADDING
	.comm	_PS_STRINGS,8,3                 ## @PS_STRINGS
	.comm	_PS_TITLE_WINDOWS_ERROR,4,2     ## @PS_TITLE_WINDOWS_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ps_title                   ; -- Begin function set_ps_title
	.p2align	2
_set_ps_title:                          ; @set_ps_title
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_is_ps_title_available
Lloh0:
	adrp	x20, _PS_TITLE_SUCCESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PS_TITLE_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x21, _ps_buffer@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ps_buffer@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh4:
	adrp	x22, _ps_buffer_size@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ps_buffer_size@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_strncpy
	ldr	x8, [x21]
	ldrsw	x9, [x22]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	x0, [x21]
	bl	_strlen
Lloh6:
	adrp	x8, _ps_buffer_cur_len@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ps_buffer_cur_len@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	ldr	w0, [x20]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_TITLE_SUCCESS,4,2           ; @PS_TITLE_SUCCESS
	.comm	_ps_buffer,8,3                  ; @ps_buffer
	.comm	_ps_buffer_size,4,2             ; @ps_buffer_size
	.comm	_ps_buffer_cur_len,4,2          ; @ps_buffer_cur_len
	.comm	_PSTAT_SETCMD,4,2               ; @PSTAT_SETCMD
	.comm	_PS_PADDING,4,2                 ; @PS_PADDING
	.comm	_PS_STRINGS,8,3                 ; @PS_STRINGS
	.comm	_PS_TITLE_WINDOWS_ERROR,4,2     ; @PS_TITLE_WINDOWS_ERROR
.subsections_via_symbols
