	.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, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r15
	leaq	LJTI0_0(%rip), %r13
	movq	_optarg@GOTPCREL(%rip), %r12
	jmp	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	_struct_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-82(%rax), %ecx
	cmpl	$33, %ecx
	ja	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_opt_R@GOTPCREL(%rip), %rax
	movq	$1, (%rax)
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	_input_f@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	_keyword@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	_output_f@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_10:
	movq	_input_f@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	movq	_output_f@GOTPCREL(%rip), %rbx
	je	LBB0_14
## %bb.11:
	cmpq	$0, (%rbx)
	je	LBB0_14
## %bb.12:
	movq	_struct_name@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_keyword@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_15
LBB0_14:
	xorl	%eax, %eax
	callq	_usage
LBB0_15:
	movq	_cleanup@GOTPCREL(%rip), %rdi
	callq	_atexit
	xorl	%eax, %eax
	callq	_cleanup
	movq	(%r15), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_open
	movq	_input_file@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_17:
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	(%rbx), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	xorl	%eax, %eax
	callq	_open
	movq	_output_file@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jns	LBB0_19
## %bb.18:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_19:
	movq	(%r14), %rdi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	movq	%rax, %rbx
	movl	%ebx, %edi
	callq	_do_malloc
	movq	_input_ptr@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	_input_len@GOTPCREL(%rip), %r12
	movl	%ebx, (%r12)
	imull	$954437177, %ebx, %eax          ## imm = 0x38E38E39
	addl	$238609288, %eax                ## imm = 0xE38E388
	rorl	$3, %eax
	cmpl	$59652323, %eax                 ## imm = 0x38E38E3
	jb	LBB0_21
## %bb.20:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$72, %edx
	callq	_errx
LBB0_21:
	movq	(%r14), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_23
## %bb.22:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_23:
	movq	(%r14), %rdi
	movq	(%r15), %rsi
	movl	(%r12), %edx
	callq	_read
	cmpl	(%r12), %eax
	je	LBB0_25
## %bb.24:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	movl	(%r12), %eax
LBB0_25:
	movslq	%eax, %r13
	imulq	$954437177, %r13, %r12          ## imm = 0x38E38E39
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$36, %r12
	addl	%eax, %r12d
	movslq	%r12d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	(,%rax,8), %edi
	callq	_do_malloc
	movq	%rax, %rbx
	movq	_start@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rax
	movq	_stop@GOTPCREL(%rip), %rcx
	movq	%rcx, %r8
	movq	%rax, (%rcx)
	addl	$71, %r13d
	cmpl	$143, %r13d
	jb	LBB0_34
## %bb.26:
	movl	%r12d, %edx
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_28
## %bb.27:
	xorl	%ecx, %ecx
	movq	%r8, %r9
	jmp	LBB0_30
LBB0_28:
	andl	$-4, %edx
	movl	$144, %esi
	xorl	%ecx, %ecx
	movq	%r8, %r9
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rsi, %rdi
	addq	$-144, %rdi
	movq	%rdi, (%rbx,%rcx,8)
	movq	(%r14), %rdi
	movq	(%r15), %rbx
	leaq	-72(%rbx,%rsi), %rbx
	movq	%rbx, 8(%rdi,%rcx,8)
	movq	(%r14), %rdi
	movq	(%r15), %rbx
	addq	%rsi, %rbx
	movq	%rbx, 16(%rdi,%rcx,8)
	movq	(%r14), %rdi
	movq	(%r15), %rbx
	addq	%rsi, %rbx
	addq	$72, %rbx
	movq	%rbx, 24(%rdi,%rcx,8)
	addq	$4, %rcx
	movq	(%r14), %rbx
	addq	$288, %rsi                      ## imm = 0x120
	cmpq	%rcx, %rdx
	jne	LBB0_29
LBB0_30:
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	leaq	(,%rcx,8), %rdx
	leaq	(%rdx,%rdx,8), %rdx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rdx, %rsi
	movq	%rsi, (%rbx,%rcx,8)
	incq	%rcx
	movq	(%r14), %rbx
	addq	$72, %rdx
	decq	%rax
	jne	LBB0_32
LBB0_33:
	movq	(%r9), %rax
LBB0_34:
	cmpq	%rax, %rbx
	je	LBB0_36
