	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_2:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	$-4, %rsi
	callq	_fseek
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	movq	%rbx, %rdi
	callq	_ftell
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_getle32
	movq	%rax, -40(%rbp)
	movq	%rbx, %rdi
	callq	_fclose
	movq	-40(%rbp), %rax
	xorl	%r15d, %r15d
	movq	%rax, %rcx
	subq	%r12, %rcx
	cmovleq	%r15, %rcx
	sarq	$12, %rax
	leaq	(%rax,%rcx), %rbx
	addq	$36881, %rbx                    ## imm = 0x9011
	andq	$-4096, %rbx                    ## imm = 0xF000
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.15(%rip), %rdi
	callq	_puts
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.16(%rip), %rdi
	callq	_puts
	movq	-40(%rbp), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.17(%rip), %rdi
	callq	_puts
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.18(%rip), %rdi
	callq	_puts
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	leaq	L_str.20(%rip), %rdi
	callq	_puts
	movq	8(%r14), %rsi
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.21(%rip), %rdi
	callq	_puts
LBB0_7:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%r14), %rdi
	callq	_perror
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_5:
	movq	8(%r14), %rdi
	callq	_perror
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: %s compressed_file\n"

L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
L_.str.4:                               ## @.str.4
	.asciz	"z_input_len = %lu\n"

L_.str.6:                               ## @.str.6
	.asciz	"z_output_len = %lu\n"

L_.str.8:                               ## @.str.8
	.asciz	"z_extract_offset = 0x%lx\n"

L_.str.10:                              ## @.str.10
	.asciz	"z_extract_offset_negative = -0x%lx\n"

L_.str.13:                              ## @.str.13
	.asciz	".incbin \"%s\"\n"

L_str:                                  ## @str
	.asciz	".section \".rodata.compressed\",\"a\",@progbits"

L_str.15:                               ## @str.15
	.asciz	".globl z_input_len"

L_str.16:                               ## @str.16
	.asciz	".globl z_output_len"

L_str.17:                               ## @str.17
	.asciz	".globl z_extract_offset"

L_str.18:                               ## @str.18
	.asciz	".globl z_extract_offset_negative"

L_str.19:                               ## @str.19
	.asciz	".globl input_data, input_data_end"

L_str.20:                               ## @str.20
	.asciz	"input_data:"

L_str.21:                               ## @str.21
	.asciz	"input_data_end:"

.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh7:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, #-4
	bl	_fseek
	cbnz	x0, LBB0_7
LBB0_4:
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #1
	mov	x3, x20
	bl	_fread
	mov	x0, x20
	bl	_ftell
	mov	x21, x0
	add	x0, sp, #8
	bl	_getle32
	str	x0, [sp, #8]
	mov	x0, x20
	bl	_fclose
	ldr	x8, [sp, #8]
	subs	x9, x8, x21
	csel	x9, x9, xzr, gt
	add	x8, x9, x8, asr #12
	mov	w9, #36881
	add	x8, x8, x9
	and	x20, x8, #0xfffffffffffff000
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh12:
	adrp	x0, l_str.15@PAGE
Lloh13:
	add	x0, x0, l_str.15@PAGEOFF
	bl	_puts
	str	x21, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh16:
	adrp	x0, l_str.16@PAGE
Lloh17:
	add	x0, x0, l_str.16@PAGEOFF
	bl	_puts
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
Lloh20:
	adrp	x0, l_str.17@PAGE
Lloh21:
	add	x0, x0, l_str.17@PAGEOFF
	bl	_puts
	str	x20, [sp]
Lloh22:
	adrp	x0, l_.str.8@PAGE
Lloh23:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
Lloh24:
	adrp	x0, l_str.18@PAGE
Lloh25:
	add	x0, x0, l_str.18@PAGEOFF
	bl	_puts
	str	x20, [sp]
Lloh26:
	adrp	x0, l_.str.10@PAGE
Lloh27:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
Lloh28:
	adrp	x0, l_str.19@PAGE
Lloh29:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
Lloh30:
	adrp	x0, l_str.20@PAGE
Lloh31:
	add	x0, x0, l_str.20@PAGEOFF
	bl	_puts
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.13@PAGE
Lloh33:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_printf
Lloh34:
	adrp	x0, l_str.21@PAGE
Lloh35:
	add	x0, x0, l_str.21@PAGEOFF
	bl	_puts
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_perror
	mov	w0, #1
	b	LBB0_5
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_perror
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: %s compressed_file\n"

l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
l_.str.4:                               ; @.str.4
	.asciz	"z_input_len = %lu\n"

l_.str.6:                               ; @.str.6
	.asciz	"z_output_len = %lu\n"

l_.str.8:                               ; @.str.8
	.asciz	"z_extract_offset = 0x%lx\n"

l_.str.10:                              ; @.str.10
	.asciz	"z_extract_offset_negative = -0x%lx\n"

l_.str.13:                              ; @.str.13
	.asciz	".incbin \"%s\"\n"

l_str:                                  ; @str
	.asciz	".section \".rodata.compressed\",\"a\",@progbits"

l_str.15:                               ; @str.15
	.asciz	".globl z_input_len"

l_str.16:                               ; @str.16
	.asciz	".globl z_output_len"

l_str.17:                               ; @str.17
	.asciz	".globl z_extract_offset"

l_str.18:                               ; @str.18
	.asciz	".globl z_extract_offset_negative"

l_str.19:                               ; @str.19
	.asciz	".globl input_data, input_data_end"

l_str.20:                               ; @str.20
	.asciz	"input_data:"

l_str.21:                               ; @str.21
	.asciz	"input_data_end:"

.subsections_via_symbols
