	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_focus_in
_handle_focus_in:                       ## @handle_focus_in
	.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	%rdi, %r14
	movq	(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	(%r14), %rdi
	movq	_root@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	_focused@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_con_focus
	movq	_XCB_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_focused_id@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_croot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_x_push_changes
	movq	(%r14), %rdi
LBB0_2:
	callq	_con_by_window_id
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	je	LBB0_16
## %bb.4:
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	movq	8(%r14), %rax
	movq	_XCB_NOTIFY_MODE_GRAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_XCB_NOTIFY_MODE_UNGRAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.8:
	movq	16(%r14), %rax
	movq	_XCB_NOTIFY_DETAIL_POINTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DLOG                           ## TAILCALL
LBB0_10:
	movq	_focused_id@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_con_inside_floating
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_CT_DOCKAREA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_7
LBB0_15:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	%rbx, %rdi
	callq	_con_activate_unblock
	movq	(%r14), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tree_render                    ## TAILCALL
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"focus change in, for window 0x%08x\n"

	.comm	_root,8,3                       ## @root
L_.str.1:                               ## @.str.1
	.asciz	"Received focus in for root window, refocusing the focused window.\n"

	.comm	_focused,4,2                    ## @focused
	.comm	_XCB_NONE,8,3                   ## @XCB_NONE
	.comm	_focused_id,8,3                 ## @focused_id
	.comm	_croot,4,2                      ## @croot
L_.str.2:                               ## @.str.2
	.asciz	"That is con %p / %s\n"

	.comm	_XCB_NOTIFY_MODE_GRAB,8,3       ## @XCB_NOTIFY_MODE_GRAB
	.comm	_XCB_NOTIFY_MODE_UNGRAB,8,3     ## @XCB_NOTIFY_MODE_UNGRAB
L_.str.3:                               ## @.str.3
	.asciz	"FocusIn event for grab/ungrab, ignoring\n"

	.comm	_XCB_NOTIFY_DETAIL_POINTER,8,3  ## @XCB_NOTIFY_DETAIL_POINTER
L_.str.4:                               ## @.str.4
	.asciz	"notify detail is pointer, ignoring this event\n"

L_.str.5:                               ## @.str.5
	.asciz	"focus matches the currently focused window, not doing anything\n"

	.comm	_CT_DOCKAREA,8,3                ## @CT_DOCKAREA
L_.str.6:                               ## @.str.6
	.asciz	"This is a dock client, not focusing.\n"

L_.str.7:                               ## @.str.7
	.asciz	"focus is different / refocusing floating window: updating decorations\n"

	.no_dead_strip	_handle_focus_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_focus_in
_handle_focus_in:                       ; @handle_focus_in
	.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	x19, x0
	ldr	x8, [x0]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _root@GOTPAGE
Lloh3:
	ldr	x8, [x8, _root@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
Lloh7:
	adrp	x8, _focused@GOTPAGE
Lloh8:
	ldr	x8, [x8, _focused@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_con_focus
Lloh10:
	adrp	x8, _XCB_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XCB_NONE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _focused_id@GOTPAGE
Lloh14:
	ldr	x9, [x9, _focused_id@GOTPAGEOFF]
Lloh15:
	str	x8, [x9]
Lloh16:
	adrp	x8, _croot@GOTPAGE
Lloh17:
	ldr	x8, [x8, _croot@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_x_push_changes
	ldr	x0, [x19]
LBB0_2:
	bl	_con_by_window_id
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x20, #8]
	stp	x20, x8, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _XCB_NOTIFY_MODE_GRAB@GOTPAGE
Lloh22:
	ldr	x9, [x9, _XCB_NOTIFY_MODE_GRAB@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _XCB_NOTIFY_MODE_UNGRAB@GOTPAGE
Lloh25:
	ldr	x10, [x10, _XCB_NOTIFY_MODE_UNGRAB@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.5:
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x19, #16]
Lloh29:
	adrp	x9, _XCB_NOTIFY_DETAIL_POINTER@GOTPAGE
Lloh30:
	ldr	x9, [x9, _XCB_NOTIFY_DETAIL_POINTER@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_9:
Lloh34:
	adrp	x21, _focused_id@GOTPAGE
Lloh35:
	ldr	x21, [x21, _focused_id@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_con_inside_floating
	cbz	w0, LBB0_14
LBB0_11:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _CT_DOCKAREA@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CT_DOCKAREA@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DLOG
	mov	x0, x20
	bl	_con_activate_unblock
	ldr	x8, [x19]
	str	x8, [x21]
	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	_tree_render
LBB0_14:
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_15:
	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	_DLOG
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"focus change in, for window 0x%08x\n"

	.comm	_root,8,3                       ; @root
l_.str.1:                               ; @.str.1
	.asciz	"Received focus in for root window, refocusing the focused window.\n"

	.comm	_focused,4,2                    ; @focused
	.comm	_XCB_NONE,8,3                   ; @XCB_NONE
	.comm	_focused_id,8,3                 ; @focused_id
	.comm	_croot,4,2                      ; @croot
l_.str.2:                               ; @.str.2
	.asciz	"That is con %p / %s\n"

	.comm	_XCB_NOTIFY_MODE_GRAB,8,3       ; @XCB_NOTIFY_MODE_GRAB
	.comm	_XCB_NOTIFY_MODE_UNGRAB,8,3     ; @XCB_NOTIFY_MODE_UNGRAB
l_.str.3:                               ; @.str.3
	.asciz	"FocusIn event for grab/ungrab, ignoring\n"

	.comm	_XCB_NOTIFY_DETAIL_POINTER,8,3  ; @XCB_NOTIFY_DETAIL_POINTER
l_.str.4:                               ; @.str.4
	.asciz	"notify detail is pointer, ignoring this event\n"

l_.str.5:                               ; @.str.5
	.asciz	"focus matches the currently focused window, not doing anything\n"

	.comm	_CT_DOCKAREA,8,3                ; @CT_DOCKAREA
l_.str.6:                               ; @.str.6
	.asciz	"This is a dock client, not focusing.\n"

l_.str.7:                               ; @.str.7
	.asciz	"focus is different / refocusing floating window: updating decorations\n"

	.no_dead_strip	_handle_focus_in
.subsections_via_symbols
