	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videobuf_dma_init_kernel       ## -- Begin function videobuf_dma_init_kernel
	.p2align	4, 0x90
_videobuf_dma_init_kernel:              ## @videobuf_dma_init_kernel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movslq	%edx, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dprintk
	movl	%r13d, (%r12)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	movl	%ebx, %edi
	shll	%cl, %edi
	callq	_vmalloc_32
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movb	(%r13), %cl
	movl	%r15d, %ebx
	shll	%cl, %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	8(%r12), %rdi
	movb	(%r13), %cl
	movl	%r15d, %edx
	shll	%cl, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%r15d, 4(%r12)
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init kernel [%d pages]\n"

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"vmalloc_32(%d pages) failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"vmalloc is at addr 0x%08lx, size=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videobuf_dma_init_kernel       ; -- Begin function videobuf_dma_init_kernel
	.p2align	2
_videobuf_dma_init_kernel:              ; @videobuf_dma_init_kernel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x20, x0
	sxtw	x21, w19
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_dprintk
	str	w22, [x20]
Lloh2:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w0, w19, w8
	bl	_vmalloc_32
	str	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w8, [x22]
	lsl	w8, w19, w8
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	x0, [x20, #8]
	ldr	w8, [x22]
	lsl	w2, w19, w8
	mov	w1, #0
	bl	_memset
	mov	w0, #0
	str	w19, [x20, #4]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_dprintk
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init kernel [%d pages]\n"

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"vmalloc_32(%d pages) failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"vmalloc is at addr 0x%08lx, size=%d\n"

.subsections_via_symbols
