	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lha_skip_sfx
_lha_skip_sfx:                          ## @lha_skip_sfx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$4096, %r12d                    ## imm = 0x1000
	movq	_H_SIZE@GOTPCREL(%rip), %r15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=2
	subq	%r13, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___archive_read_consume
	movq	%r14, %rdi
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movl	%r12d, %esi
	leaq	-44(%rbp), %rdx
	callq	___archive_read_ahead
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	-44(%rbp), %r14
	movl	(%r15), %eax
	cmpl	%eax, %r14d
	jl	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rbx
	cmpl	%r14d, %eax
	jge	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	addq	%r13, %r14
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rdi
	callq	_lha_check_header_format
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=3
	addq	%rax, %rbx
	movslq	(%r15), %rax
	addq	%rbx, %rax
	cmpq	%r14, %rax
	jb	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	shrl	%r12d
	movl	(%r15), %eax
	addl	$3, %eax
	cmpl	%eax, %r12d
	jge	LBB0_1
LBB0_4:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	subq	%r13, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	___archive_read_consume
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_SIZE,4,2                     ## @H_SIZE
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't find out LHa header"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.no_dead_strip	_lha_skip_sfx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lha_skip_sfx
_lha_skip_sfx:                          ; @lha_skip_sfx
	.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	x19, x0
	mov	w20, #4096
Lloh0:
	adrp	x23, _H_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _H_SIZE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x22, x21
	mov	x0, x19
	bl	___archive_read_consume
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	___archive_read_ahead
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x21
	cmp	w9, w8
	b.ge	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x21, x8
	mov	x22, x21
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_lha_check_header_format
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrsw	x8, [x23]
	add	x22, x22, x0
	add	x8, x22, x8
	cmp	x8, x24
	b.lo	LBB0_6
	b	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsr	w20, w20, #1
	ldr	w8, [x23]
	add	w8, w8, #3
	cmp	w20, w8
	b.ge	LBB0_2
LBB0_9:
Lloh2:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh7:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	sub	x1, x22, x21
	mov	x0, x19
	bl	___archive_read_consume
Lloh9:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_H_SIZE,4,2                     ; @H_SIZE
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't find out LHa header"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.no_dead_strip	_lha_skip_sfx
.subsections_via_symbols
