	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_bo_kmap                 ## -- Begin function radeon_bo_kmap
	.p2align	4, 0x90
_radeon_bo_kmap:                        ## @radeon_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	movq	%rax, (%r14)
	jmp	LBB0_7
LBB0_3:
	movq	%rdi, %rbx
	addq	$12, %rdi
	movl	12(%rbx), %edx
	leaq	8(%rbx), %r12
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_ttm_bo_kmap
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ttm_kmap_obj_virtual
	movq	%rax, (%rbx)
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%rax, (%r14)
LBB0_6:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_radeon_bo_check_tiling
LBB0_7:
	movl	%r15d, %eax
	addq	$16, %rsp
	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	_radeon_bo_kmap                 ; -- Begin function radeon_bo_kmap
	.p2align	2
_radeon_bo_kmap:                        ; @radeon_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	x19, x1
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	cbz	x19, LBB0_7
; %bb.2:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_8
LBB0_3:
	mov	x20, x0
	ldr	w2, [x0, #12]!
	sub	x21, x0, #4
	mov	w1, #0
	mov	x3, x21
	bl	_ttm_bo_kmap
	cbnz	w0, LBB0_8
; %bb.4:
	add	x1, sp, #12
	mov	x0, x21
	bl	_ttm_kmap_obj_virtual
	str	x0, [x20]
	cbz	x19, LBB0_6
; %bb.5:
	str	x0, [x19]
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_radeon_bo_check_tiling
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
