	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_window_destroy             ## -- Begin function x11_window_destroy
	.p2align	4, 0x90
_x11_window_destroy:                    ## @x11_window_destroy
	.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
	movl	%edi, %ebx
	movq	_g_x11_win@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_g_x11_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XUnmapWindow
LBB0_2:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_g_x11_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_XDestroyWindow
LBB0_4:
	movq	_None@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_x11_win,8,3                  ## @g_x11_win
	.comm	_g_x11_dpy,4,2                  ## @g_x11_dpy
	.comm	_None,8,3                       ## @None
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_window_destroy             ; -- Begin function x11_window_destroy
	.p2align	2
_x11_window_destroy:                    ; @x11_window_destroy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _g_x11_win@GOTPAGE
Lloh1:
	ldr	x20, [x20, _g_x11_win@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh2:
	adrp	x21, _g_x11_dpy@GOTPAGE
Lloh3:
	ldr	x21, [x21, _g_x11_dpy@GOTPAGEOFF]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_XUnmapWindow
LBB0_2:
	cbnz	w19, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	ldr	x1, [x20]
	bl	_XDestroyWindow
LBB0_4:
Lloh4:
	adrp	x8, _None@GOTPAGE
Lloh5:
	ldr	x8, [x8, _None@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_win,8,3                  ; @g_x11_win
	.comm	_g_x11_dpy,4,2                  ; @g_x11_dpy
	.comm	_None,8,3                       ; @None
.subsections_via_symbols
