	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_buf_vmap                   ## -- Begin function dma_buf_vmap
	.p2align	4, 0x90
_dma_buf_vmap:                          ## @dma_buf_vmap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_2:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	incl	%eax
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
	callq	_BUG_ON
	movslq	4(%rbx), %r15
	jmp	LBB0_9
LBB0_6:
	movl	4(%rbx), %edi
	callq	_BUG_ON
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	xorl	%r15d, %r15d
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	%r12d, 4(%rbx)
	movl	$1, (%rbx)
	movq	%r12, %r15
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_buf_vmap                   ; -- Begin function dma_buf_vmap
	.p2align	2
_dma_buf_vmap:                          ; @dma_buf_vmap
	.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
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
	mov	x21, #0
	b	LBB0_9
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.3:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.4:
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldrsw	x21, [x19, #4]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_BUG_ON
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	bl	_IS_ERR
	bl	_WARN_ON_ONCE
	cmp	x21, #0
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_7
; %bb.6:
	mov	x21, #0
	b	LBB0_8
LBB0_7:
	mov	w8, #1
	stp	w8, w21, [x19]
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
