	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_chunk
_handle_chunk:                          ## @handle_chunk
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpb	$0, (%rbx)
	setne	%dil
	callq	_assert
	cmpb	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_HRDBG
	movq	%rbx, %rdi
	callq	_partition_entry_find_by_name
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_partition_entry_create
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_HR_PARTITION_FOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
	leal	1023(%r14), %ecx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %ecx
	sarl	$10, %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	cmovgel	%edx, %ecx
	movl	%ecx, (%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ANALYZE chunk %s"

	.comm	_HR_PARTITION_FOUND,4,2         ## @HR_PARTITION_FOUND
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_handle_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_chunk
_handle_chunk:                          ; @handle_chunk
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	ldrb	w8, [x20]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_HRDBG
	mov	x0, x20
	bl	_partition_entry_find_by_name
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_partition_entry_create
	cbz	x0, LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _HR_PARTITION_FOUND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HR_PARTITION_FOUND@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	add	w9, w19, #1023
	cmp	w19, #0
	csel	w9, w9, w19, lt
Lloh5:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
	asr	w9, w9, #10
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	csel	w9, w9, w10, lt
	stp	w9, w8, [x0]
LBB0_4:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ANALYZE chunk %s"

	.comm	_HR_PARTITION_FOUND,4,2         ; @HR_PARTITION_FOUND
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_handle_chunk
.subsections_via_symbols
