	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_SetBandsHeight
_REBAR_SetBandsHeight:                  ## @REBAR_SetBandsHeight
	.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, %r15d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_REBAR_GetBand
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %r14d
	jge	LBB0_11
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	%r14d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	movl	%ebx, 4(%rax)
	movl	20(%rax), %esi
	movl	%ebx, %edi
	callq	_max
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_next_visible
	movl	%eax, %r12d
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_2
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_TRACE
	cmpl	%r12d, %r14d
	jge	LBB0_10
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	(%r15,%rbx), %ecx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_NTF_INVALIDATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 16(%rax)
	movq	%rax, %rdi
	addq	$8, %rdi
	movl	%r15d, 8(%rax)
	movl	%ecx, 12(%rax)
	callq	_wine_dbgstr_rect
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_TRACE
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_next_visible
	movl	%eax, %r14d
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r12d
	movl	%r14d, %esi
	callq	_REBAR_GetBand
	movl	(%rax), %ecx
	movq	_SEP_WIDTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	addl	%ebx, %r15d
	cmpl	%r13d, %ecx
	movl	%ecx, %r13d
	movl	$0, %ecx
	cmovel	%ecx, %r15d
	addl	%r12d, %r15d
	cmpl	%r15d, 8(%rax)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	(%r15,%rbx), %ecx
	cmpl	%ecx, 12(%rax)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_8
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_TRACE
LBB0_10:
	addl	%r15d, %ebx
	movl	%ebx, %eax
	addq	$24, %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	"Bands [%d; %d) height: %d\n"

	.comm	_SEP_WIDTH,8,3                  ## @SEP_WIDTH
	.comm	_NTF_INVALIDATE,4,2             ## @NTF_INVALIDATE
L_.str.1:                               ## @.str.1
	.asciz	"Band %d: %s\n"

	.no_dead_strip	_REBAR_SetBandsHeight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_SetBandsHeight
_REBAR_SetBandsHeight:                  ; @REBAR_SetBandsHeight
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_REBAR_GetBand
	cmp	w21, w20
	b.ge	LBB0_10
; %bb.1:
	mov	w23, #0
	ldr	w27, [x0]
	mov	x24, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_REBAR_GetBand
	str	w23, [x0, #4]
	ldr	w1, [x0, #20]
	mov	x0, x23
	bl	_max
	mov	x23, x0
	mov	x0, x22
	mov	x1, x24
	bl	_next_visible
	mov	x24, x0
	cmp	w0, w20
	b.lt	LBB0_2
; %bb.3:
	str	x23, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_TRACE
	cmp	w21, w20
	b.ge	LBB0_11
; %bb.4:
Lloh2:
	adrp	x25, _SEP_WIDTH@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SEP_WIDTH@GOTPAGEOFF]
Lloh4:
	adrp	x26, _NTF_INVALIDATE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NTF_INVALIDATE@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w19, w23
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w10, [x26]
	ldr	w11, [x0, #16]
	orr	w10, w11, w10
	stp	w9, w10, [x0, #12]
	str	w19, [x0, #8]
	mov	x0, x8
	bl	_wine_dbgstr_rect
	mov	x2, x0
	mov	x0, x24
	mov	x1, x21
	bl	_TRACE
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_next_visible
	mov	x21, x0
	mov	x27, x28
	cmp	w0, w20
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_REBAR_GetBand
	ldr	w28, [x0]
	ldr	w8, [x25]
	add	w8, w23, w8
	cmp	w28, w27
	csel	w9, wzr, w8, eq
	mov	x8, x0
	ldr	w10, [x8, #8]!
	add	w19, w9, w19
	cmp	w10, w19
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w10, [x0, #12]
	add	w9, w19, w23
	cmp	w10, w9
	b.ne	LBB0_6
	b	LBB0_7
LBB0_10:
	str	xzr, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_TRACE
	mov	w23, #0
LBB0_11:
	add	w0, w19, w23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bands [%d; %d) height: %d\n"

	.comm	_SEP_WIDTH,8,3                  ; @SEP_WIDTH
	.comm	_NTF_INVALIDATE,4,2             ; @NTF_INVALIDATE
l_.str.1:                               ; @.str.1
	.asciz	"Band %d: %s\n"

	.no_dead_strip	_REBAR_SetBandsHeight
.subsections_via_symbols
