	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar_context_tasklet
_ar_context_tasklet:                    ## @ar_context_tasklet
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r12
	leaq	-44(%rbp), %rsi
	callq	_ar_search_last_active_buffer
	movl	%eax, %r14d
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ar_sync_buffers_for_cpu
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	%r14d, %ebx
	addq	8(%r12), %rbx
	movl	-44(%rbp), %r13d
	movq	%r12, %rdi
	callq	_ar_first_buffer_index
	cmpl	%eax, %r14d
	jae	LBB0_4
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_AR_BUFFERS@GOTPCREL(%rip), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imull	(%rcx), %r13d
	addq	8(%r12), %r13
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_handle_ar_packets
	cmpq	%r13, %rax
	jb	LBB0_7
## %bb.3:
	movq	%rax, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AR_BUFFERS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	subq	%rax, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_4:
	addq	%r13, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_handle_ar_packets
	cmpq	%rbx, %rax
	je	LBB0_9
## %bb.5:
	jbe	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_ar_context_abort
LBB0_7:
	movq	$0, (%r12)
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, (%r12)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ar_recycle_buffers
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_AR_BUFFERS,4,2                 ## @AR_BUFFERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inconsistent descriptor"

	.no_dead_strip	_ar_context_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar_context_tasklet
_ar_context_tasklet:                    ; @ar_context_tasklet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x21, [x0]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x19, x0
	add	x1, sp, #12
	bl	_ar_search_last_active_buffer
	mov	x20, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_ar_sync_buffers_for_cpu
	ldr	x23, [x19, #8]
Lloh0:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w25, [x26]
	ldr	w24, [sp, #12]
	mov	x0, x19
	bl	_ar_first_buffer_index
	cmp	w20, w0
	b.hs	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x27, _AR_BUFFERS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AR_BUFFERS@GOTPAGEOFF]
	ldr	w9, [x27]
	ldr	w10, [x26]
	mul	w9, w10, w9
	add	x22, x8, x9
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_handle_ar_packets
	cmp	x0, x22
	b.lo	LBB0_7
; %bb.3:
	ldr	w8, [x27]
	ldr	w9, [x26]
	mul	w8, w9, w8
	sub	x21, x0, x8
LBB0_4:
	mul	w8, w25, w20
	add	x8, x23, x8
	add	x22, x8, x24
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_handle_ar_packets
	cmp	x0, x22
	b.eq	LBB0_8
; %bb.5:
	b.ls	LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ar_context_abort
LBB0_7:
	str	xzr, [x19]
	b	LBB0_9
LBB0_8:
	str	x22, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_ar_recycle_buffers
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_AR_BUFFERS,4,2                 ; @AR_BUFFERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inconsistent descriptor"

	.no_dead_strip	_ar_context_tasklet
.subsections_via_symbols
