	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scratchpad_move                ## -- Begin function scratchpad_move
	.p2align	4, 0x90
_scratchpad_move:                       ## @scratchpad_move
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CT_WORKSPACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	28(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_LOG
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %rbx
	movq	_focused@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_scratchpad_move
	movq	%r14, %rbx
	testq	%r14, %r14
	jne	LBB0_3
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_workspace_get
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_con_get_workspace
	cmpq	%r12, %rax
	je	LBB0_13
## %bb.5:
	movq	%rbx, %rdi
	callq	_con_disable_fullscreen
	movq	%rbx, %rdi
	callq	_con_inside_floating
	movq	%rax, %r15
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_floating_enable
	movq	16(%rbx), %r14
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_con_move_to_workspace
	movq	8(%r14), %rax
	movq	_SCRATCHPAD_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	cmpq	%r15, %r14
	je	LBB0_9
## %bb.10:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	_SCRATCHPAD_FRESH@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DLOG                           ## TAILCALL
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	_SCRATCHPAD_CHANGED@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_WORKSPACE,8,3               ## @CT_WORKSPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'move scratchpad' used on a workspace \"%s\". Calling it recursively on all windows on this workspace.\n"

	.comm	_focused,4,2                    ## @focused
L_.str.1:                               ## @.str.1
	.asciz	"should move con %p to __i3_scratch\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"This window is already on __i3_scratch.\n"

	.comm	_SCRATCHPAD_NONE,8,3            ## @SCRATCHPAD_NONE
L_.str.4:                               ## @.str.4
	.asciz	"This window was never used as a scratchpad before.\n"

L_.str.5:                               ## @.str.5
	.asciz	"It was in floating mode before, set scratchpad state to changed.\n"

	.comm	_SCRATCHPAD_CHANGED,8,3         ## @SCRATCHPAD_CHANGED
L_.str.6:                               ## @.str.6
	.asciz	"It was in tiling mode before, set scratchpad state to fresh.\n"

	.comm	_SCRATCHPAD_FRESH,8,3           ## @SCRATCHPAD_FRESH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scratchpad_move                ; -- Begin function scratchpad_move
	.p2align	2
_scratchpad_move:                       ; @scratchpad_move
	.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]
Lloh0:
	adrp	x9, _CT_WORKSPACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CT_WORKSPACE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w1, [x19, #28]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
	add	x0, x19, #24
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_13
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x21, _focused@GOTPAGE
Lloh6:
	ldr	x21, [x21, _focused@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_TAILQ_NEXT
	mov	x20, x0
	mov	x0, x19
	bl	_scratchpad_move
	mov	x19, x20
	cbnz	x20, LBB0_3
	b	LBB0_13
LBB0_4:
	str	x19, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_workspace_get
	mov	x21, x0
	mov	x0, x19
	bl	_con_get_workspace
	cmp	x0, x21
	b.eq	LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_con_disable_fullscreen
	mov	x0, x19
	bl	_con_inside_floating
	mov	x22, x0
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_floating_enable
	ldr	x20, [x19, #16]
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	bl	_con_move_to_workspace
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x9, _SCRATCHPAD_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SCRATCHPAD_NONE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DLOG
	cmp	x20, x22
	b.eq	LBB0_11
; %bb.9:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DLOG
Lloh18:
	adrp	x8, _SCRATCHPAD_FRESH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCRATCHPAD_FRESH@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	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
LBB0_11:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DLOG
Lloh24:
	adrp	x8, _SCRATCHPAD_CHANGED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SCRATCHPAD_CHANGED@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_13:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_WORKSPACE,8,3               ; @CT_WORKSPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'move scratchpad' used on a workspace \"%s\". Calling it recursively on all windows on this workspace.\n"

	.comm	_focused,4,2                    ; @focused
l_.str.1:                               ; @.str.1
	.asciz	"should move con %p to __i3_scratch\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"This window is already on __i3_scratch.\n"

	.comm	_SCRATCHPAD_NONE,8,3            ; @SCRATCHPAD_NONE
l_.str.4:                               ; @.str.4
	.asciz	"This window was never used as a scratchpad before.\n"

l_.str.5:                               ; @.str.5
	.asciz	"It was in floating mode before, set scratchpad state to changed.\n"

	.comm	_SCRATCHPAD_CHANGED,8,3         ; @SCRATCHPAD_CHANGED
l_.str.6:                               ; @.str.6
	.asciz	"It was in tiling mode before, set scratchpad state to fresh.\n"

	.comm	_SCRATCHPAD_FRESH,8,3           ; @SCRATCHPAD_FRESH
.subsections_via_symbols
