	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_update_hints            ## -- Begin function window_update_hints
	.p2align	4, 0x90
_window_update_hints:                   ## @window_update_hints
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	$0, (%r14)
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_xcb_get_property_value_length
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_xcb_icccm_get_wm_hints_from_reply
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_XCB_ICCCM_WM_HINT_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -32(%rbp)
	je	LBB0_8
## %bb.7:
	movl	-28(%rbp), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movl	%eax, (%r15)
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	leaq	-32(%rbp), %rdi
	callq	_xcb_icccm_wm_hints_get_urgency
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, (%r14)
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_DLOG
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FREE                           ## TAILCALL
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_DLOG
LBB0_10:
	movq	%rbx, %rdi
	callq	_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WM_HINTS not set.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get WM_HINTS\n"

	.comm	_XCB_ICCCM_WM_HINT_INPUT,4,2    ## @XCB_ICCCM_WM_HINT_INPUT
L_.str.2:                               ## @.str.2
	.asciz	"WM_HINTS.input changed to \"%d\"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_update_hints            ; -- Begin function window_update_hints
	.p2align	2
_window_update_hints:                   ; @window_update_hints
	.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, x2
	mov	x19, x1
	mov	x21, x0
	cbz	x2, LBB0_2
; %bb.1:
	str	wzr, [x20]
LBB0_2:
	cbz	x19, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_xcb_get_property_value_length
	cbz	x0, LBB0_9
; %bb.4:
	add	x0, sp, #8
	mov	x1, x19
	bl	_xcb_icccm_get_wm_hints_from_reply
	cbz	w0, LBB0_10
; %bb.5:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _XCB_ICCCM_WM_HINT_INPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XCB_ICCCM_WM_HINT_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [sp, #12]
	cmp	w1, #0
	cset	w8, eq
	str	w8, [x21]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG
LBB0_7:
	cbz	x20, LBB0_11
; %bb.8:
	add	x0, sp, #8
	bl	_xcb_icccm_wm_hints_get_urgency
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x20]
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	mov	x0, 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	_FREE
LBB0_10:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
LBB0_11:
	mov	x0, x19
	bl	_free
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WM_HINTS not set.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get WM_HINTS\n"

	.comm	_XCB_ICCCM_WM_HINT_INPUT,4,2    ; @XCB_ICCCM_WM_HINT_INPUT
l_.str.2:                               ; @.str.2
	.asciz	"WM_HINTS.input changed to \"%d\"\n"

.subsections_via_symbols
