	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __vb2_buf_mem_alloc
___vb2_buf_mem_alloc:                   ## @__vb2_buf_mem_alloc
	.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
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movq	$-8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%rbx), %rdi
	callq	_PAGE_ALIGN
	movq	8(%r15), %rcx
	cmpq	8(%rcx,%rbx), %rax
	jb	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rcx
	movq	(%rcx,%r13,8), %rdx
	testq	%rdx, %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r14), %edx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_alloc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%r14), %ecx
	movl	(%r14), %edi
	movl	4(%r14), %r9d
	movl	%edi, (%rsp)
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rax, %r8
	callq	_call_ptr_memop
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	%r12, 16(%rax,%rbx)
	incq	%r13
	movslq	(%r15), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jl	LBB0_2
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_8:
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.9:
	incq	%r13
	movq	8(%r15), %rax
	movq	_put@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	(%rax,%rbx), %rdx
	movq	%r15, %rdi
	callq	_call_void_memop
	movq	8(%r15), %rax
	movq	$0, (%rax,%rbx)
	decq	%r13
	addq	$-16, %rbx
	cmpq	$1, %r13
	ja	LBB0_10
LBB0_11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_alloc,4,2                      ## @alloc
	.comm	_put,4,2                        ## @put
	.no_dead_strip	___vb2_buf_mem_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __vb2_buf_mem_alloc
___vb2_buf_mem_alloc:                   ; @__vb2_buf_mem_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	x22, #0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldp	x8, x24, [x0, #8]
Lloh3:
	adrp	x25, _alloc@GOTPAGE
Lloh4:
	ldr	x25, [x25, _alloc@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x23]
	bl	_PAGE_ALIGN
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23]
	cmp	x0, x8
	b.lo	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x4, x0
	ldr	x8, [x24, #16]
	ldr	x2, [x8, x22, lsl #3]
	cbnz	x2, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x24, #12]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	ldp	w5, w3, [x24, #4]
	ldr	w6, [x24]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_call_ptr_memop
	mov	x21, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x23
	str	x21, [x9, #8]
	add	x22, x22, #1
	ldrsw	x9, [x19]
	add	x23, x23, #16
	cmp	x22, x9
	b.lt	LBB0_2
LBB0_7:
	mov	w20, #0
	b	LBB0_13
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
LBB0_10:
	cbz	w22, LBB0_13
; %bb.11:
	sub	x21, x23, #8
	add	x22, x22, #1
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x23, _put@GOTPAGE
Lloh6:
	ldr	x23, [x23, _put@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	x2, [x8, x21]
	mov	x0, x19
	bl	_call_void_memop
	ldr	x8, [x19, #8]
	str	xzr, [x8, x21]
	sub	x22, x22, #1
	sub	x21, x21, #16
	cmp	x22, #1
	b.hi	LBB0_12
LBB0_13:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_alloc,4,2                      ; @alloc
	.comm	_put,4,2                        ; @put
	.no_dead_strip	___vb2_buf_mem_alloc
.subsections_via_symbols
