	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_parser
_choose_parser:                         ## @choose_parser
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_roff_getformat
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:
	movq	_MPARSE_MDOC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_18
## %bb.16:
	movq	_MACROSET_MDOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	cmpq	$0, 24(%rcx)
	jne	LBB0_21
## %bb.17:
	movq	_MDOC_Dd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MDOC_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roffhash_alloc
	movq	(%r14), %rcx
	leaq	24(%rcx), %rdx
	jmp	LBB0_20
LBB0_18:
	movq	_MACROSET_MAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	cmpq	$0, 16(%rcx)
	jne	LBB0_21
## %bb.19:
	movq	_MAN_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roffhash_alloc
	movq	(%r14), %rcx
	leaq	16(%rcx), %rdx
LBB0_20:
	movq	%rax, (%rdx)
LBB0_21:
	movq	_TOKEN_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %rax
	movslq	8(%rax), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	jle	LBB0_15
## %bb.2:
	movq	(%rax), %rax
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$46, %cl
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$39, %cl
	jne	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rax), %rdi
	movzbl	1(%rax), %ecx
	cmpb	$84, %cl
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$68, %cl
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$100, 2(%rax)
	jne	LBB0_6
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$72, 2(%rax)
	je	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edx
	subl	%edi, %edx
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rbx, %rax
	jb	LBB0_3
	jmp	LBB0_15
LBB0_11:
	movq	_MPARSE_MDOC@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_MPARSE_MAN@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MPARSE_MDOC,4,2                ## @MPARSE_MDOC
	.comm	_MPARSE_MAN,4,2                 ## @MPARSE_MAN
	.comm	_MACROSET_MDOC,4,2              ## @MACROSET_MDOC
	.comm	_MDOC_Dd,4,2                    ## @MDOC_Dd
	.comm	_MDOC_MAX,4,2                   ## @MDOC_MAX
	.comm	_MACROSET_MAN,4,2               ## @MACROSET_MAN
	.comm	_MAN_TH,4,2                     ## @MAN_TH
	.comm	_MAN_MAX,4,2                    ## @MAN_MAX
	.comm	_TOKEN_NONE,4,2                 ## @TOKEN_NONE
	.no_dead_strip	_choose_parser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_parser
_choose_parser:                         ; @choose_parser
	.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
	ldr	w0, [x0, #16]
	bl	_roff_getformat
Lloh0:
	adrp	x20, _MPARSE_MDOC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MPARSE_MDOC@GOTPAGEOFF]
	cbz	w0, LBB0_8
LBB0_1:
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _MACROSET_MDOC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MACROSET_MDOC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	x8, [x19]
	str	w9, [x8, #8]
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _MDOC_Dd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDOC_Dd@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _MDOC_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDOC_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_roffhash_alloc
	ldr	x8, [x19]
	add	x9, x8, #24
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _MACROSET_MAN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MACROSET_MAN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
	ldr	x8, [x19]
	str	w9, [x8, #8]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_7
; %bb.5:
Lloh14:
	adrp	x8, _MAN_TH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAN_TH@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _MAN_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAN_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_roffhash_alloc
	ldr	x8, [x19]
	add	x9, x8, #16
LBB0_6:
	str	x0, [x9]
LBB0_7:
Lloh20:
	adrp	x9, _TOKEN_NONE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TOKEN_NONE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	x8, [x8]
	str	w9, [x8]
	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
LBB0_8:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.9:
	ldr	x8, [x8]
	add	x21, x8, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #46
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #39
	b.ne	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x8
	ldrb	w9, [x0, #1]!
	cmp	w9, #84
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #68
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x8, #2]
	cmp	w8, #100
	b.ne	LBB0_17
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x8
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x8, #2]
	cmp	w8, #72
	b.eq	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	w2, w21, w0
	mov	w1, #10
	bl	_memchr
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	cmp	x8, x21
	b.lo	LBB0_10
	b	LBB0_1
LBB0_19:
	mov	w0, #0
	b	LBB0_1
LBB0_20:
	ldr	w0, [x20]
	b	LBB0_1
LBB0_21:
Lloh23:
	adrp	x8, _MPARSE_MAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MPARSE_MAN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MPARSE_MDOC,4,2                ; @MPARSE_MDOC
	.comm	_MPARSE_MAN,4,2                 ; @MPARSE_MAN
	.comm	_MACROSET_MDOC,4,2              ; @MACROSET_MDOC
	.comm	_MDOC_Dd,4,2                    ; @MDOC_Dd
	.comm	_MDOC_MAX,4,2                   ; @MDOC_MAX
	.comm	_MACROSET_MAN,4,2               ; @MACROSET_MAN
	.comm	_MAN_TH,4,2                     ; @MAN_TH
	.comm	_MAN_MAX,4,2                    ; @MAN_MAX
	.comm	_TOKEN_NONE,4,2                 ; @TOKEN_NONE
	.no_dead_strip	_choose_parser
.subsections_via_symbols
