	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HDRSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	cmpl	$2, %ebx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	jl	LBB0_1
## %bb.2:
	movl	%ebx, %r15d
	movl	$1, %ebx
	leaq	L_.str.1(%rip), %r14
	leaq	L_.str.2(%rip), %r12
	leaq	L_.str.3(%rip), %r13
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx,8), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx,%rbx,8), %rax
	movq	_ascii1@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx,%rbx,8), %rax
	movq	_ascii2@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx,%rbx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_show_fwids
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	_ascii1@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.13:
	movq	_ascii2@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	testq	%rbx, %rbx
	jne	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	callq	_showhelp
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, %r13
	testq	%rax, %rax
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_18
## %bb.17:
	xorl	%edi, %edi
	callq	_oferror
LBB0_18:
	cmpl	$2, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_33
## %bb.19:
	movl	$1, %r12d
	movl	$2, %r15d
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	callq	_free
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	$2, %r12
	addq	$2, %r15
	cmpl	%r14d, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jge	LBB0_33
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%r12,8), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rbx
	cmpl	%r14d, %r15d
	jl	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	callq	_showhelp
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	leal	1(%r15), %eax
	xorl	%r13d, %r13d
	cmpl	%r14d, %eax
	setge	%r14b
	movq	%rbx, %rdi
	callq	_find_hdrinfo
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	callq	_showhelp
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r12,8), %rdi
	leaq	-80(%rbp), %rsi
	callq	_read_file
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	callq	_showhelp
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	movb	%r14b, %r13b
	movq	-80(%rbp), %rcx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r13d, %r8d
	callq	_makehdr
	movq	_HDRSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_oferror
LBB0_29:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_oferror
	jmp	LBB0_31
LBB0_33:
	movq	%r13, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	xorl	%edi, %edi
	callq	_oferror
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDRSIZE,4,2                    ## @HDRSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-1"

	.comm	_ascii1,8,3                     ## @ascii1
L_.str.1:                               ## @.str.1
	.asciz	"-2"

	.comm	_ascii2,8,3                     ## @ascii2
L_.str.2:                               ## @.str.2
	.asciz	"-o"

L_.str.3:                               ## @.str.3
	.asciz	"-ids"

L_.str.4:                               ## @.str.4
	.asciz	"w"

L_.str.5:                               ## @.str.5
	.asciz	"-"

.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _HDRSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDRSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cmp	w0, #2
	b.lt	LBB0_11
; %bb.1:
	mov	x22, #0
	mov	w8, w20
	add	x27, x19, #8
	sub	x28, x8, #1
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
Lloh10:
	adrp	x24, l_.str.1@PAGE
Lloh11:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh12:
	adrp	x25, l_.str.2@PAGE
Lloh13:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh14:
	adrp	x26, l_.str.3@PAGE
Lloh15:
	add	x26, x26, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #8
	subs	x28, x28, #1
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27]
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27, #8]
Lloh16:
	adrp	x9, _ascii1@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ascii1@GOTPAGEOFF]
Lloh18:
	str	x8, [x9]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x27]
	mov	x1, x24
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27, #8]
Lloh19:
	adrp	x9, _ascii2@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ascii2@GOTPAGEOFF]
Lloh21:
	str	x8, [x9]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x27]
	mov	x1, x25
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x27, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x27]
	mov	x1, x26
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_show_fwids
	b	LBB0_2
LBB0_11:
	mov	x22, #0
LBB0_12:
Lloh22:
	adrp	x8, _ascii1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ascii1@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _ascii2@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ascii2@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_14
; %bb.13:
	bl	_showhelp
LBB0_14:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_fopen
	mov	x22, x0
	cbz	x0, LBB0_16
; %bb.15:
	cmp	w20, #2
	b.ge	LBB0_17
	b	LBB0_31
LBB0_16:
	bl	_oferror
	cmp	w20, #2
	b.lt	LBB0_31
LBB0_17:
	mov	x27, #0
Lloh30:
	adrp	x23, l_.str.5@PAGE
Lloh31:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x24
	bl	_free
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w8, w28, #1
	mov	x27, x28
	cmp	w8, w20
	b.ge	LBB0_31
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x24, x19, x27, lsl #3
	ldr	x0, [x24, #8]
	mov	x1, x23
	mov	w2, #1
	bl	_strncmp
	add	x28, x27, #2
	cbz	x0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x24, [x24, #8]
	cmp	w28, w20
	b.lt	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	bl	_showhelp
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w8, w27, #3
	cmp	w8, w20
	cset	w25, ge
	mov	x0, x24
	bl	_find_hdrinfo
	mov	x26, x0
	cbnz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	bl	_showhelp
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x19, x27, lsl #3
	ldr	x0, [x8, #16]
	sub	x1, x29, #96
	bl	_read_file
	mov	x24, x0
	cbnz	x0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	bl	_showhelp
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=1
	ldur	x3, [x29, #-96]
	mov	x0, x21
	mov	x1, x26
	mov	x2, x24
	mov	x4, x25
	bl	_makehdr
Lloh32:
	adrp	x8, _HDRSIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HDRSIZE@GOTPAGEOFF]
Lloh34:
	ldrsw	x1, [x8]
	mov	x0, x21
	mov	w2, #1
	mov	x3, x22
	bl	_fwrite
	cmp	w0, #1
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x22
	bl	_oferror
LBB0_29:                                ;   in Loop: Header=BB0_20 Depth=1
	ldur	x1, [x29, #-96]
	mov	x0, x24
	mov	w2, #1
	mov	x3, x22
	bl	_fwrite
	cmp	w0, #1
	b.eq	LBB0_18
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x22
	bl	_oferror
	b	LBB0_18
LBB0_31:
	mov	x0, x22
	bl	_fclose
	cbz	x0, LBB0_33
; %bb.32:
	mov	x0, #0
	bl	_oferror
LBB0_33:
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_HDRSIZE,4,2                    ; @HDRSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-1"

	.comm	_ascii1,8,3                     ; @ascii1
l_.str.1:                               ; @.str.1
	.asciz	"-2"

	.comm	_ascii2,8,3                     ; @ascii2
l_.str.2:                               ; @.str.2
	.asciz	"-o"

l_.str.3:                               ; @.str.3
	.asciz	"-ids"

l_.str.4:                               ; @.str.4
	.asciz	"w"

l_.str.5:                               ; @.str.5
	.asciz	"-"

.subsections_via_symbols
