	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_sector
_add_sector:                            ## @add_sector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi), %r11d
	testl	%r11d, %r11d
	jle	LBB0_9
## %bb.1:
	movq	8(%rdi), %r9
	xorl	%eax, %eax
	leal	-128(%rdx), %r10d
	movl	%r11d, %r8d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rdi), %rcx
	cmpl	$131, (%rcx,%rax,4)
	cmovel	%eax, %r8d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rax, %r11
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%r9,%rax,8)
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r10d
	ja	LBB0_3
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r10,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	16(%rdi), %rcx
	movl	$-129, %edx
	addl	(%rcx,%rax,4), %edx
	cmpl	$1, %edx
	jbe	LBB0_18
## %bb.8:
	movl	$128, (%rcx,%rax,4)
	popq	%rbp
	retq
LBB0_9:
	movl	%r11d, %r8d
LBB0_10:
	movq	_MaxFault@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jge	LBB0_13
## %bb.11:
	movq	8(%rdi), %rax
	movslq	%r8d, %rcx
	movq	%rsi, (%rax,%rcx,8)
	movq	16(%rdi), %rax
	movl	%edx, (%rax,%rcx,4)
	cmpl	%r8d, (%rdi)
	jne	LBB0_13
## %bb.12:
	incl	%r8d
	movl	%r8d, (%rdi)
LBB0_13:
	popq	%rbp
	retq
LBB0_14:
	movq	16(%rdi), %rcx
	movl	(%rcx,%rax,4), %edx
	andl	$-2, %edx
	cmpl	$128, %edx
	je	LBB0_18
## %bb.20:
	movl	$130, (%rcx,%rax,4)
	popq	%rbp
	retq
LBB0_16:
	movq	16(%rdi), %rcx
	movl	$131, (%rcx,%rax,4)
	popq	%rbp
	retq
LBB0_17:
	movq	16(%rdi), %rcx
	cmpl	$128, (%rcx,%rax,4)
	movl	$129, %edx
	jne	LBB0_19
LBB0_18:
	movq	_AllPersist@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_19:
	movl	%edx, (%rcx,%rax,4)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_AllPersist,8,3                 ## @AllPersist
	.comm	_MaxFault,4,2                   ## @MaxFault
	.no_dead_strip	_add_sector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_sector
_add_sector:                            ; @add_sector
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x8, #0
	ldr	x11, [x0, #8]
	sub	w12, w2, #128
	mov	x9, x10
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x0, #16]
	ldr	w13, [x13, x8, lsl #2]
	cmp	w13, #131
	csel	w9, w8, w9, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11, x8, lsl #3]
	cmp	x13, x1
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w12, #3
	b.hi	LBB0_3
; %bb.6:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x12]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	x9, [x0, #16]
	ldr	w10, [x9, x8, lsl #2]
	sub	w10, w10, #129
	cmp	w10, #1
	b.ls	LBB0_15
; %bb.8:
	mov	w10, #128
	str	w10, [x9, x8, lsl #2]
	ret
LBB0_9:
	mov	x9, x10
LBB0_10:
Lloh2:
	adrp	x8, _MaxFault@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MaxFault@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ge	LBB0_13
; %bb.11:
	ldp	x8, x10, [x0, #8]
	str	x1, [x8, w9, sxtw #3]
	str	w2, [x10, w9, sxtw #2]
	ldr	w8, [x0]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	add	w8, w9, #1
	str	w8, [x0]
LBB0_13:
	ret
LBB0_14:
	ldr	x9, [x0, #16]
	ldr	w10, [x9, x8, lsl #2]
	and	w10, w10, #0xfffffffe
	cmp	w10, #128
	b.ne	LBB0_18
LBB0_15:
Lloh5:
	adrp	x10, _AllPersist@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AllPersist@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	str	w10, [x9, x8, lsl #2]
	ret
LBB0_16:
	ldr	x9, [x0, #16]
	mov	w10, #131
	str	w10, [x9, x8, lsl #2]
	ret
LBB0_17:
	ldr	x9, [x0, #16]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
Lloh8:
	adrp	x11, _AllPersist@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AllPersist@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	mov	w12, #129
	cmp	w10, #128
	csel	w10, w11, w12, eq
	str	w10, [x9, x8]
	ret
LBB0_18:
	mov	w10, #130
	str	w10, [x9, x8, lsl #2]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
                                        ; -- End function
	.comm	_AllPersist,8,3                 ; @AllPersist
	.comm	_MaxFault,4,2                   ; @MaxFault
	.no_dead_strip	_add_sector
.subsections_via_symbols
