	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_wl_destroy_resources
_gfx_ctx_wl_destroy_resources:          ## @gfx_ctx_wl_destroy_resources
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_42
## %bb.1:
	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	184(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_wl_keyboard_destroy
LBB0_3:
	movq	176(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_wl_pointer_destroy
LBB0_5:
	movq	168(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_wl_touch_destroy
LBB0_7:
	movq	160(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_wl_cursor_theme_destroy
LBB0_9:
	movq	152(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_wl_surface_destroy
LBB0_11:
	movq	144(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_wl_seat_destroy
LBB0_13:
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_xdg_wm_base_destroy
LBB0_15:
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_zxdg_shell_v6_destroy
LBB0_17:
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_wl_compositor_destroy
LBB0_19:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_wl_registry_destroy
LBB0_21:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_xdg_surface_destroy
LBB0_23:
	movq	136(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_zxdg_surface_v6_destroy
LBB0_25:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_wl_surface_destroy
LBB0_27:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_xdg_toplevel_destroy
LBB0_29:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_zxdg_toplevel_v6_destroy
LBB0_31:
	movq	128(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.32:
	callq	_zwp_idle_inhibit_manager_v1_destroy
LBB0_33:
	movq	120(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:
	callq	_zxdg_toplevel_decoration_v1_destroy
LBB0_35:
	movq	112(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.36:
	callq	_zxdg_decoration_manager_v1_destroy
LBB0_37:
	movq	104(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.38:
	callq	_zwp_idle_inhibitor_v1_destroy
LBB0_39:
	leaq	64(%rbx), %r14
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.40:
	callq	_wl_display_flush
	movq	48(%rbx), %rdi
	callq	_wl_display_disconnect
LBB0_41:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, (%rbx)
	movq	$0, 48(%rbx)
	movups	%xmm0, 16(%r14)
	movups	%xmm0, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_42:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wl_api,4,2                     ## @wl_api
	.no_dead_strip	_gfx_ctx_wl_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_wl_destroy_resources
_gfx_ctx_wl_destroy_resources:          ; @gfx_ctx_wl_destroy_resources
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_42
; %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
	ldr	x0, [x0, #184]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_wl_keyboard_destroy
LBB0_3:
	ldr	x0, [x19, #176]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_wl_pointer_destroy
LBB0_5:
	ldr	x0, [x19, #168]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_wl_touch_destroy
LBB0_7:
	ldr	x0, [x19, #160]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_wl_cursor_theme_destroy
LBB0_9:
	ldr	x0, [x19, #152]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_wl_surface_destroy
LBB0_11:
	ldr	x0, [x19, #144]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_wl_seat_destroy
LBB0_13:
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_xdg_wm_base_destroy
LBB0_15:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_zxdg_shell_v6_destroy
LBB0_17:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_wl_compositor_destroy
LBB0_19:
	mov	x20, x19
	ldr	x0, [x20, #64]!
	cbz	x0, LBB0_21
; %bb.20:
	bl	_wl_registry_destroy
LBB0_21:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_xdg_surface_destroy
LBB0_23:
	ldr	x0, [x19, #136]
	cbz	x0, LBB0_25
; %bb.24:
	bl	_zxdg_surface_v6_destroy
LBB0_25:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_27
; %bb.26:
	bl	_wl_surface_destroy
LBB0_27:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_29
; %bb.28:
	bl	_xdg_toplevel_destroy
LBB0_29:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_zxdg_toplevel_v6_destroy
LBB0_31:
	ldr	x0, [x19, #128]
	cbz	x0, LBB0_33
; %bb.32:
	bl	_zwp_idle_inhibit_manager_v1_destroy
LBB0_33:
	ldr	x0, [x19, #120]
	cbz	x0, LBB0_35
; %bb.34:
	bl	_zxdg_toplevel_decoration_v1_destroy
LBB0_35:
	ldr	x0, [x19, #112]
	cbz	x0, LBB0_37
; %bb.36:
	bl	_zxdg_decoration_manager_v1_destroy
LBB0_37:
	ldr	x0, [x19, #104]
	cbz	x0, LBB0_39
; %bb.38:
	bl	_zwp_idle_inhibitor_v1_destroy
LBB0_39:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_41
; %bb.40:
	bl	_wl_display_flush
	ldr	x0, [x19, #48]
	bl	_wl_display_disconnect
LBB0_41:
	str	xzr, [x19, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	str	q0, [x19]
	stp	q0, q0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_42:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_wl_api,4,2                     ; @wl_api
	.no_dead_strip	_gfx_ctx_wl_destroy_resources
.subsections_via_symbols
