	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_bo_kmap                    ## -- Begin function qxl_bo_kmap
	.p2align	4, 0x90
_qxl_bo_kmap:                           ## @qxl_bo_kmap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%rax, (%r14)
LBB0_3:
	incl	(%rbx)
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	leaq	20(%rbx), %rdi
	movl	20(%rbx), %edx
	leaq	16(%rbx), %r15
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_ttm_bo_kmap
	testl	%eax, %eax
	je	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ttm_kmap_obj_virtual
	movq	%rax, 8(%rbx)
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%rax, (%r14)
LBB0_7:
	movl	$1, (%rbx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_bo_kmap                    ; -- Begin function qxl_bo_kmap
	.p2align	2
_qxl_bo_kmap:                           ; @qxl_bo_kmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	str	x8, [x20]
LBB0_3:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
LBB0_4:
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	ldr	w2, [x0, #20]!
	sub	x21, x0, #4
	mov	w1, #0
	mov	x3, x21
	bl	_ttm_bo_kmap
	cbz	w0, LBB0_7
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	add	x1, sp, #12
	mov	x0, x21
	bl	_ttm_kmap_obj_virtual
	str	x0, [x19, #8]
	cbz	x20, LBB0_9
; %bb.8:
	str	x0, [x20]
LBB0_9:
	mov	w0, #0
	mov	w8, #1
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
