	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_pitch_align
_nv_pitch_align:                        ## @nv_pitch_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_nouveau_drm
	movq	(%rax), %rax
	movq	_NV_DEVICE_INFO_V0_TNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$128, %ecx
	movl	$512, %eax                      ## imm = 0x200
	cmovel	%ecx, %eax
	cmpl	$15, %ebx
	movl	$16, %ecx
	cmovnel	%ebx, %ecx
	cmpl	$24, %ecx
	movl	$8, %esi
	cmovnel	%ecx, %esi
	xorl	%edx, %edx
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax), %ecx
	decl	%ecx
	negl	%eax
	andl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_DEVICE_INFO_V0_TNT,8,3      ## @NV_DEVICE_INFO_V0_TNT
	.no_dead_strip	_nv_pitch_align
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_pitch_align
_nv_pitch_align:                        ; @nv_pitch_align
	.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, x2
	mov	x20, x1
	bl	_nouveau_drm
Lloh0:
	adrp	x8, _NV_DEVICE_INFO_V0_TNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_DEVICE_INFO_V0_TNT@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	mov	w8, #512
	mov	w9, #128
	csel	w8, w9, w8, eq
	mov	w9, #16
	cmp	w19, #15
	csel	w9, w9, w19, eq
	mov	w10, #8
	cmp	w9, #24
	csel	w9, w10, w9, eq
	sdiv	w8, w8, w9
	add	w9, w20, w8
	sub	w9, w9, #1
	neg	w8, w8
	and	w0, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_DEVICE_INFO_V0_TNT,8,3      ; @NV_DEVICE_INFO_V0_TNT
	.no_dead_strip	_nv_pitch_align
.subsections_via_symbols
