	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __vb2_init_fileio
___vb2_init_fileio:                     ## @__vb2_init_fileio
	.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	%esi, %r15d
	movq	%rdi, %r12
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_VB2_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VB2_READ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r12), %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	48(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.8:
	cmpq	$0, 40(%r12)
	jne	LBB0_7
## %bb.9:
	cmpl	$0, 4(%r12)
	jle	LBB0_10
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	32(%r12), %r9d
	movl	36(%r12), %r8d
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	$1, %ecx
	callq	_dprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r13
	movl	36(%r12), %eax
	movl	%eax, 32(%r13)
	movl	32(%r12), %eax
	movl	%eax, 28(%r13)
	movl	$1, (%r13)
	movq	_VB2_MEMORY_MMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 12(%r13)
	movl	16(%r12), %eax
	movl	%eax, 24(%r13)
	movq	%r13, 8(%r12)
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_vb2_core_reqbufs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_32
## %bb.13:
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	cmpl	$1, (%rdi)
	jne	LBB0_30
## %bb.14:
	movl	4(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.15:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	16(%r13), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	movq	%r13, %r14
	je	LBB0_25
## %bb.16:
	movl	$1, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	-8(%rax,%r13,8), %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_size
	movq	16(%r14), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%rsi)
	movslq	4(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_18
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	16(%r14), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 24(%rcx,%rsi)
	addq	$16, %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	incq	%r13
	testq	%rax, %rax
	jne	LBB0_17
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r14, %r13
	jmp	LBB0_31
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_30:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_18:
	movq	%r14, %rdx
	movq	%r14, %r13
LBB0_19:
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.20:
	testl	%eax, %eax
	jle	LBB0_27
## %bb.21:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vb2_core_qbuf
	testl	%eax, %eax
	jne	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	16(%r13), %rax
	movl	$1, (%rax,%r14)
	incq	%r15
	movslq	4(%r12), %rax
	addq	$16, %r14
	cmpq	%rax, %r15
	jl	LBB0_22
LBB0_27:
	movl	%eax, 4(%r13)
	movl	%eax, 8(%r13)
LBB0_28:
	movl	16(%r12), %esi
	movq	%r12, %rdi
	callq	_vb2_core_streamon
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.29:
	xorl	%ebx, %ebx
	jmp	LBB0_33
LBB0_23:
	movl	%eax, %ebx
LBB0_31:
	movl	$0, (%r13)
	movl	12(%r13), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_vb2_core_reqbufs
LBB0_32:
	movq	$0, 8(%r12)
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_VB2_WRITE,4,2                  ## @VB2_WRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting up file io: mode %s, count %d, read_once %d, write_immediately %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"read"

L_.str.2:                               ## @.str.2
	.asciz	"write"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VB2_MEMORY_MMAP,4,2            ## @VB2_MEMORY_MMAP
	.no_dead_strip	___vb2_init_fileio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __vb2_init_fileio
___vb2_init_fileio:                     ; @__vb2_init_fileio
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VB2_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VB2_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VB2_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VB2_READ@GOTPAGEOFF]
	ldr	w10, [x0]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	tst	w8, w10
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x2, x9, x8, eq
	ldp	w5, w4, [x19, #32]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w22, #1
	mov	w0, #3
	mov	w3, #1
	bl	_dprintk
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.9:
	mov	x20, x0
	ldr	d0, [x19, #32]
	stur	d0, [x0, #28]
Lloh17:
	adrp	x8, _VB2_MEMORY_MMAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VB2_MEMORY_MMAP@GOTPAGEOFF]
	str	w22, [x0]
Lloh19:
	ldr	w1, [x8]
	str	w1, [x0, #12]
	ldr	w8, [x19, #16]
	str	w8, [x0, #24]
	str	x0, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_vb2_core_reqbufs
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.10:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.11:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.12:
	mov	w1, #0
	bl	_vb2_plane_vaddr
	ldr	x8, [x20, #16]
	str	x0, [x8, #8]
	cbz	x0, LBB0_16
; %bb.13:
	mov	x22, #0
	mov	x23, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x23, lsl #3]
	mov	w1, #0
	bl	_vb2_plane_size
	ldr	x8, [x20, #16]
	add	x8, x8, x22
	str	w0, [x8, #4]
	add	x24, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x24, x8
	b.ge	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x23, lsl #3
	ldr	x0, [x8, #8]
	mov	w1, #0
	bl	_vb2_plane_vaddr
	ldr	x8, [x20, #16]
	add	x8, x8, x22
	str	x0, [x8, #24]
	add	x22, x22, #16
	mov	x23, x24
	cbnz	x0, LBB0_14
LBB0_16:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_18:
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_20:
	str	wzr, [x20]
	ldr	w1, [x20, #12]
	mov	x0, x19
	mov	x2, x20
	bl	_vb2_core_reqbufs
LBB0_21:
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
LBB0_22:
	cbz	w21, LBB0_29
; %bb.23:
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.24:
	mov	x23, #0
	mov	x21, #0
	mov	w24, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_vb2_core_qbuf
	cbnz	w0, LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x20, #16]
	str	w24, [x8, x23]
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x23, x23, #16
	cmp	x21, x8
	b.lt	LBB0_25
; %bb.27:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_28:
	stp	w8, w8, [x20, #4]
LBB0_29:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_vb2_core_streamon
	mov	x22, x0
	cbnz	w0, LBB0_20
	b	LBB0_7
LBB0_30:
	mov	x22, x0
	b	LBB0_20
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_VB2_WRITE,4,2                  ; @VB2_WRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting up file io: mode %s, count %d, read_once %d, write_immediately %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"read"

l_.str.2:                               ; @.str.2
	.asciz	"write"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VB2_MEMORY_MMAP,4,2            ; @VB2_MEMORY_MMAP
	.no_dead_strip	___vb2_init_fileio
.subsections_via_symbols
