	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_drm_destroy_resources
_gfx_ctx_drm_destroy_resources:         ## @gfx_ctx_drm_destroy_resources
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, %edi
	callq	_gfx_ctx_drm_wait_flip
	movq	%rbx, %rdi
	callq	_free_drm_resources
	movq	_g_drm_mode@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_g_crtc_id@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_g_connector_id@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	_g_bo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_g_next_bo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_api,4,2                    ## @drm_api
	.comm	_g_drm_mode,8,3                 ## @g_drm_mode
	.comm	_g_crtc_id,8,3                  ## @g_crtc_id
	.comm	_g_connector_id,8,3             ## @g_connector_id
	.comm	_g_bo,8,3                       ## @g_bo
	.comm	_g_next_bo,8,3                  ## @g_next_bo
	.no_dead_strip	_gfx_ctx_drm_destroy_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_drm_destroy_resources
_gfx_ctx_drm_destroy_resources:         ; @gfx_ctx_drm_destroy_resources
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	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
	mov	w0, #1
	bl	_gfx_ctx_drm_wait_flip
	mov	x0, x19
	bl	_free_drm_resources
Lloh0:
	adrp	x8, _g_drm_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_drm_mode@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _g_crtc_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_crtc_id@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x8, _g_connector_id@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_connector_id@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
	stp	xzr, xzr, [x19]
Lloh9:
	adrp	x8, _g_bo@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_bo@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
Lloh12:
	adrp	x8, _g_next_bo@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_next_bo@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_api,4,2                    ; @drm_api
	.comm	_g_drm_mode,8,3                 ; @g_drm_mode
	.comm	_g_crtc_id,8,3                  ; @g_crtc_id
	.comm	_g_connector_id,8,3             ; @g_connector_id
	.comm	_g_bo,8,3                       ; @g_bo
	.comm	_g_next_bo,8,3                  ; @g_next_bo
	.no_dead_strip	_gfx_ctx_drm_destroy_resources
.subsections_via_symbols
