	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mparse_open                    ## -- Begin function mparse_open
	.p2align	4, 0x90
_mparse_open:                           ## @mparse_open
	.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
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$46, %esi
	callq	_strrchr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	incq	%rax
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movl	%ecx, (%r14)
	movq	_O_RDONLY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.4:
	movl	$-1, %ebx
	cmpl	$0, (%r14)
	jne	LBB0_7
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_mandoc_asprintf
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	callq	_open
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi
	callq	_free
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	cmpl	$-1, %r15d
	je	LBB0_7
## %bb.6:
	movl	$1, (%r14)
	movl	%r15d, %ebx
LBB0_7:
	movl	%ebx, %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	"gz"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"%s.gz"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mparse_open                    ; -- Begin function mparse_open
	.p2align	2
_mparse_open:                           ; @mparse_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	x0, x1
	mov	w1, #46
	bl	_strrchr
	str	x0, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x0, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	str	w8, [x19]
Lloh2:
	adrp	x22, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	mov	w21, #-1
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x23, _errno@GOTPAGE
Lloh5:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w24, [x23]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_mandoc_asprintf
	ldr	x0, [sp, #8]
	ldr	w1, [x22]
	bl	_open
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_free
	str	w24, [x23]
	cmn	w21, #1
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gz"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"%s.gz"

.subsections_via_symbols
