	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_draw_title                 ## -- Begin function dlg_draw_title
	.p2align	4, 0x90
_dlg_draw_title:                        ## @dlg_draw_title
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_A_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	callq	_dlg_get_attrs
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_getmaxx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_centered
	movl	%eax, %r12d
	movq	_title_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dlg_attrset
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_wmove
	movq	%rbx, %rdi
	callq	_getmaxx
	movslq	%r12d, %rcx
	subq	%rcx, %rax
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_dlg_print_text
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_dlg_attrset
	movq	%r14, %rdi
	callq	_dlg_finish_string
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_NORMAL,4,2                   ## @A_NORMAL
	.comm	_title_attr,4,2                 ## @title_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_draw_title                 ; -- Begin function dlg_draw_title
	.p2align	2
_dlg_draw_title:                        ; @dlg_draw_title
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_2
; %bb.1:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _A_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	bl	_dlg_get_attrs
	mov	x21, x0
	mov	x0, x20
	bl	_getmaxx
	mov	x1, x19
	bl	_centered
	mov	x22, x0
Lloh3:
	adrp	x8, _title_attr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _title_attr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dlg_attrset
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_wmove
	mov	x0, x20
	bl	_getmaxx
	sub	x2, x0, w22, sxtw
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_dlg_print_text
	mov	x0, x20
	mov	x1, x21
	bl	_dlg_attrset
	mov	x0, x19
	bl	_dlg_finish_string
	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
	add	sp, sp, #64
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_A_NORMAL,4,2                   ; @A_NORMAL
	.comm	_title_attr,4,2                 ; @title_attr
.subsections_via_symbols
