	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __videobuf_iolock
___videobuf_iolock:                     ## @__videobuf_iolock
	.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
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_BUG_ON
	movl	8(%r15), %edi
	movq	_MAGIC_SG_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAGIC_CHECK
	movq	(%r15), %rax
	movq	(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setne	%dil
	callq	_WARN_ON
	jmp	LBB0_3
LBB0_1:
	movq	%rcx, (%r15)
LBB0_3:
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_16
LBB0_6:
	movl	20(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.8:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	16(%rbx), %ecx
	movq	%r15, %rdi
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.9:
	callq	_videobuf_dma_init_user
	jmp	LBB0_10
LBB0_12:
	testq	%r12, %r12
	je	LBB0_13
## %bb.15:
	movq	8(%rbx), %r13
	addq	(%r12), %r13
	movl	4(%rbx), %edi
	callq	_PAGE_ALIGN
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_videobuf_dma_init_overlay
	jmp	LBB0_10
LBB0_16:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_17
LBB0_7:
	movl	4(%rbx), %edi
	callq	_PAGE_ALIGN
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_videobuf_dma_init_kernel
	jmp	LBB0_10
LBB0_11:
	callq	_videobuf_dma_init_user_locked
LBB0_10:
	testl	%eax, %eax
	je	LBB0_17
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_videobuf_dma_map               ## TAILCALL
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MAGIC_SG_MEM,4,2               ## @MAGIC_SG_MEM
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___videobuf_iolock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __videobuf_iolock
___videobuf_iolock:                     ; @__videobuf_iolock
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x1, #24]
	cmp	x19, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _MAGIC_SG_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAGIC_SG_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MAGIC_CHECK
	ldr	x9, [x19]
	ldr	x8, [x20]
	cbz	x9, LBB0_2
; %bb.1:
	cmp	x9, x8
	cset	w0, ne
	bl	_WARN_ON
	b	LBB0_3
LBB0_2:
	str	x8, [x19]
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #128
	b.ne	LBB0_11
LBB0_6:
	ldr	w2, [x21, #20]
	cbz	w2, LBB0_13
; %bb.7:
Lloh3:
	adrp	x9, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w3, [x21, #16]
	mov	x0, x19
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.8:
	bl	_videobuf_dma_init_user
	cbnz	w0, LBB0_16
	b	LBB0_12
LBB0_9:
	cbz	x22, LBB0_15
; %bb.10:
	ldr	x8, [x22]
	ldr	x9, [x21, #8]
	add	x22, x9, x8
	ldr	w0, [x21, #4]
	bl	_PAGE_ALIGN
Lloh6:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	asr	w3, w0, w8
Lloh9:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_videobuf_dma_init_overlay
	cbnz	w0, LBB0_16
	b	LBB0_12
LBB0_11:
	bl	_BUG
LBB0_12:
	ldr	x0, [x20]
	mov	x1, x19
	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
	b	_videobuf_dma_map
LBB0_13:
	ldr	w0, [x21, #4]
	bl	_PAGE_ALIGN
Lloh12:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	asr	w2, w0, w8
Lloh15:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_videobuf_dma_init_kernel
	cbnz	w0, LBB0_16
	b	LBB0_12
LBB0_14:
	bl	_videobuf_dma_init_user_locked
	cbnz	w0, LBB0_16
	b	LBB0_12
LBB0_15:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAGIC_SG_MEM,4,2               ; @MAGIC_SG_MEM
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___videobuf_iolock
.subsections_via_symbols
