	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_rar_bid
_archive_read_format_rar_bid:           ## @archive_read_format_rar_bid
	.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
	movl	$-1, %ebx
	cmpl	$30, %esi
	jg	LBB0_19
## %bb.1:
	movq	%rdi, %r15
	movl	$7, %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r14
	movq	_RAR_SIGNATURE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%rax, %rdi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	cmpb	$77, (%r14)
	jne	LBB0_5
## %bb.4:
	cmpb	$90, 1(%r14)
	je	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_19
LBB0_6:
	movl	$65536, %ebx                    ## imm = 0x10000
	movl	$4096, %r14d                    ## imm = 0x1000
	movl	$69632, %esi                    ## imm = 0x11000
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	subl	%r12d, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	leal	(%r14,%rbx), %esi
	cmpl	$131073, %esi                   ## imm = 0x20001
	jge	LBB0_18
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r15, %rdi
	leaq	-44(%rbp), %rdx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r12
	movslq	%ebx, %rax
	leaq	(%r12,%rax), %rbx
	addq	%r12, %rax
	addq	$7, %rax
	movslq	-44(%rbp), %rcx
	addq	%r12, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	16(%rbx), %rax
	movslq	-44(%rbp), %rcx
	addq	%r12, %rcx
	addq	$23, %rbx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jb	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$128, %r14d
	jl	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	sarl	%r14d
	jmp	LBB0_8
LBB0_17:
	movl	$30, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_RAR_SIGNATURE,8,3              ## @RAR_SIGNATURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\177ELF"

	.no_dead_strip	_archive_read_format_rar_bid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_read_format_rar_bid
_archive_read_format_rar_bid:           ; @archive_read_format_rar_bid
	.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
	cmp	w1, #30
	b.gt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w1, #7
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x22, _RAR_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RAR_SIGNATURE@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	w2, #7
	bl	_memcmp
	cbz	x0, LBB0_18
; %bb.3:
	ldrb	w8, [x20]
	cmp	w8, #77
	b.ne	LBB0_5
; %bb.4:
	ldrb	w8, [x20, #1]
	cmp	w8, #90
	b.eq	LBB0_8
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_19
LBB0_7:
	mov	w0, #-1
	b	LBB0_19
LBB0_8:
	mov	w21, #65536
	mov	w23, #4096
	mov	w1, #4096
	movk	w1, #1, lsl #16
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x8
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	w21, w21, w20
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w1, w23, w21
	cmp	w1, #32, lsl #12                ; =131072
	b.gt	LBB0_6
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	add	x2, sp, #12
	mov	x0, x19
	bl	___archive_read_ahead
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x20, x0
	add	x21, x0, w21, sxtw
	add	x8, x21, #7
	ldrsw	x9, [sp, #12]
	add	x9, x0, x9
	cmp	x8, x9
	b.hs	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x22]
	mov	x0, x21
	mov	w2, #7
	bl	_memcmp
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x8, x21, #16
	ldrsw	x9, [sp, #12]
	add	x10, x21, #23
	add	x9, x20, x9
	cmp	x10, x9
	mov	x21, x8
	b.lo	LBB0_14
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w23, #128
	b.lt	LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	asr	w23, w23, #1
	b	LBB0_11
LBB0_18:
	mov	w0, #30
LBB0_19:
	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 AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RAR_SIGNATURE,8,3              ; @RAR_SIGNATURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\177ELF"

	.no_dead_strip	_archive_read_format_rar_bid
.subsections_via_symbols
