	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tiling_resize
_tiling_resize:                         ## @tiling_resize
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_con_border_style_rect
	movq	(%r14), %rsi
	movq	8(%r14), %rdx
	movl	16(%r14), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_DLOG
	movq	16(%rbx), %rsi
	addq	24(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	_CLICK_DECORATION@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_BORDER_TOP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	cmpq	-40(%rbp), %rax
	jg	LBB0_7
## %bb.4:
	movq	8(%r14), %rcx
	cmpq	-48(%rbp), %rcx
	jl	LBB0_7
## %bb.5:
	movq	-56(%rbp), %rdx
	addq	32(%rbx), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_6
LBB0_7:
	movq	16(%rbx), %rdx
	addq	24(%rbx), %rdx
	movq	8(%r14), %rcx
	cmpq	%rdx, %rax
	jl	LBB0_11
## %bb.8:
	cmpq	-48(%rbp), %rcx
	jl	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rax
	addq	32(%rbx), %rax
	cmpq	%rax, %rcx
	jle	LBB0_10
LBB0_11:
	movq	(%rbx), %rax
	addq	8(%rbx), %rax
	xorl	%r15d, %r15d
	cmpq	%rax, %rcx
	jl	LBB0_14
## %bb.12:
	movq	_BORDER_BOTTOM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	xorl	%r15d, %r15d
	movq	_BORDER_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	xorl	%r15d, %r15d
	movq	_BORDER_LEFT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_tiling_resize_for_border
	movl	%eax, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BORDER x = %d, y = %d for con %p, window 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"checks for right >= %d\n"

	.comm	_CLICK_DECORATION,8,3           ## @CLICK_DECORATION
	.comm	_BORDER_TOP,4,2                 ## @BORDER_TOP
	.comm	_BORDER_LEFT,4,2                ## @BORDER_LEFT
	.comm	_BORDER_RIGHT,4,2               ## @BORDER_RIGHT
	.comm	_BORDER_BOTTOM,4,2              ## @BORDER_BOTTOM
	.no_dead_strip	_tiling_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tiling_resize
_tiling_resize:                         ; @tiling_resize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	x8, sp, #24
	bl	_con_border_style_rect
	ldp	x1, x8, [x19]
	ldr	w9, [x19, #16]
	stp	x20, x9, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldp	x9, x8, [x20, #16]
	add	x1, x9, x8
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
Lloh4:
	adrp	x8, _CLICK_DECORATION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CLICK_DECORATION@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _BORDER_TOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BORDER_TOP@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_6
; %bb.3:
	ldr	x9, [sp, #40]
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.4:
	ldr	x9, [x19, #8]
	ldr	x10, [sp, #32]
	cmp	x9, x10
	b.lt	LBB0_6
; %bb.5:
	ldr	x10, [x20, #32]
	ldr	x11, [sp, #24]
	add	x10, x11, x10
	cmp	x9, x10
	b.le	LBB0_12
LBB0_6:
	ldp	x11, x10, [x20, #16]
	ldr	x9, [x19, #8]
	add	x10, x11, x10
	cmp	x8, x10
	b.lt	LBB0_9
; %bb.7:
	ldr	x8, [sp, #32]
	cmp	x9, x8
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x20, #32]
	ldr	x10, [sp, #24]
	add	x8, x10, x8
	cmp	x9, x8
	b.le	LBB0_11
LBB0_9:
	mov	w21, #0
	ldp	x10, x8, [x20]
	add	x8, x10, x8
	cmp	x9, x8
	b.lt	LBB0_14
; %bb.10:
Lloh9:
	adrp	x8, _BORDER_BOTTOM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BORDER_BOTTOM@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w21, #0
Lloh11:
	adrp	x8, _BORDER_RIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BORDER_RIGHT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	w21, #0
Lloh13:
	adrp	x8, _BORDER_LEFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BORDER_LEFT@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_tiling_resize_for_border
	mov	x21, x0
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BORDER x = %d, y = %d for con %p, window 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"checks for right >= %d\n"

	.comm	_CLICK_DECORATION,8,3           ; @CLICK_DECORATION
	.comm	_BORDER_TOP,4,2                 ; @BORDER_TOP
	.comm	_BORDER_LEFT,4,2                ; @BORDER_LEFT
	.comm	_BORDER_RIGHT,4,2               ; @BORDER_RIGHT
	.comm	_BORDER_BOTTOM,4,2              ; @BORDER_BOTTOM
	.no_dead_strip	_tiling_resize
.subsections_via_symbols
