	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_buffer_config_pta      ## -- Begin function etnaviv_buffer_config_pta
	.p2align	4, 0x90
_etnaviv_buffer_config_pta:             ## @etnaviv_buffer_config_pta
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	callq	_lockdep_assert_held
	movl	$0, 4(%rbx)
	movq	_VIVS_MMUv2_PTA_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_VIVS_MMUv2_PTA_CONFIG_INDEX
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_CMD_LOAD_STATE
	movq	%r15, %rdi
	callq	_CMD_END
	movl	4(%rbx), %edi
	movl	$8, %esi
	callq	_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%rbx)
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %eax
	sarl	$3, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIVS_MMUv2_PTA_CONFIG,4,2      ## @VIVS_MMUv2_PTA_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_buffer_config_pta      ; -- Begin function etnaviv_buffer_config_pta
	.p2align	2
_etnaviv_buffer_config_pta:             ; @etnaviv_buffer_config_pta
	.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, x1
	mov	x20, x0
	bl	_lockdep_assert_held
	str	wzr, [x20, #4]!
Lloh0:
	adrp	x8, _VIVS_MMUv2_PTA_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIVS_MMUv2_PTA_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_VIVS_MMUv2_PTA_CONFIG_INDEX
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_CMD_LOAD_STATE
	mov	x0, x20
	bl	_CMD_END
	ldr	w0, [x20]
	mov	w1, #8
	bl	_ALIGN
	str	w0, [x20]
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w0, w8, #3
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIVS_MMUv2_PTA_CONFIG,4,2      ; @VIVS_MMUv2_PTA_CONFIG
.subsections_via_symbols
