	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_pipe_control_lock        ## -- Begin function dcn20_pipe_control_lock
	.p2align	4, 0x90
_dcn20_pipe_control_lock:               ## @dcn20_pipe_control_lock
	.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
	cmpq	$0, 32(%rsi)
	je	LBB0_1
## %bb.18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rax), %edx
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_10
LBB0_2:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	je	LBB0_10
LBB0_5:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.6:
	movq	(%rbx), %rcx
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	testq	%rcx, %rcx
	jne	LBB0_10
	jmp	LBB0_9
LBB0_8:
	testq	%rcx, %rcx
	jle	LBB0_10
LBB0_9:
	movq	%rbx, %rsi
	callq	_dcn20_setup_gsl_group_as_lock
	movq	16(%rbx), %rax
LBB0_10:
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	cmpq	$0, 8(%rax)
	je	LBB0_15
## %bb.12:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	addq	$24, %rax
	jmp	LBB0_17
LBB0_15:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:
	addq	$8, %rax
	jmp	LBB0_17
LBB0_14:
	addq	$16, %rax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_pipe_control_lock        ; -- Begin function dcn20_pipe_control_lock
	.p2align	2
_dcn20_pipe_control_lock:               ; @dcn20_pipe_control_lock
	.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
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w2, [x8]
	cbnz	w19, LBB0_5
	b	LBB0_10
LBB0_4:
	mov	w2, #0
	cbz	w19, LBB0_10
LBB0_5:
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_10
; %bb.6:
	ldr	x9, [x20]
	cbz	w2, LBB0_8
; %bb.7:
	cbnz	x9, LBB0_10
	b	LBB0_9
LBB0_8:
	cmp	x9, #1
	b.lt	LBB0_10
LBB0_9:
	mov	x1, x20
	bl	_dcn20_setup_gsl_group_as_lock
	ldr	x8, [x20, #16]
LBB0_10:
	cbz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	add	x9, x8, #16
	add	x8, x8, #24
	cmp	w19, #0
	csel	x8, x9, x8, eq
	b	LBB0_14
LBB0_13:
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	add	x9, x8, #8
	cmp	w19, #0
	csel	x8, x8, x9, eq
LBB0_14:
	ldr	x1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
