	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_fence_array_add_implicit ## -- Begin function drm_gem_fence_array_add_implicit
	.p2align	4, 0x90
_drm_gem_fence_array_add_implicit:      ## @drm_gem_fence_array_add_implicit
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	testl	%edx, %edx
	je	LBB0_12
## %bb.1:
	leaq	-28(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	callq	_dma_resv_get_fences_rcu
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	cmpl	$0, -28(%rbp)
	je	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_drm_gem_fence_array_add
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	-28(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
## %bb.7:
	cmpl	%ebx, %eax
	ja	LBB0_8
	jmp	LBB0_10
LBB0_12:
	callq	_dma_resv_get_excl_rcu
	movq	%r14, %rdi
	movq	%rax, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_gem_fence_array_add        ## TAILCALL
LBB0_5:
	movl	-28(%rbp), %eax
	cmpl	%ebx, %eax
	jbe	LBB0_10
LBB0_8:
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_dma_fence_put
	incq	%rbx
	movl	-28(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_10:
	movq	-40(%rbp), %rdi
	callq	_kfree
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_fence_array_add_implicit ; -- Begin function drm_gem_fence_array_add_implicit
	.p2align	2
_drm_gem_fence_array_add_implicit:      ; @drm_gem_fence_array_add_implicit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	w0, [x1]
	cbz	w2, LBB0_6
; %bb.1:
	add	x2, sp, #4
	add	x3, sp, #8
	mov	x1, #0
	bl	_dma_resv_get_fences_rcu
	mov	x19, x0
	ldr	w8, [sp, #4]
	cmp	w0, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_11
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_drm_gem_fence_array_add
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	w8, [sp, #4]
	cmp	x21, x8
	b.lo	LBB0_3
; %bb.5:
	cmp	w8, w21
	b.hi	LBB0_8
	b	LBB0_10
LBB0_6:
	bl	_dma_resv_get_excl_rcu
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_drm_gem_fence_array_add
LBB0_7:
	ldr	w8, [sp, #4]
	cmp	w8, w21
	b.ls	LBB0_10
LBB0_8:
	and	x20, x21, #0xffffffff
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_dma_fence_put
	add	x20, x20, #1
	ldr	w8, [sp, #4]
	cmp	x20, x8
	b.lo	LBB0_9
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_kfree
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
