	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stk1160_vb2_setup              ## -- Begin function stk1160_vb2_setup
	.p2align	4, 0x90
_stk1160_vb2_setup:                     ## @stk1160_vb2_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_VB2_READ@GOTPCREL(%rip), %rax
	movq	_VB2_MMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_USERPTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	addq	$8, %rdi
	movq	_VB2_DMABUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rbx, 48(%rbx)
	movl	$4, 12(%rbx)
	movq	_stk1160_video_qops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_vb2_vmalloc_memops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	leaq	4(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	callq	_vb2_queue_init
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ## @VB2_USERPTR
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_stk1160_video_qops,4,2         ## @stk1160_video_qops
	.comm	_vb2_vmalloc_memops,4,2         ## @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stk1160_vb2_setup              ; -- Begin function stk1160_vb2_setup
	.p2align	2
_stk1160_vb2_setup:                     ; @stk1160_vb2_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #56]
Lloh3:
	adrp	x8, _VB2_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VB2_MMAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VB2_MMAP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _VB2_USERPTR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VB2_USERPTR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _VB2_DMABUF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VB2_DMABUF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0, #8]!
	mov	w8, #4
Lloh15:
	adrp	x9, _stk1160_video_qops@GOTPAGE
Lloh16:
	ldr	x9, [x9, _stk1160_video_qops@GOTPAGEOFF]
	stp	x9, x19, [x19, #40]
Lloh17:
	adrp	x9, _vb2_vmalloc_memops@GOTPAGE
Lloh18:
	ldr	x9, [x9, _vb2_vmalloc_memops@GOTPAGEOFF]
	add	x10, x19, #4
	stp	x10, x9, [x19, #24]
Lloh19:
	adrp	x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #12]
	bl	_vb2_queue_init
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_INIT_LIST_HEAD
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ; @VB2_USERPTR
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_stk1160_video_qops,4,2         ; @stk1160_video_qops
	.comm	_vb2_vmalloc_memops,4,2         ; @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
.subsections_via_symbols
