	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_find_formats
	xorl	%eax, %eax
	callq	_genlegend
	cmpl	$2, %ebx
	jne	LBB0_4
## %bb.1:
	movq	8(%r14), %rax
	cmpb	$45, (%rax)
	jne	LBB0_4
## %bb.2:
	cmpb	$104, 1(%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_genheader
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_gencode
LBB0_5:
	movq	_stdout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ferror
	movq	_FATAL_EXIT_CODE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movl	(%r14), %edi
	callq	_fflush
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movl	(%r14), %edi
	callq	_fclose
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_SUCCESS_EXIT_CODE@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_8:
	movq	_FATAL_EXIT_CODE@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_FATAL_EXIT_CODE,4,2            ## @FATAL_EXIT_CODE
	.comm	_SUCCESS_EXIT_CODE,4,2          ## @SUCCESS_EXIT_CODE
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_find_formats
	bl	_genlegend
	cmp	w20, #2
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldrb	w9, [x8]
	cmp	w9, #45
	b.ne	LBB0_4
; %bb.2:
	ldrb	w8, [x8, #1]
	cmp	w8, #104
	b.ne	LBB0_4
; %bb.3:
	bl	_genheader
	b	LBB0_5
LBB0_4:
	bl	_gencode
LBB0_5:
Lloh0:
	adrp	x20, _stdout@GOTPAGE
Lloh1:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ferror
	cbz	x0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x19, _FATAL_EXIT_CODE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _FATAL_EXIT_CODE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w0, [x20]
	bl	_fflush
Lloh4:
	adrp	x19, _FATAL_EXIT_CODE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _FATAL_EXIT_CODE@GOTPAGEOFF]
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	bl	_fclose
Lloh6:
	adrp	x8, _SUCCESS_EXIT_CODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUCCESS_EXIT_CODE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x19, x8, x19, eq
LBB0_9:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_FATAL_EXIT_CODE,4,2            ; @FATAL_EXIT_CODE
	.comm	_SUCCESS_EXIT_CODE,4,2          ; @SUCCESS_EXIT_CODE
.subsections_via_symbols
