	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gpu_submit                 ## -- Begin function msm_gpu_submit
	.p2align	4, 0x90
_msm_gpu_submit:                        ## @msm_gpu_submit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movq	8(%rdi), %r14
	movq	32(%rsi), %rbx
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	8(%r15), %rdi
	callq	_pm_runtime_get_sync
	movq	%r15, %rdi
	callq	_msm_gpu_hw_init
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	%rax, 24(%r13)
	leaq	20(%r13), %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_msm_rd_dump_submit
	movq	%r15, %rdi
	callq	_update_sw_cntrs
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_msm_gem_move_to_active
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r13), %rax
	addq	$16, %r14
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	8(%rax,%r14), %rbx
	movq	%rbx, %rdi
	callq	_is_active
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, 8(%rbx)
	setne	%al
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_drm_gem_object_get
	movl	16(%r13), %esi
	movq	%rbx, %rdi
	leaq	-60(%rbp), %rdx
	callq	_msm_gem_get_and_pin_iova
	movq	8(%r13), %rax
	movl	(%rax,%r14), %eax
	movl	$1, %edx
	movq	_MSM_SUBMIT_BO_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	movq	_MSM_SUBMIT_BO_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	*(%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%r15, %rdi
	callq	_hangcheck_timer_reset
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSM_SUBMIT_BO_WRITE,4,2        ## @MSM_SUBMIT_BO_WRITE
	.comm	_MSM_SUBMIT_BO_READ,4,2         ## @MSM_SUBMIT_BO_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gpu_submit                 ; -- Begin function msm_gpu_submit
	.p2align	2
_msm_gpu_submit:                        ; @msm_gpu_submit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	x23, [x0, #8]
	ldr	x22, [x1, #32]
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x0, [x19, #8]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_msm_gpu_hw_init
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	str	x8, [x21, #24]
	add	x0, x21, #20
	mov	x1, x22
	bl	_list_add_tail
	ldr	w0, [x23, #8]
	mov	x1, x21
	mov	x2, #0
	bl	_msm_rd_dump_submit
	mov	x0, x19
	bl	_update_sw_cntrs
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x24, #0
	mov	x25, #0
Lloh0:
	adrp	x26, _MSM_SUBMIT_BO_WRITE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MSM_SUBMIT_BO_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x27, _MSM_SUBMIT_BO_READ@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MSM_SUBMIT_BO_READ@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x21, #4]
	mov	x0, x22
	mov	x1, x19
	bl	_msm_gem_move_to_active
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x21]
	add	x24, x24, #16
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x24
	ldr	x22, [x8, #8]
	mov	x0, x22
	bl	_is_active
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	cmp	x8, x19
	cset	w0, ne
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_WARN_ON
	mov	x0, x22
	bl	_drm_gem_object_get
	ldr	w1, [x21, #16]
	add	x2, sp, #12
	mov	x0, x22
	bl	_msm_gem_get_and_pin_iova
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x24]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #0
	b	LBB0_3
LBB0_10:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	str	x20, [x23]
	mov	x0, x19
	bl	_hangcheck_timer_reset
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MSM_SUBMIT_BO_WRITE,4,2        ; @MSM_SUBMIT_BO_WRITE
	.comm	_MSM_SUBMIT_BO_READ,4,2         ; @MSM_SUBMIT_BO_READ
.subsections_via_symbols
