	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_set_fb_for_plane    ## -- Begin function drm_atomic_set_fb_for_plane
	.p2align	4, 0x90
_drm_atomic_set_fb_for_plane:           ## @drm_atomic_set_fb_for_plane
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movl	4(%rax), %edx
	movslq	(%rax), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
	jmp	LBB0_3
LBB0_2:
	movl	(%rax), %edx
	movl	4(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_framebuffer_assign         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set [FB:%d] for [PLANE:%d:%s] state %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set [NOFB] for [PLANE:%d:%s] state %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_set_fb_for_plane    ; -- Begin function drm_atomic_set_fb_for_plane
	.p2align	2
_drm_atomic_set_fb_for_plane:           ; @drm_atomic_set_fb_for_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	ldp	w3, w2, [x8]
                                        ; kill: def $w3 killed $w3 def $x3
	sxtw	x3, w3
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldp	w2, w1, [x8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x20
LBB0_3:
	bl	_DRM_DEBUG_ATOMIC
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_drm_framebuffer_assign
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set [FB:%d] for [PLANE:%d:%s] state %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set [NOFB] for [PLANE:%d:%s] state %p\n"

.subsections_via_symbols
