	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x_window_kill                  ## -- Begin function x_window_kill
	.p2align	4, 0x90
_x_window_kill:                         ## @x_window_kill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	_A_WM_DELETE_WINDOW@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_window_supports_protocol
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	$32, %edi
	movl	$1, %esi
	callq	_scalloc
	movq	%rax, %rbx
	movq	_XCB_CLIENT_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	%r14d, 20(%rbx)
	movq	_A_WM_PROTOCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$32, (%rbx)
	movl	(%r15), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_XCB_CURRENT_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG
	movq	_conn@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_XCB_EVENT_MASK_NO_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%rbx, %r8
	callq	_xcb_send_event
	movl	(%r15), %edi
	callq	_xcb_flush
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_1:
	movq	_KILL_WINDOW@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_LOG
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xcb_destroy_window             ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_LOG
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xcb_kill_client                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_A_WM_DELETE_WINDOW,4,2         ## @A_WM_DELETE_WINDOW
	.comm	_KILL_WINDOW,8,3                ## @KILL_WINDOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Killing specific window 0x%08x\n"

	.comm	_conn,4,2                       ## @conn
L_.str.1:                               ## @.str.1
	.asciz	"Killing the X11 client which owns window 0x%08x\n"

	.comm	_XCB_CLIENT_MESSAGE,4,2         ## @XCB_CLIENT_MESSAGE
	.comm	_A_WM_PROTOCOLS,4,2             ## @A_WM_PROTOCOLS
	.comm	_XCB_CURRENT_TIME,4,2           ## @XCB_CURRENT_TIME
L_.str.2:                               ## @.str.2
	.asciz	"Sending WM_DELETE to the client\n"

	.comm	_XCB_EVENT_MASK_NO_EVENT,4,2    ## @XCB_EVENT_MASK_NO_EVENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x_window_kill                  ; -- Begin function x_window_kill
	.p2align	2
_x_window_kill:                         ; @x_window_kill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _A_WM_DELETE_WINDOW@GOTPAGE
Lloh1:
	ldr	x21, [x21, _A_WM_DELETE_WINDOW@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_window_supports_protocol
	cbz	w0, LBB0_2
; %bb.1:
	mov	w22, #32
	mov	w0, #32
	mov	w1, #1
	bl	_scalloc
	mov	x20, x0
Lloh2:
	adrp	x8, _XCB_CLIENT_MESSAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XCB_CLIENT_MESSAGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _A_WM_PROTOCOLS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _A_WM_PROTOCOLS@GOTPAGEOFF]
	stp	w19, w8, [x0, #20]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x0, #16]
	str	w22, [x0]
	ldr	w8, [x21]
	ldr	x9, [x0, #8]
	str	w8, [x9]
Lloh8:
	adrp	x8, _XCB_CURRENT_TIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XCB_CURRENT_TIME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x9, #4]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG
Lloh13:
	adrp	x21, _conn@GOTPAGE
Lloh14:
	ldr	x21, [x21, _conn@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _XCB_EVENT_MASK_NO_EVENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XCB_EVENT_MASK_NO_EVENT@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	w1, #0
	mov	x2, x19
	mov	x4, x20
	bl	_xcb_send_event
	ldr	w0, [x21]
	bl	_xcb_flush
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_free
LBB0_2:
Lloh18:
	adrp	x8, _KILL_WINDOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KILL_WINDOW@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
Lloh23:
	adrp	x8, _conn@GOTPAGE
Lloh24:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_xcb_destroy_window
LBB0_4:
	mov	x8, x19
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG
Lloh28:
	adrp	x8, _conn@GOTPAGE
Lloh29:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_xcb_kill_client
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_A_WM_DELETE_WINDOW,4,2         ; @A_WM_DELETE_WINDOW
	.comm	_KILL_WINDOW,8,3                ; @KILL_WINDOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Killing specific window 0x%08x\n"

	.comm	_conn,4,2                       ; @conn
l_.str.1:                               ; @.str.1
	.asciz	"Killing the X11 client which owns window 0x%08x\n"

	.comm	_XCB_CLIENT_MESSAGE,4,2         ; @XCB_CLIENT_MESSAGE
	.comm	_A_WM_PROTOCOLS,4,2             ; @A_WM_PROTOCOLS
	.comm	_XCB_CURRENT_TIME,4,2           ; @XCB_CURRENT_TIME
l_.str.2:                               ; @.str.2
	.asciz	"Sending WM_DELETE to the client\n"

	.comm	_XCB_EVENT_MASK_NO_EVENT,4,2    ; @XCB_EVENT_MASK_NO_EVENT
.subsections_via_symbols
