	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_writeback_properties
_create_writeback_properties:           ## @create_writeback_properties
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
LBB0_2:
	movq	_DRM_MODE_PROP_BLOB@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_PROP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_DRM_MODE_PROP_IMMUTABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_drm_property_create
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	_DRM_MODE_PROP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRM_MODE_OBJECT_FB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_drm_property_create_object
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, 16(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_6:
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	jne	LBB0_12
## %bb.7:
	movq	_DRM_MODE_PROP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_U64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_drm_property_create_range
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, (%rbx)
	jmp	LBB0_12
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_PROP_ATOMIC,4,2       ## @DRM_MODE_PROP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRITEBACK_FB_ID"

	.comm	_DRM_MODE_OBJECT_FB,4,2         ## @DRM_MODE_OBJECT_FB
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_MODE_PROP_BLOB,4,2         ## @DRM_MODE_PROP_BLOB
	.comm	_DRM_MODE_PROP_IMMUTABLE,4,2    ## @DRM_MODE_PROP_IMMUTABLE
L_.str.1:                               ## @.str.1
	.asciz	"WRITEBACK_PIXEL_FORMATS"

L_.str.2:                               ## @.str.2
	.asciz	"WRITEBACK_OUT_FENCE_PTR"

	.comm	_U64_MAX,4,2                    ## @U64_MAX
	.no_dead_strip	_create_writeback_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_writeback_properties
_create_writeback_properties:           ; @create_writeback_properties
	.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]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_3:
	mov	w0, #0
	b	LBB0_11
LBB0_4:
Lloh0:
	adrp	x8, _DRM_MODE_PROP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_PROP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DRM_MODE_OBJECT_FB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_OBJECT_FB@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_drm_property_create_object
	cbz	x0, LBB0_10
; %bb.5:
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
LBB0_6:
Lloh8:
	adrp	x8, _DRM_MODE_PROP_BLOB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_MODE_PROP_BLOB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _DRM_MODE_PROP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRM_MODE_PROP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _DRM_MODE_PROP_IMMUTABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_MODE_PROP_IMMUTABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_drm_property_create
	cbz	x0, LBB0_10
; %bb.7:
	str	x0, [x19, #8]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
LBB0_8:
Lloh19:
	adrp	x8, _DRM_MODE_PROP_ATOMIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DRM_MODE_PROP_ATOMIC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _U64_MAX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _U64_MAX@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_drm_property_create_range
	cbz	x0, LBB0_10
; %bb.9:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_PROP_ATOMIC,4,2       ; @DRM_MODE_PROP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRITEBACK_FB_ID"

	.comm	_DRM_MODE_OBJECT_FB,4,2         ; @DRM_MODE_OBJECT_FB
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_MODE_PROP_BLOB,4,2         ; @DRM_MODE_PROP_BLOB
	.comm	_DRM_MODE_PROP_IMMUTABLE,4,2    ; @DRM_MODE_PROP_IMMUTABLE
l_.str.1:                               ; @.str.1
	.asciz	"WRITEBACK_PIXEL_FORMATS"

l_.str.2:                               ; @.str.2
	.asciz	"WRITEBACK_OUT_FENCE_PTR"

	.comm	_U64_MAX,4,2                    ; @U64_MAX
	.no_dead_strip	_create_writeback_properties
.subsections_via_symbols
