	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_ioremap
_ttm_bo_ioremap:                        ## @ttm_bo_ioremap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ttm_bo_map_premapped@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	leaq	(%rax,%rsi,4), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_ttm_bo_map_iomap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_TTM_PL_FLAG_WC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	16(%rdi), %rsi
	addq	8(%rdi), %rsi
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ioremap_wc
	jmp	LBB0_5
LBB0_4:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ioremap_nocache
LBB0_5:
	movq	%rax, (%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovnel	%edx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_map_premapped,4,2       ## @ttm_bo_map_premapped
	.comm	_ttm_bo_map_iomap,4,2           ## @ttm_bo_map_iomap
	.comm	_TTM_PL_FLAG_WC,4,2             ## @TTM_PL_FLAG_WC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ttm_bo_ioremap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_ioremap
_ttm_bo_ioremap:                        ; @ttm_bo_ioremap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _ttm_bo_map_premapped@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ttm_bo_map_premapped@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	add	x0, x8, x1, lsl #2
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _ttm_bo_map_iomap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ttm_bo_map_iomap@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _TTM_PL_FLAG_WC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TTM_PL_FLAG_WC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldp	x11, x10, [x0, #8]
	add	x10, x10, x1
	add	x0, x10, x11
	mov	x1, x2
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_ioremap_wc
	b	LBB0_5
LBB0_4:
	bl	_ioremap_nocache
LBB0_5:
	str	x0, [x19]
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_map_premapped,4,2       ; @ttm_bo_map_premapped
	.comm	_ttm_bo_map_iomap,4,2           ; @ttm_bo_map_iomap
	.comm	_TTM_PL_FLAG_WC,4,2             ; @TTM_PL_FLAG_WC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ttm_bo_ioremap
.subsections_via_symbols
