	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_writeback_get_out_fence    ## -- Begin function drm_writeback_get_out_fence
	.p2align	4, 0x90
_drm_writeback_get_out_fence:           ## @drm_writeback_get_out_fence
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_DRM_MODE_CONNECTOR_WRITEBACK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	leaq	8(%rbx), %rdx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	incl	%r8d
	movl	%r8d, (%rbx)
	movq	_drm_writeback_fence_ops@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_dma_fence_init
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,8,3 ## @DRM_MODE_CONNECTOR_WRITEBACK
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_drm_writeback_fence_ops,4,2    ## @drm_writeback_fence_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_writeback_get_out_fence    ; -- Begin function drm_writeback_get_out_fence
	.p2align	2
_drm_writeback_get_out_fence:           ; @drm_writeback_get_out_fence
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.3:
	add	x2, x19, #8
	ldp	w8, w3, [x19]
	add	w4, w8, #1
	str	w4, [x19]
Lloh6:
	adrp	x1, _drm_writeback_fence_ops@GOTPAGE
Lloh7:
	ldr	x1, [x1, _drm_writeback_fence_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_dma_fence_init
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,8,3 ; @DRM_MODE_CONNECTOR_WRITEBACK
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_drm_writeback_fence_ops,4,2    ; @drm_writeback_fence_ops
.subsections_via_symbols
