	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btcx_align                     ## -- Begin function btcx_align
	.p2align	4, 0x90
_btcx_align:                            ## @btcx_align
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	(%rdi), %r8d
	movl	4(%rdi), %edx
	leal	(%r8,%rax), %ecx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	notl	%r13d
	andl	%r13d, %ecx
	movl	%edx, %eax
	andl	%r13d, %eax
	leal	(%rcx,%rax), %esi
	addl	%r8d, %edx
	cmpl	%edx, %esi
	movl	$0, %esi
	cmovgl	%r13d, %esi
	addl	%eax, %esi
	movl	%ecx, %r15d
	subl	%r8d, %r15d
	movl	%ecx, (%rdi)
	movl	%esi, 4(%rdi)
	movl	12(%rdi), %edx
	movl	8(%rdi), %r8d
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r12d
	shlq	$4, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %esi
	movl	%ecx, (%rbx,%r14)
	movl	%esi, 4(%rbx,%r14)
	movl	12(%rbx,%r14), %edx
	movl	8(%rbx,%r14), %r8d
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dprintk
	addq	$16, %r14
	cmpq	%r14, %r12
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14), %edx
	movl	4(%rbx,%r14), %eax
	subl	%r15d, %edx
	movl	%edx, %ecx
	andl	%r13d, %ecx
	addl	%eax, %edx
	andl	%r13d, %eax
	leal	(%rcx,%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	cmpl	%edx, %edi
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btcx: window align %dx%d+%d+%d [dx=%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"btcx:   clip align %dx%d+%d+%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btcx_align                     ; -- Begin function btcx_align
	.p2align	2
_btcx_align:                            ; @btcx_align
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	ldp	w8, w9, [x0]
	add	w10, w8, w3
	bic	w3, w10, w3
	bic	w10, w9, w21
	add	w11, w3, w10
	add	w9, w9, w8
	cmp	w11, w9
	csinv	w9, wzr, w21, le
	add	w1, w9, w10
	sub	w22, w3, w8
	stp	w3, w1, [x0]
	ldp	w4, w2, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	str	x22, [sp]
	bl	_dprintk
	cbz	w20, LBB0_3
; %bb.1:
	mvn	w23, w21
	add	w21, w21, #1
	mov	w24, w20
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x19]
	sub	w8, w8, w22
	and	w3, w8, w23
	and	w10, w9, w23
	add	w11, w3, w10
	add	w8, w8, w9
	cmp	w11, w8
	csel	w8, w21, wzr, lt
	add	w1, w8, w10
	stp	w3, w1, [x19]
	ldp	w4, w2, [x19, #8]
	mov	x0, x20
	bl	_dprintk
	add	x19, x19, #16
	subs	x24, x24, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btcx: window align %dx%d+%d+%d [dx=%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"btcx:   clip align %dx%d+%d+%d\n"

.subsections_via_symbols
