	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_topic
_get_topic:                             ## @get_topic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_topic@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdi
	callq	_asprintf
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	-24(%rbp), %r14
	movq	%r14, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$32, (%r14,%rbx)
	movq	-24(%rbp), %r14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rbx), %eax
	cmpb	$45, %al
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$46, %al
	jne	LBB0_7
## %bb.5:
	movb	$0, (%r14,%rbx)
	movq	-24(%rbp), %r14
	jmp	LBB0_8
LBB0_9:
	movq	_prog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_topic,4,2                      ## @topic
L_.str.1:                               ## @.str.1
	.asciz	"%s: asprintf() error %s\n"

	.comm	_prog,4,2                       ## @prog
	.no_dead_strip	_get_topic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_topic
_get_topic:                             ; @get_topic
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x8, _topic@GOTPAGE
Lloh1:
	ldr	x8, [x8, _topic@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x19, [sp, #8]
	mov	x0, x19
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x20, #0
	mov	w21, #32
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w21, [x19, x20]
	ldr	x19, [sp, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	bl	_strlen
	cmp	x20, w0, sxtw
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19, x20]
	cmp	w8, #45
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #46
	b.ne	LBB0_4
; %bb.7:
	strb	wzr, [x19, x20]
	ldr	x19, [sp, #8]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _prog@GOTPAGE
Lloh6:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x19, #0
LBB0_9:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_topic,4,2                      ; @topic
l_.str.1:                               ; @.str.1
	.asciz	"%s: asprintf() error %s\n"

	.comm	_prog,4,2                       ; @prog
	.no_dead_strip	_get_topic
.subsections_via_symbols
