	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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, %r15
	movl	%edi, %r13d
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	incq	%rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	(%r15), %rax
LBB0_5:
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.1(%rip), %rbx
	movl	$149, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-105(%rax), %ecx
	cmpl	$14, %ecx
	ja	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	btl	%ecx, %r14d
	jb	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$14, %ecx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_8:
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.12:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	subl	%ebx, %r13d
	xorl	%eax, %eax
	callq	_mchars_alloc
	movq	_MPARSE_SO@GOTPCREL(%rip), %rax
	movq	_MPARSE_UTF8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MPARSE_LATIN1@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MPARSE_VALIDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MANDOC_OS_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_mparse_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_assert
	testl	%r13d, %r13d
	jle	LBB0_13
## %bb.14:
	leaq	(%r15,%rbx,8), %r14
	movl	%r13d, %r15d
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_mparse_reset
	movq	(%r14,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_mparse_open
	movq	(%r14,%rbx,8), %rdx
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %ecx
	callq	_pmandoc
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_15
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rdx, %rdi
	callq	_perror
	jmp	LBB0_18
LBB0_9:
	xorl	%eax, %eax
	callq	_usage
	movq	_MANDOCLEVEL_BADARG@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_13:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_pmandoc
LBB0_19:
	movq	%r12, %rdi
	callq	_mparse_free
	xorl	%eax, %eax
	callq	_mchars_free
	movq	_MANDOCLEVEL_OK@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"demandoc"

	.comm	_progname,8,3                   ## @progname
L_.str.1:                               ## @.str.1
	.asciz	"ikm:pw"

	.comm	_MANDOCLEVEL_BADARG,8,3         ## @MANDOCLEVEL_BADARG
	.comm	_MPARSE_SO,4,2                  ## @MPARSE_SO
	.comm	_MPARSE_UTF8,4,2                ## @MPARSE_UTF8
	.comm	_MPARSE_LATIN1,4,2              ## @MPARSE_LATIN1
	.comm	_MPARSE_VALIDATE,4,2            ## @MPARSE_VALIDATE
	.comm	_MANDOC_OS_OTHER,4,2            ## @MANDOC_OS_OTHER
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
L_.str.2:                               ## @.str.2
	.asciz	"<stdin>"

	.comm	_MANDOCLEVEL_OK,8,3             ## @MANDOCLEVEL_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _progname@GOTPAGE
Lloh1:
	ldr	x22, [x22, _progname@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x0, [x20]
	mov	w1, #47
	bl	_strrchr
	str	x0, [x22]
	cbz	x0, LBB0_4
; %bb.2:
	add	x8, x0, #1
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
LBB0_5:
	mov	w19, #0
	str	x8, [x22]
	mov	w23, #1
	mov	w24, #149
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	sub	w8, w0, #105
	cmp	w8, #14
	b.hi	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w9, w23, w8
	tst	w9, w24
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #14
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #1
	b	LBB0_6
LBB0_10:
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.11:
Lloh6:
	adrp	x8, _optind@GOTPAGE
Lloh7:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh8:
	ldrsw	x23, [x8]
	sub	w22, w21, w23
	bl	_mchars_alloc
Lloh9:
	adrp	x8, _MPARSE_SO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPARSE_SO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MPARSE_UTF8@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MPARSE_UTF8@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _MPARSE_LATIN1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MPARSE_LATIN1@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MPARSE_VALIDATE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MPARSE_VALIDATE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh20:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh21:
	adrp	x8, _MANDOC_OS_OTHER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MANDOC_OS_OTHER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_mparse_alloc
	mov	x21, x0
	bl	_assert
	cmp	w22, #0
	b.le	LBB0_18
; %bb.12:
	add	x20, x20, x23, lsl #3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_mparse_reset
	ldr	x1, [x20]
	mov	x0, x21
	bl	_mparse_open
	ldr	x2, [x20]
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	mov	x0, x21
	mov	x3, x19
	bl	_pmandoc
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, #8
	subs	x22, x22, #1
	b.ne	LBB0_13
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x2
	bl	_perror
	b	LBB0_15
LBB0_17:
	bl	_usage
Lloh24:
	adrp	x8, _MANDOCLEVEL_BADARG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MANDOCLEVEL_BADARG@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
Lloh26:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_pmandoc
LBB0_19:
	mov	x0, x21
	bl	_mparse_free
	bl	_mchars_free
Lloh31:
	adrp	x8, _MANDOCLEVEL_OK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MANDOCLEVEL_OK@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"demandoc"

	.comm	_progname,8,3                   ; @progname
l_.str.1:                               ; @.str.1
	.asciz	"ikm:pw"

	.comm	_MANDOCLEVEL_BADARG,8,3         ; @MANDOCLEVEL_BADARG
	.comm	_MPARSE_SO,4,2                  ; @MPARSE_SO
	.comm	_MPARSE_UTF8,4,2                ; @MPARSE_UTF8
	.comm	_MPARSE_LATIN1,4,2              ; @MPARSE_LATIN1
	.comm	_MPARSE_VALIDATE,4,2            ; @MPARSE_VALIDATE
	.comm	_MANDOC_OS_OTHER,4,2            ; @MANDOC_OS_OTHER
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
l_.str.2:                               ; @.str.2
	.asciz	"<stdin>"

	.comm	_MANDOCLEVEL_OK,8,3             ; @MANDOCLEVEL_OK
.subsections_via_symbols