## %bb.35:
	movq	(%rbx), %rcx
	movl	64(%rcx), %ecx
	movq	_endian32@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
LBB0_36:
	cmpq	%rax, %rbx
	movq	%r8, %r15
	jae	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	56(%rax), %rdi
	callq	_read32
	movq	(%rbx), %rcx
	movq	%rax, 56(%rcx)
	movq	(%rbx), %rax
	movq	48(%rax), %rdi
	callq	_read32
	movq	(%rbx), %rcx
	movq	%rax, 48(%rcx)
	movq	(%rbx), %rax
	movq	40(%rax), %rdi
	callq	_read32
	movq	(%rbx), %rcx
	movq	%rax, 40(%rcx)
	addq	$8, %rbx
	cmpq	(%r15), %rbx
	jb	LBB0_37
LBB0_38:
	movq	_opt_R@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	(%r14), %rdi
	jne	LBB0_39
## %bb.40:
	movq	_compare@GOTPCREL(%rip), %rcx
	jmp	LBB0_41
LBB0_39:
	movq	_compare_R@GOTPCREL(%rip), %rcx
LBB0_41:
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_qsort
	movq	(%r14), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_44
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	movq	32(%rdx), %rsi
	movq	$0, 56(%rsi)
	movq	24(%rdx), %rsi
	movq	$0, 56(%rsi)
	movq	16(%rdx), %rsi
	movq	$0, 56(%rsi)
	movq	8(%rdx), %rsi
	movq	$0, 56(%rsi)
	movq	(%rdx), %rdx
	movq	$0, 56(%rdx)
	addq	$8, %rax
	cmpq	%rcx, %rax
	jb	LBB0_42
LBB0_44:
	movq	_keyword@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_45
