	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vb2_dc_dmabuf_ops_map
_vb2_dc_dmabuf_ops_map:                 ## @vb2_dc_dmabuf_ops_map
	.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
	movq	8(%rdi), %r14
	movq	16(%rdi), %rbx
	movq	%r14, %rdi
	callq	_mutex_lock
	movslq	(%rbx), %rcx
	cmpl	%r15d, %ecx
	je	LBB0_5
## %bb.1:
	movq	_DMA_NONE@GOTPCREL(%rip), %r13
	cmpq	%rcx, (%r13)
	je	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	_DMA_ATTR_SKIP_CPU_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_dma_unmap_sg_attrs
	movl	(%r13), %eax
	movl	%eax, (%rbx)
LBB0_3:
	movl	(%r12), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	_DMA_ATTR_SKIP_CPU_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r15d, %ecx
	callq	_dma_map_sg_attrs
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%r15d, (%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$4, %rbx
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_NONE,8,3                   ## @DMA_NONE
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,4,2     ## @DMA_ATTR_SKIP_CPU_SYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to map scatterlist\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_vb2_dc_dmabuf_ops_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vb2_dc_dmabuf_ops_map
_vb2_dc_dmabuf_ops_map:                 ; @vb2_dc_dmabuf_ops_map
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x22, x0
	ldp	x19, x23, [x0, #8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x20, x23
	ldrsw	x3, [x20], #4
	cmp	w3, w21
	b.eq	LBB0_5
; %bb.1:
Lloh0:
	adrp	x25, _DMA_NONE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_NONE@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh2:
	adrp	x24, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGEOFF]
	cmp	x8, x3
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x22]
	ldp	w2, w1, [x23, #8]
	ldr	w4, [x24]
	bl	_dma_unmap_sg_attrs
	ldr	x8, [x25]
	str	w8, [x23]
LBB0_3:
	ldr	w0, [x22]
	ldp	w2, w1, [x23, #8]
	ldr	w4, [x24]
	mov	x3, x21
	bl	_dma_map_sg_attrs
	str	w0, [x23, #4]
	cbz	w0, LBB0_6
; %bb.4:
	str	w21, [x23]
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_NONE,8,3                   ; @DMA_NONE
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,4,2     ; @DMA_ATTR_SKIP_CPU_SYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to map scatterlist\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_vb2_dc_dmabuf_ops_map
.subsections_via_symbols
