	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etnaviv_cmd_select_pipe
_etnaviv_cmd_select_pipe:               ## @etnaviv_cmd_select_pipe
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %rax
	movq	_ETNA_PIPE_2D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_VIVS_GL_FLUSH_CACHE_PE2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_4
LBB0_2:
	movq	_ETNA_PIPE_3D@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_VIVS_GL_FLUSH_CACHE_DEPTH@GOTPCREL(%rip), %rax
	movq	_VIVS_GL_FLUSH_CACHE_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
LBB0_4:
	movq	_VIVS_GL_FLUSH_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CMD_LOAD_STATE
	movq	_SYNC_RECIPIENT_FE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SYNC_RECIPIENT_PE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_CMD_SEM
	movl	(%r12), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_CMD_STALL
	movq	_VIVS_GL_PIPE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_VIVS_GL_PIPE_SELECT_PIPE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CMD_LOAD_STATE                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETNA_PIPE_2D,8,3               ## @ETNA_PIPE_2D
	.comm	_VIVS_GL_FLUSH_CACHE_PE2D,4,2   ## @VIVS_GL_FLUSH_CACHE_PE2D
	.comm	_ETNA_PIPE_3D,8,3               ## @ETNA_PIPE_3D
	.comm	_VIVS_GL_FLUSH_CACHE_DEPTH,4,2  ## @VIVS_GL_FLUSH_CACHE_DEPTH
	.comm	_VIVS_GL_FLUSH_CACHE_COLOR,4,2  ## @VIVS_GL_FLUSH_CACHE_COLOR
	.comm	_VIVS_GL_FLUSH_CACHE,4,2        ## @VIVS_GL_FLUSH_CACHE
	.comm	_SYNC_RECIPIENT_FE,4,2          ## @SYNC_RECIPIENT_FE
	.comm	_SYNC_RECIPIENT_PE,4,2          ## @SYNC_RECIPIENT_PE
	.comm	_VIVS_GL_PIPE_SELECT,4,2        ## @VIVS_GL_PIPE_SELECT
	.no_dead_strip	_etnaviv_cmd_select_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etnaviv_cmd_select_pipe
_etnaviv_cmd_select_pipe:               ; @etnaviv_cmd_select_pipe
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, x0, #8
	bl	_lockdep_assert_held
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ETNA_PIPE_2D@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETNA_PIPE_2D@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VIVS_GL_FLUSH_CACHE_PE2D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIVS_GL_FLUSH_CACHE_PE2D@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x9, _ETNA_PIPE_3D@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETNA_PIPE_3D@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _VIVS_GL_FLUSH_CACHE_DEPTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIVS_GL_FLUSH_CACHE_DEPTH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VIVS_GL_FLUSH_CACHE_COLOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIVS_GL_FLUSH_CACHE_COLOR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_5
LBB0_4:
	mov	w2, #0
LBB0_5:
Lloh15:
	adrp	x8, _VIVS_GL_FLUSH_CACHE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIVS_GL_FLUSH_CACHE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CMD_LOAD_STATE
Lloh18:
	adrp	x21, _SYNC_RECIPIENT_FE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _SYNC_RECIPIENT_FE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh20:
	adrp	x22, _SYNC_RECIPIENT_PE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _SYNC_RECIPIENT_PE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_CMD_SEM
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_CMD_STALL
Lloh22:
	adrp	x8, _VIVS_GL_PIPE_SELECT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VIVS_GL_PIPE_SELECT@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_VIVS_GL_PIPE_SELECT_PIPE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	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
	b	_CMD_LOAD_STATE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETNA_PIPE_2D,8,3               ; @ETNA_PIPE_2D
	.comm	_VIVS_GL_FLUSH_CACHE_PE2D,4,2   ; @VIVS_GL_FLUSH_CACHE_PE2D
	.comm	_ETNA_PIPE_3D,8,3               ; @ETNA_PIPE_3D
	.comm	_VIVS_GL_FLUSH_CACHE_DEPTH,4,2  ; @VIVS_GL_FLUSH_CACHE_DEPTH
	.comm	_VIVS_GL_FLUSH_CACHE_COLOR,4,2  ; @VIVS_GL_FLUSH_CACHE_COLOR
	.comm	_VIVS_GL_FLUSH_CACHE,4,2        ; @VIVS_GL_FLUSH_CACHE
	.comm	_SYNC_RECIPIENT_FE,4,2          ; @SYNC_RECIPIENT_FE
	.comm	_SYNC_RECIPIENT_PE,4,2          ; @SYNC_RECIPIENT_PE
	.comm	_VIVS_GL_PIPE_SELECT,4,2        ; @VIVS_GL_PIPE_SELECT
	.no_dead_strip	_etnaviv_cmd_select_pipe
.subsections_via_symbols