## %bb.46:
	movq	(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_45
## %bb.47:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	callq	_errx
	jmp	LBB0_48
LBB0_45:
	xorl	%eax, %eax
	callq	_do_sysinit
LBB0_48:
	movq	_success@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"k:s:i:o:Rh"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_input_f,8,3                    ## @input_f
	.comm	_output_f,8,3                   ## @output_f
	.comm	_opt_R,8,3                      ## @opt_R
	.comm	_keyword,8,3                    ## @keyword
	.comm	_struct_name,8,3                ## @struct_name
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_input_file,8,3                 ## @input_file
	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
L_.str.1:                               ## @.str.1
	.asciz	"Could not open input file: %s"

	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_output_file,8,3                ## @output_file
L_.str.2:                               ## @.str.2
	.asciz	"Could not open output file: %s"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_input_ptr,8,3                  ## @input_ptr
	.comm	_input_len,4,2                  ## @input_len
L_.str.3:                               ## @.str.3
	.asciz	"Input file size is not divisible by %u"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.4:                               ## @.str.4
	.asciz	"Could not seek to start of input file"

L_.str.5:                               ## @.str.5
	.asciz	"Could not read input file"

	.comm	_start,8,3                      ## @start
	.comm	_stop,8,3                       ## @stop
	.comm	_endian32,4,2                   ## @endian32
	.comm	_compare,4,2                    ## @compare
	.comm	_compare_R,4,2                  ## @compare_R
L_.str.6:                               ## @.str.6
	.asciz	"sysinit"

L_.str.7:                               ## @.str.7
	.asciz	"sysuninit"

	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
L_.str.8:                               ## @.str.8
	.asciz	"Unknown keyword '%s'"

	.comm	_success,4,2                    ## @success
.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w26, #1
Lloh0:
	adrp	x27, _optarg@GOTPAGE
Lloh1:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
Lloh2:
	adrp	x25, _input_f@GOTPAGE
Lloh3:
	ldr	x25, [x25, _input_f@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
Lloh6:
	adrp	x23, _keyword@GOTPAGE
Lloh7:
	ldr	x23, [x23, _keyword@GOTPAGEOFF]
Lloh8:
	adrp	x24, _output_f@GOTPAGE
Lloh9:
	ldr	x24, [x24, _output_f@GOTPAGEOFF]
Lloh10:
	adrp	x28, _struct_name@GOTPAGE
Lloh11:
	ldr	x28, [x28, _struct_name@GOTPAGEOFF]
Lloh12:
	adrp	x22, lJTI0_0@PAGE
Lloh13:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	str	x8, [x28]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	sub	w8, w0, #82
	cmp	w8, #33
	b.hi	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _opt_R@GOTPAGE
Lloh15:
	ldr	x8, [x8, _opt_R@GOTPAGEOFF]
Lloh16:
	str	x26, [x8]
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	str	x8, [x25]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	str	x8, [x23]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	str	x8, [x24]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_10:
	ldr	x8, [x25]
	ldr	x9, [x24]
	ldr	x10, [x28]
	ldr	x11, [x23]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	ccmp	x10, #0, #4, ne
	ccmp	x11, #0, #4, ne
	b.ne	LBB0_12
; %bb.11:
	bl	_usage
LBB0_12:
Lloh17:
	adrp	x0, _cleanup@GOTPAGE
Lloh18:
	ldr	x0, [x0, _cleanup@GOTPAGEOFF]
	bl	_atexit
	bl	_cleanup
	ldr	x0, [x25]
Lloh19:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_open
Lloh22:
	adrp	x21, _input_file@GOTPAGE
Lloh23:
	ldr	x21, [x21, _input_file@GOTPAGEOFF]
	str	x0, [x21]
Lloh24:
	adrp	x20, _EX_SOFTWARE@GOTPAGE
Lloh25:
	ldr	x20, [x20, _EX_SOFTWARE@GOTPAGEOFF]
	tbz	x0, #63, LBB0_14
; %bb.13:
	ldr	w0, [x20]
	ldr	x8, [x25]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_14:
	ldr	x0, [x24]
Lloh28:
	adrp	x8, _O_TRUNC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _O_TRUNC@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w8, #384
	str	x8, [sp]
	bl	_open
Lloh37:
	adrp	x8, _output_file@GOTPAGE
Lloh38:
	ldr	x8, [x8, _output_file@GOTPAGEOFF]
Lloh39:
	str	x0, [x8]
	tbz	x0, #63, LBB0_16
; %bb.15:
	ldr	w0, [x20]
	ldr	x8, [x24]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_16:
	ldr	x0, [x21]
Lloh42:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	mov	x19, x0
	bl	_do_malloc
Lloh45:
	adrp	x24, _input_ptr@GOTPAGE
Lloh46:
	ldr	x24, [x24, _input_ptr@GOTPAGEOFF]
	str	x0, [x24]
Lloh47:
	adrp	x25, _input_len@GOTPAGE
Lloh48:
	ldr	x25, [x25, _input_len@GOTPAGEOFF]
	str	w19, [x25]
	mov	w8, #36409
	movk	w8, #14563, lsl #16
	mov	w9, #58248
	movk	w9, #3640, lsl #16
	madd	w8, w19, w8, w9
	ror	w8, w8, #3
	mov	w9, #14563
	movk	w9, #910, lsl #16
	cmp	w8, w9
	b.lo	LBB0_18
; %bb.17:
	ldr	w0, [x20]
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #72
	bl	_errx
LBB0_18:
	ldr	x0, [x21]
Lloh51:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	tbz	x0, #63, LBB0_20
; %bb.19:
	ldr	w0, [x20]
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_20:
	ldr	x0, [x21]
	ldr	x1, [x24]
	ldr	w2, [x25]
	bl	_read
	mov	x21, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w0, [x20]
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
	ldr	w21, [x25]
LBB0_22:
	mov	w8, #36409
	movk	w8, #14563, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #36
	add	w19, w8, w9
	lsl	w0, w19, #3
	bl	_do_malloc
	mov	x20, x0
Lloh58:
	adrp	x25, _start@GOTPAGE
Lloh59:
	ldr	x25, [x25, _start@GOTPAGEOFF]
	str	x0, [x25]
	add	x8, x0, w19, sxtw #3
Lloh60:
	adrp	x26, _stop@GOTPAGE
Lloh61:
	ldr	x26, [x26, _stop@GOTPAGEOFF]
	str	x8, [x26]
	add	w9, w21, #71
	cmp	w9, #143
	b.lo	LBB0_26
; %bb.23:
	mov	x8, #0
	mov	x9, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24]
	add	x10, x10, x8
	str	x10, [x20, x9, lsl #3]
	add	x9, x9, #1
	ldr	x20, [x25]
	add	x8, x8, #72
	cmp	x19, x9
	b.ne	LBB0_24
; %bb.25:
	ldr	x8, [x26]
LBB0_26:
	cmp	x20, x8
	b.eq	LBB0_29
; %bb.27:
	ldr	x9, [x20]
	ldr	w9, [x9, #64]
Lloh62:
	adrp	x10, _endian32@GOTPAGE
Lloh63:
	ldr	x10, [x10, _endian32@GOTPAGEOFF]
Lloh64:
	str	w9, [x10]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, #56]
	bl	_read32
	ldr	x8, [x20]
	str	x0, [x8, #56]
	ldr	x8, [x20]
	ldr	x0, [x8, #48]
	bl	_read32
	ldr	x8, [x20]
	str	x0, [x8, #48]
	ldr	x8, [x20]
	ldr	x0, [x8, #40]
	bl	_read32
	ldr	x8, [x20], #8
	str	x0, [x8, #40]
	ldr	x8, [x26]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	cmp	x20, x8
	b.lo	LBB0_28
; %bb.30:
Lloh65:
	adrp	x8, _opt_R@GOTPAGE
Lloh66:
	ldr	x8, [x8, _opt_R@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	ldr	x0, [x25]
Lloh68:
	adrp	x9, _compare_R@GOTPAGE
Lloh69:
	ldr	x9, [x9, _compare_R@GOTPAGEOFF]
Lloh70:
	adrp	x10, _compare@GOTPAGE
Lloh71:
	ldr	x10, [x10, _compare@GOTPAGEOFF]
	cmp	x8, #0
	csel	x3, x10, x9, eq
	mov	x1, x19
	mov	w2, #8
	bl	_qsort
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.hs	LBB0_32
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #8
	ldr	x11, [x10, #32]
	str	xzr, [x11, #56]
	ldp	x12, x11, [x10, #16]
	str	xzr, [x11, #56]
	str	xzr, [x12, #56]
	ldp	x10, x11, [x10]
	str	xzr, [x11, #56]
	str	xzr, [x10, #56]
	cmp	x8, x9
	b.lo	LBB0_31
LBB0_32:
	ldr	x0, [x23]
Lloh72:
	adrp	x1, l_.str.6@PAGE
Lloh73:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_35
; %bb.33:
	ldr	x0, [x23]
Lloh74:
	adrp	x1, l_.str.7@PAGE
Lloh75:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_35
; %bb.34:
Lloh76:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh77:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh79:
	adrp	x1, l_.str.8@PAGE
Lloh80:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_errx
	b	LBB0_36
LBB0_35:
	bl	_do_sysinit
LBB0_36:
Lloh81:
	adrp	x8, _success@GOTPAGE
Lloh82:
	ldr	x8, [x8, _success@GOTPAGEOFF]
	mov	w9, #1
Lloh83:
	str	w9, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotStr	Lloh81, Lloh82, Lloh83
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"k:s:i:o:Rh"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_input_f,8,3                    ; @input_f
	.comm	_output_f,8,3                   ; @output_f
	.comm	_opt_R,8,3                      ; @opt_R
	.comm	_keyword,8,3                    ; @keyword
	.comm	_struct_name,8,3                ; @struct_name
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_input_file,8,3                 ; @input_file
	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
l_.str.1:                               ; @.str.1
	.asciz	"Could not open input file: %s"

	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_output_file,8,3                ; @output_file
l_.str.2:                               ; @.str.2
	.asciz	"Could not open output file: %s"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_input_ptr,8,3                  ; @input_ptr
	.comm	_input_len,4,2                  ; @input_len
l_.str.3:                               ; @.str.3
	.asciz	"Input file size is not divisible by %u"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.4:                               ; @.str.4
	.asciz	"Could not seek to start of input file"

l_.str.5:                               ; @.str.5
	.asciz	"Could not read input file"

	.comm	_start,8,3                      ; @start
	.comm	_stop,8,3                       ; @stop
	.comm	_endian32,4,2                   ; @endian32
	.comm	_compare,4,2                    ; @compare
	.comm	_compare_R,4,2                  ; @compare_R
l_.str.6:                               ; @.str.6
	.asciz	"sysinit"

l_.str.7:                               ; @.str.7
	.asciz	"sysuninit"

	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
l_.str.8:                               ; @.str.8
	.asciz	"Unknown keyword '%s'"

	.comm	_success,4,2                    ; @success
.subsections_via_symbols
