	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_get_wm_name                ## -- Begin function x11_get_wm_name
	.p2align	4, 0x90
_x11_get_wm_name:                       ## @x11_get_wm_name
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_g_x11_dpy@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_False@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_XInternAtom
	movl	%eax, %r14d
	movl	(%r15), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_XInternAtom
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_XInternAtom
                                        ## kill: def $eax killed $eax def $rax
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -48(%rbp)
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.2:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_DefaultRootWindow
	movl	(%r12), %r9d
	movq	_XA_WINDOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-48(%rbp), %r10
	leaq	-80(%rbp), %r11
	leaq	-88(%rbp), %r12
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	pushq	%r10
	pushq	%r11
	pushq	%r12
	leaq	-56(%rbp), %rax
	pushq	%rax
	leaq	-60(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	callq	_XGetWindowProperty
	addq	$48, %rsp
	movq	_Success@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	_False@GOTPCREL(%rip), %r12
	je	LBB0_7
## %bb.4:
	movl	(%rdi), %r14d
	callq	_XFree
	movl	(%r12), %r9d
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	$8192, %r8d                     ## imm = 0x2000
	leaq	-48(%rbp), %rax
	pushq	%rax
	leaq	-80(%rbp), %rax
	pushq	%rax
	leaq	-88(%rbp), %rax
	pushq	%rax
	leaq	-56(%rbp), %rax
	pushq	%rax
	leaq	-60(%rbp), %rax
	pushq	%rax
	pushq	%r15
	callq	_XGetWindowProperty
	addq	$48, %rsp
	movq	_Success@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_XFree
LBB0_7:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_x11_dpy,4,2                  ## @g_x11_dpy
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_NET_SUPPORTING_WM_CHECK"

	.comm	_False,4,2                      ## @False
L_.str.1:                               ## @.str.1
	.asciz	"_NET_WM_NAME"

L_.str.2:                               ## @.str.2
	.asciz	"UTF8_STRING"

	.comm	_XA_WINDOW,4,2                  ## @XA_WINDOW
	.comm	_Success,8,3                    ## @Success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_get_wm_name                ; -- Begin function x11_get_wm_name
	.p2align	2
_x11_get_wm_name:                       ; @x11_get_wm_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _g_x11_dpy@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_x11_dpy@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x24, _False@GOTPAGE
Lloh3:
	ldr	x24, [x24, _False@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_XInternAtom
	mov	x22, x0
	ldr	w0, [x21]
	ldr	w2, [x24]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_XInternAtom
	mov	x20, x0
	ldr	w0, [x21]
	ldr	w2, [x24]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_XInternAtom
	mov	x23, #0
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #32]
	cmp	w22, #0
	ccmp	w20, #0, #4, ne
	b.eq	LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_DefaultRootWindow
	mov	x1, x0
	ldr	w5, [x24]
Lloh10:
	adrp	x8, _XA_WINDOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XA_WINDOW@GOTPAGEOFF]
Lloh12:
	ldr	w6, [x8]
	add	x26, sp, #32
	add	x27, sp, #40
	stp	x27, x26, [sp, #16]
	add	x23, sp, #48
	add	x25, sp, #56
	stp	x25, x23, [sp]
	add	x7, sp, #60
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	mov	w4, #1
	bl	_XGetWindowProperty
	mov	x8, x0
Lloh13:
	adrp	x28, _Success@GOTPAGE
Lloh14:
	ldr	x28, [x28, _Success@GOTPAGEOFF]
	ldr	x9, [x28]
	ldr	x0, [sp, #32]
	cmp	x8, x9
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_3
; %bb.2:
	mov	x23, #0
	b	LBB0_6
LBB0_3:
	ldr	w22, [x0]
	bl	_XFree
	ldr	w5, [x24]
	stp	x27, x26, [sp, #16]
	add	x7, sp, #60
	stp	x25, x23, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	w3, #0
	mov	w4, #8192
	mov	x6, x21
	bl	_XGetWindowProperty
	mov	x23, #0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x19, [sp, #32]
	cbz	x19, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_strdup
	mov	x23, x0
	mov	x0, x19
	bl	_XFree
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_dpy,4,2                  ; @g_x11_dpy
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_NET_SUPPORTING_WM_CHECK"

	.comm	_False,4,2                      ; @False
l_.str.1:                               ; @.str.1
	.asciz	"_NET_WM_NAME"

l_.str.2:                               ; @.str.2
	.asciz	"UTF8_STRING"

	.comm	_XA_WINDOW,4,2                  ; @XA_WINDOW
	.comm	_Success,8,3                    ; @Success
.subsections_via_symbols
