	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_lha_bid
_archive_read_format_lha_bid:           ## @archive_read_format_lha_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, %r13d
	cmpl	$30, %esi
	jg	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	movq	_H_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_lha_check_header_format
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	xorl	%r13d, %r13d
	cmpb	$77, (%rbx)
	jne	LBB0_17
## %bb.4:
	cmpb	$90, 1(%rbx)
	jne	LBB0_17
## %bb.5:
	xorl	%r12d, %r12d
	movl	$4096, %r15d                    ## imm = 0x1000
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	_H_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%r12), %esi
	movq	%r14, %rdi
	leaq	-44(%rbp), %rdx
	callq	___archive_read_ahead
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	sarl	%r15d
	movl	(%r13), %eax
	addl	$3, %eax
	cmpl	%eax, %r15d
	jge	LBB0_7
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movslq	%r12d, %r12
	addq	%rax, %r12
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r13), %rax
	addq	%r12, %rax
	movslq	-44(%rbp), %rcx
	addq	%rbx, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r12, %rdi
	callq	_lha_check_header_format
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	addq	%rax, %r12
	jmp	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	subl	%ebx, %r12d
	xorl	%r13d, %r13d
	cmpl	$20480, %r12d                   ## imm = 0x5000
	jl	LBB0_6
	jmp	LBB0_17
LBB0_16:
	movl	$30, %r13d
	jmp	LBB0_17
LBB0_15:
	xorl	%r13d, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %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
	.no_dead_strip	_archive_read_format_lha_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_lha_bid
_archive_read_format_lha_bid:           ; @archive_read_format_lha_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_13
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _H_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_13
; %bb.2:
	mov	x20, x0
	bl	_lha_check_header_format
	cbz	x0, LBB0_15
; %bb.3:
	ldrb	w8, [x20]
	cmp	w8, #77
	b.ne	LBB0_14
; %bb.4:
	ldrb	w8, [x20, #1]
	cmp	w8, #90
	b.ne	LBB0_14
; %bb.5:
	mov	w21, #0
	mov	w23, #4096
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	w1, w23, w21
	add	x2, sp, #12
	mov	x0, x19
	bl	___archive_read_ahead
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	asr	w23, w23, #1
	ldr	w8, [x22]
	add	w8, w8, #3
	cmp	w23, w8
	b.ge	LBB0_6
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	add	x21, x0, w21, sxtw
	ldrsw	x8, [x22]
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x21, x8
	ldrsw	x9, [sp, #12]
	add	x9, x20, x9
	cmp	x8, x9
	b.hs	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_lha_check_header_format
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrsw	x8, [x22]
	add	x21, x21, x0
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	sub	w21, w21, w20
	cmp	w21, #5, lsl #12                ; =20480
	b.lt	LBB0_6
	b	LBB0_16
LBB0_13:
	mov	w0, #-1
	b	LBB0_16
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #30
LBB0_16:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_H_SIZE,4,2                     ; @H_SIZE
	.no_dead_strip	_archive_read_format_lha_bid
.subsections_via_symbols
