	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function submit_pin_objects
_submit_pin_objects:                    ## @submit_pin_objects
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, (%rdi)
	cmpl	$0, 4(%rdi)
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	movq	_BO_VALID@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rax,%rbx)
	movl	(%r13), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, 8(%rax,%rbx)
	movl	$0, (%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	4(%r15), %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax,%rbx), %rdi
	movl	16(%r15), %esi
	movq	%r14, %rdx
	callq	_msm_gem_get_and_pin_iova
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movl	8(%rax,%rbx), %ecx
	movq	_BO_PINNED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 8(%rax,%rbx)
	movq	-48(%rbp), %rdx
	cmpq	(%rax,%rbx), %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	(%r13), %ecx
	movl	%ecx, 8(%rax,%rbx)
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BO_PINNED,4,2                  ## @BO_PINNED
	.comm	_BO_VALID,4,2                   ## @BO_VALID
	.no_dead_strip	_submit_pin_objects
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function submit_pin_objects
_submit_pin_objects:                    ; @submit_pin_objects
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w8, #1
	str	w8, [x0]
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	x21, #0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x22, _BO_PINNED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BO_PINNED@GOTPAGEOFF]
Lloh2:
	adrp	x23, _BO_VALID@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BO_VALID@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x11, [x8, x20]
	ldr	w11, [x23]
	bic	w10, w10, w11
	str	w10, [x9, #8]
	str	wzr, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x9, [x19, #4]
	add	x20, x20, #24
	cmp	x21, x9
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x20
	ldr	x0, [x8, #16]
	ldr	w1, [x19, #16]
	add	x2, sp, #8
	bl	_msm_gem_get_and_pin_iova
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x22]
	ldr	x8, [x19, #8]
	add	x9, x8, x20
	ldr	w11, [x9, #8]
	orr	w10, w11, w10
	str	w10, [x9, #8]
	ldr	x11, [sp, #8]
	ldr	x12, [x9]
	cmp	x11, x12
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x23]
	orr	w10, w11, w10
	str	w10, [x9, #8]
	b	LBB0_3
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BO_PINNED,4,2                  ; @BO_PINNED
	.comm	_BO_VALID,4,2                   ; @BO_VALID
	.no_dead_strip	_submit_pin_objects
.subsections_via_symbols
