	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_bo_fixup_align
_nouveau_bo_fixup_align:                ## @nouveau_bo_fixup_align
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_nouveau_bdev
	movq	(%rax), %rcx
	movq	_NV_DEVICE_INFO_V0_TESLA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_12
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_13
## %bb.2:
	movl	8(%rax), %eax
	cmpl	$64, %eax
	jl	LBB0_6
## %bb.3:
	movl	$65536, (%r14)                  ## imm = 0x10000
	jmp	LBB0_4
LBB0_12:
	movl	(%r15), %edi
	movb	4(%r12), %cl
	movl	$1, %ebx
	movl	$1, %esi
	shll	%cl, %esi
	callq	_roundup_64
	movl	%eax, (%r15)
	movb	4(%r12), %cl
	shll	%cl, %ebx
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_max
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_6:
	cmpl	$48, %eax
	jl	LBB0_8
## %bb.7:
	movl	$32768, (%r14)                  ## imm = 0x8000
	jmp	LBB0_4
LBB0_8:
	cmpl	$32, %eax
	jl	LBB0_10
## %bb.9:
	movl	$16384, (%r14)                  ## imm = 0x4000
LBB0_4:
	movl	(%r15), %edi
	movl	(%r12), %esi
	shll	$6, %esi
LBB0_5:
	callq	_roundup_64
	movl	%eax, (%r15)
LBB0_13:
	movl	(%r15), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup_64
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$16, %eax
	jl	LBB0_13
## %bb.11:
	movl	$16384, (%r14)                  ## imm = 0x4000
	movl	(%r15), %edi
	movl	(%r12), %esi
	shll	$5, %esi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ## @NV_DEVICE_INFO_V0_TESLA
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_nouveau_bo_fixup_align
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_bo_fixup_align
_nouveau_bo_fixup_align:                ; @nouveau_bo_fixup_align
	.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, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_nouveau_bdev
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.2:
	ldr	w8, [x0, #8]
	cmp	w8, #64
	b.lt	LBB0_5
; %bb.3:
	mov	w8, #65536
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19]
	ldr	w8, [x21, #4]
	mov	w22, #1
	lsl	w1, w22, w8
	bl	_roundup_64
	str	w0, [x19]
	ldr	w8, [x21, #4]
	lsl	w0, w22, w8
	ldr	w1, [x20]
	bl	_max
	str	w0, [x20]
	b	LBB0_11
LBB0_5:
	cmp	w8, #48
	b.lt	LBB0_7
; %bb.6:
	mov	w8, #32768
	b	LBB0_9
LBB0_7:
	cmp	w8, #32
	b.lt	LBB0_12
; %bb.8:
	mov	w8, #16384
LBB0_9:
	str	w8, [x20]
	ldr	w0, [x19]
	ldr	w8, [x21]
	lsl	w1, w8, #6
LBB0_10:
	bl	_roundup_64
	str	w0, [x19]
LBB0_11:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_roundup_64
	str	w0, [x19]
	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
LBB0_12:
	cmp	w8, #16
	b.lt	LBB0_11
; %bb.13:
	mov	w8, #16384
	str	w8, [x20]
	ldr	w0, [x19]
	ldr	w8, [x21]
	lsl	w1, w8, #5
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ; @NV_DEVICE_INFO_V0_TESLA
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_nouveau_bo_fixup_align
.subsections_via_symbols
