	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sta2x11_vip_init_buffer
_sta2x11_vip_init_buffer:               ## @sta2x11_vip_init_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	80(%rdi), %r14
	movl	$29, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_coherent_mask
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	addq	$88, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
	jmp	LBB0_4
LBB0_2:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rbx, 56(%rbx)
	movl	$4, 12(%rbx)
	movq	_vip_video_qops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_vb2_dma_contig_memops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	80(%rbx), %rax
	movq	%rax, 24(%rbx)
	leaq	72(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	callq	_vb2_queue_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	4(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_spin_lock_init
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot configure coherent mask"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_vip_video_qops,4,2             ## @vip_video_qops
	.comm	_vb2_dma_contig_memops,4,2      ## @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.no_dead_strip	_sta2x11_vip_init_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sta2x11_vip_init_buffer
_sta2x11_vip_init_buffer:               ; @sta2x11_vip_init_buffer
	.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, x0
	ldr	x20, [x0, #80]
	mov	w0, #29
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_coherent_mask
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x19, #88
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
	b	LBB0_4
LBB0_2:
	add	x20, x19, #8
	mov	w21, #4
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #64]
Lloh5:
	adrp	x8, _VB2_MMAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VB2_MMAP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _VB2_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VB2_READ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	x19, [x19, #56]
	stp	w8, w21, [x19, #8]
Lloh11:
	adrp	x8, _vip_video_qops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vip_video_qops@GOTPAGEOFF]
Lloh13:
	adrp	x9, _vb2_dma_contig_memops@GOTPAGE
Lloh14:
	ldr	x9, [x9, _vb2_dma_contig_memops@GOTPAGEOFF]
	stp	x9, x8, [x19, #40]
Lloh15:
	adrp	x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x19, #80]
	add	x9, x19, #72
	stp	x9, x8, [x19, #16]
	mov	x0, x20
	bl	_vb2_queue_init
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_spin_lock_init
LBB0_4:
	mov	x0, x20
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot configure coherent mask"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_vip_video_qops,4,2             ; @vip_video_qops
	.comm	_vb2_dma_contig_memops,4,2      ; @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.no_dead_strip	_sta2x11_vip_init_buffer
.subsections_via_symbols
