	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parsebs
_parsebs:                               ## @parsebs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movl	(%rax), %ecx
	cmpl	$105, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$233, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$235, %ecx
	jne	LBB0_5
## %bb.3:
	cmpl	$144, 8(%rax)
	jne	LBB0_5
LBB0_4:
	cmpl	$239, 8(%rbx)
	jle	LBB0_5
## %bb.6:
	movl	48(%rbx), %edi
	callq	_cv2
	movq	_SECSIZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	movl	12(%rbx), %edi
	movl	%edi, (%r14)
	leal	-1(%rdi), %eax
	testl	%eax, %edi
	sete	%al
	testl	%edi, %edi
	setne	%cl
	testb	%al, %cl
	je	LBB0_5
## %bb.8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_secbyt
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_ffs
	decq	%rax
	movq	%rax, 64(%r14)
	movl	44(%rbx), %edi
	callq	_cv2
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$2, 16(%rbx)
	jne	LBB0_5
## %bb.10:
	movl	40(%rbx), %edi
	callq	_cv2
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_5
LBB0_11:
	movl	36(%rbx), %edi
	callq	_cv4
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.12:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.13:
	cmpl	$17, %eax
	jge	LBB0_5
## %bb.14:
	movl	32(%rbx), %edi
	callq	_cv4
	movq	%rax, 16(%r14)
	movq	_LOCLUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
LBB0_15:
	movl	28(%rbx), %edi
	callq	_cv2
	movl	%eax, 24(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.16:
	movl	16(%rbx), %r15d
	imull	8(%r14), %r15d
	addl	%eax, %r15d
	movl	%r15d, 28(%r14)
	movq	56(%r14), %rdi
	callq	_entsec
	addl	%r15d, %eax
	movl	%eax, 32(%r14)
	movl	24(%rbx), %edi
	callq	_cv2
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	20(%rbx), %edi
	callq	_cv4
	testl	%eax, %eax
	je	LBB0_5
LBB0_18:
	subl	32(%r14), %eax
	jl	LBB0_5
## %bb.19:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_secblk
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%r14)
	movq	_LOCLUS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_20
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%ecx, %ecx
	cmpq	$4085, %rax                     ## imm = 0xFF5
	setge	%cl
	cmpq	$0, 56(%r14)
	leal	12(,%rcx,4), %eax
	movl	$32, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 48(%r14)
	movl	8(%r14), %edi
	callq	_secbyt
	addl	%eax, %eax
	movl	48(%r14), %ecx
	sarl	$2, %ecx
	cltd
	idivl	%ecx
	decl	%eax
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, 40(%r14)
	jle	LBB0_22
## %bb.21:
	movq	%rcx, 40(%r14)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SECSIZ,8,3                     ## @SECSIZ
	.comm	_LOCLUS,8,3                     ## @LOCLUS
	.no_dead_strip	_parsebs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parsebs
_parsebs:                               ; @parsebs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	w9, [x8]
	cmp	w9, #105
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #233
	b.eq	LBB0_4
; %bb.2:
	cmp	w9, #235
	b.ne	LBB0_19
; %bb.3:
	ldr	w8, [x8, #8]
	cmp	w8, #144
	b.ne	LBB0_19
LBB0_4:
	ldr	w8, [x20, #8]
	cmp	w8, #239
	b.le	LBB0_19
; %bb.5:
	ldr	w0, [x20, #48]
	bl	_cv2
Lloh0:
	adrp	x8, _SECSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECSIZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.6:
	ldr	w0, [x20, #12]
	str	w0, [x19]
	fmov	d0, x0
	cnt.8b	v0, v0
	uaddlv.8b	h0, v0
	fmov	w8, s0
	cmp	w8, #1
	b.ne	LBB0_19
; %bb.7:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_secbyt
	str	w0, [x19, #4]
	bl	_ffs
	sub	x8, x0, #1
	str	x8, [x19, #64]
	ldr	w0, [x20, #44]
	bl	_cv2
	str	w0, [x19, #8]
	cbz	w0, LBB0_10
; %bb.8:
	ldr	w8, [x20, #16]
	cmp	w8, #2
	b.ne	LBB0_19
; %bb.9:
	ldr	w0, [x20, #40]
	bl	_cv2
	str	x0, [x19, #56]
	cbnz	x0, LBB0_14
	b	LBB0_19
LBB0_10:
	ldr	w0, [x20, #36]
	bl	_cv4
	str	w0, [x19, #8]
	cbz	w0, LBB0_19
; %bb.11:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_19
; %bb.12:
	cmp	w8, #17
	b.ge	LBB0_19
; %bb.13:
	ldr	w0, [x20, #32]
	bl	_cv4
	str	x0, [x19, #16]
Lloh3:
	adrp	x8, _LOCLUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCLUS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_19
LBB0_14:
	ldr	w0, [x20, #28]
	bl	_cv2
	str	w0, [x19, #24]
	cbz	w0, LBB0_19
; %bb.15:
	ldr	w8, [x19, #8]
	ldr	w9, [x20, #16]
	madd	w21, w9, w8, w0
	str	w21, [x19, #28]
	ldr	x0, [x19, #56]
	bl	_entsec
	add	w8, w0, w21
	str	w8, [x19, #32]
	ldr	w0, [x20, #24]
	bl	_cv2
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	w0, [x20, #20]
	bl	_cv4
	mov	x8, x0
	cbz	w8, LBB0_19
LBB0_17:
	ldr	w8, [x19, #32]
	subs	w1, w0, w8
	b.lt	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_secblk
	add	x8, x0, #1
	str	x8, [x19, #40]
Lloh6:
	adrp	x9, _LOCLUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LOCLUS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_21
LBB0_19:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	x8, [x19, #56]
	cmp	x0, #4085
	mov	w9, #16
	mov	w10, #12
	csel	w9, w10, w9, lt
	cmp	x8, #0
	mov	w8, #32
	csel	w8, w8, w9, eq
	str	w8, [x19, #48]
	ldr	w0, [x19, #8]
	bl	_secbyt
	lsl	w8, w0, #1
	ldr	w9, [x19, #48]
	asr	w9, w9, #2
	sdiv	w8, w8, w9
	sub	w8, w8, #1
	ldr	x9, [x19, #40]
	sxtw	x8, w8
	cmp	x9, x8
	b.le	LBB0_23
; %bb.22:
	mov	w0, #0
	str	x8, [x19, #40]
	b	LBB0_20
LBB0_23:
	mov	w0, #0
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SECSIZ,8,3                     ; @SECSIZ
	.comm	_LOCLUS,8,3                     ; @LOCLUS
	.no_dead_strip	_parsebs
.subsections_via_symbols
