	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tiling_resize_for_border
_tiling_resize_for_border:              ## @tiling_resize_for_border
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DLOG
	movq	$0, -56(%rbp)
	movq	%rbx, -48(%rbp)
	leal	-128(%r13), %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_D_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
                                        ## implicit-def: $r12
	jmp	LBB0_8
LBB0_4:
	movq	_D_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_D_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_D_DOWN@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %r12
LBB0_8:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_resize_find_tiling_participants
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-56(%rbp), %rax
	setne	%dil
	callq	_assert
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_D_UP@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdi
	cmpq	(%rcx), %r12
	je	LBB0_13
## %bb.11:
	movq	_D_LEFT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	je	LBB0_13
## %bb.12:
	movq	%rdi, %rsi
	movq	%rax, %rdi
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG
	jmp	LBB0_18
LBB0_13:
	movq	%rdi, -48(%rbp)
	movq	%rax, -56(%rbp)
	movq	%rax, %rsi
LBB0_14:
	addl	$-129, %r13d
	cmpl	$2, %r13d
	jae	LBB0_15
## %bb.16:
	movq	_HORIZ@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_VERT@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %edx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	_resize_graphical_handler
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	xorl	%eax, %eax
	callq	_tree_render
	movl	$1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"border = %d, con = %p\n"

	.comm	_D_LEFT,8,3                     ## @D_LEFT
	.comm	_D_RIGHT,8,3                    ## @D_RIGHT
	.comm	_D_UP,8,3                       ## @D_UP
	.comm	_D_DOWN,8,3                     ## @D_DOWN
L_.str.1:                               ## @.str.1
	.asciz	"No second container in this direction found.\n"

	.comm	_HORIZ,4,2                      ## @HORIZ
	.comm	_VERT,4,2                       ## @VERT
L_.str.2:                               ## @.str.2
	.asciz	"After resize handler, rendering\n"

	.no_dead_strip	_tiling_resize_for_border
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tiling_resize_for_border
_tiling_resize_for_border:              ; @tiling_resize_for_border
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	stp	x21, x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	stp	x22, xzr, [sp, #16]
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _D_UP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D_UP@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
                                        ; implicit-def: $x22
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _D_RIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D_RIGHT@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _D_LEFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D_LEFT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _D_DOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D_DOWN@GOTPAGEOFF]
LBB0_7:
	ldr	x22, [x8]
LBB0_8:
	add	x0, sp, #16
	add	x1, sp, #24
	mov	x2, x22
	mov	w3, #0
	bl	_resize_find_tiling_participants
	cbz	w0, LBB0_11
; %bb.9:
	ldp	x8, x9, [sp, #16]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldp	x8, x9, [sp, #16]
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh12:
	adrp	x8, _D_UP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D_UP@GOTPAGEOFF]
Lloh14:
	adrp	x9, _D_LEFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _D_LEFT@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x8]
Lloh17:
	ldr	x9, [x9]
	ldp	x8, x0, [sp, #16]
	cmp	x22, x10
	ccmp	x22, x9, #4, ne
	b.ne	LBB0_12
; %bb.10:
	stp	x0, x8, [sp, #16]
	mov	x1, x8
	b	LBB0_13
LBB0_11:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	mov	x1, x0
	mov	x0, x8
LBB0_13:
Lloh20:
	adrp	x8, _HORIZ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HORIZ@GOTPAGEOFF]
	sub	w9, w21, #129
Lloh22:
	adrp	x10, _VERT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _VERT@GOTPAGEOFF]
	cmp	w9, #2
	csel	x8, x8, x10, lo
	ldr	w2, [x8]
	mov	x3, x20
	mov	x4, x19
	bl	_resize_graphical_handler
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	bl	_tree_render
	mov	w0, #1
LBB0_14:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"border = %d, con = %p\n"

	.comm	_D_LEFT,8,3                     ; @D_LEFT
	.comm	_D_RIGHT,8,3                    ; @D_RIGHT
	.comm	_D_UP,8,3                       ; @D_UP
	.comm	_D_DOWN,8,3                     ; @D_DOWN
l_.str.1:                               ; @.str.1
	.asciz	"No second container in this direction found.\n"

	.comm	_HORIZ,4,2                      ; @HORIZ
	.comm	_VERT,4,2                       ; @VERT
l_.str.2:                               ; @.str.2
	.asciz	"After resize handler, rendering\n"

	.no_dead_strip	_tiling_resize_for_border
.subsections_via_symbols
