	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x11_set_window_pid
_x11_set_window_pid:                    ## @x11_set_window_pid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, -48(%rbp)
	movq	_False@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_XInternAtom
	movq	_XA_CARDINAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PropModeReplace@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	leaq	-48(%rbp), %rbx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	$32, %r8d
	pushq	$1
	pushq	%rbx
	callq	_XChangeProperty
	addq	$16, %rsp
	movq	_errno@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movq	__SC_HOST_NAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%r15)
	jne	LBB0_7
LBB0_2:
	incq	%rbx
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_gethostname
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	_XA_WM_CLIENT_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_XA_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %r13d
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	$8, %r8d
	movl	%r13d, %r9d
	pushq	%rax
	pushq	%r15
	callq	_XChangeProperty
	addq	$16, %rsp
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_WARN
LBB0_6:
	movq	%r15, %rdi
	callq	_free
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_NET_WM_PID"

	.comm	_False,4,2                      ## @False
	.comm	_XA_CARDINAL,4,2                ## @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ## @PropModeReplace
	.comm	_errno,8,3                      ## @errno
	.comm	__SC_HOST_NAME_MAX,4,2          ## @_SC_HOST_NAME_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get hostname.\n"

	.comm	_XA_WM_CLIENT_MACHINE,4,2       ## @XA_WM_CLIENT_MACHINE
	.comm	_XA_STRING,4,2                  ## @XA_STRING
	.no_dead_strip	_x11_set_window_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x11_set_window_pid
_x11_set_window_pid:                    ; @x11_set_window_pid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_getpid
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _False@GOTPAGE
Lloh1:
	ldr	x8, [x8, _False@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_XInternAtom
	mov	x2, x0
Lloh5:
	adrp	x8, _XA_CARDINAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XA_CARDINAL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x24, _PropModeReplace@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PropModeReplace@GOTPAGEOFF]
	ldr	w5, [x24]
	add	x6, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w4, #32
	mov	w7, #1
	bl	_XChangeProperty
Lloh10:
	adrp	x21, _errno@GOTPAGE
Lloh11:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
Lloh12:
	adrp	x8, __SC_HOST_NAME_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, __SC_HOST_NAME_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_sysconf
	ldr	x8, [x21]
	cmn	x0, #1
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_6
; %bb.1:
	add	x22, x0, #1
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	mov	x1, x22
	bl	_gethostname
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _XA_WM_CLIENT_MACHINE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XA_WM_CLIENT_MACHINE@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _XA_STRING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XA_STRING@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
	ldr	w24, [x24]
	mov	x0, x21
	bl	_strlen
	mov	x7, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	mov	w4, #8
	mov	x5, x24
	mov	x6, x21
	bl	_XChangeProperty
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_WARN
LBB0_5:
	mov	x0, x21
	bl	_free
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_NET_WM_PID"

	.comm	_False,4,2                      ; @False
	.comm	_XA_CARDINAL,4,2                ; @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ; @PropModeReplace
	.comm	_errno,8,3                      ; @errno
	.comm	__SC_HOST_NAME_MAX,4,2          ; @_SC_HOST_NAME_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get hostname.\n"

	.comm	_XA_WM_CLIENT_MACHINE,4,2       ; @XA_WM_CLIENT_MACHINE
	.comm	_XA_STRING,4,2                  ; @XA_STRING
	.no_dead_strip	_x11_set_window_pid
.subsections_via_symbols
