	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CBCalcPlacement
_CBCalcPlacement:                       ## @CBCalcPlacement
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	%rdx, %rsi
	callq	_GetClientRect
	xorl	%eax, %eax
	callq	_COMBO_XBORDERSIZE
	movl	%eax, %r14d
	negl	%r14d
	xorl	%eax, %eax
	callq	_COMBO_YBORDERSIZE
	negl	%eax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_InflateRect
	movq	8(%r13), %rbx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_CBGetTextAreaHeight
	addq	%rbx, %rax
	movq	%rax, (%r13)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r15
	movq	%r13, %rsi
	callq	_CopyRect
	movq	%r12, %rdi
	callq	_CB_GETTYPE
	movq	_CBS_SIMPLE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rax
	movq	$0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	24(%r15), %rbx
	movq	_SM_CXVSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	subq	%rax, %rbx
	movq	%r13, %rax
LBB0_3:
	movq	%rbx, 24(%rax)
	movq	%rbx, 16(%r15)
	movq	%r12, %rdi
	callq	_CB_GETTYPE
	movq	_CBS_DROPDOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_COMBO_EDITBUTTONSPACE
	subq	%rax, 24(%r13)
LBB0_5:
	movq	%r12, %rdi
	callq	_CB_GETTYPE
	movq	_CBS_DROPDOWNLIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_EDIT_CONTROL_PADDING
	movl	%eax, %ebx
	negl	%ebx
	xorl	%eax, %eax
	callq	_EDIT_CONTROL_PADDING
	negl	%eax
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_InflateRect
LBB0_7:
	movq	%r12, %rdi
	callq	_CB_GETTYPE
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_GetClientRect
	movq	(%r13), %r14
	xorl	%eax, %eax
	callq	_COMBO_YBORDERSIZE
	cltq
	addq	%r14, %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_13
LBB0_9:
	movq	(%r12), %r14
	movq	24(%r15), %rbx
	xorl	%eax, %eax
	callq	_COMBO_XBORDERSIZE
	cltq
	addq	%rbx, %rax
	movq	%r15, %rcx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rbx
	cmpq	%rax, %r14
	jge	LBB0_12
## %bb.10:
	addq	24(%rcx), %rbx
	xorl	%eax, %eax
	movq	%rcx, %r14
	callq	_COMBO_XBORDERSIZE
	cltq
	addq	%rbx, %rax
	movq	%rax, 24(%r15)
	movq	%r12, %rdi
	callq	_CB_GETTYPE
	movq	_CBS_DROPDOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r15, %rbx
	movq	%r14, %r15
	jne	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	callq	_COMBO_EDITBUTTONSPACE
	subq	%rax, 24(%rbx)
	jmp	LBB0_13
LBB0_12:
	addq	(%r12), %rbx
	movq	%rbx, 24(%r15)
	movq	%r15, %rbx
	movq	%rcx, %r15
LBB0_13:
	movq	16(%r13), %rax
	cmpq	%rax, 24(%r13)
	jge	LBB0_15
## %bb.14:
	movq	%rax, 24(%r13)
LBB0_15:
	movq	%r13, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	%r15, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CBS_SIMPLE,8,3                 ## @CBS_SIMPLE
	.comm	_SM_CXVSCROLL,4,2               ## @SM_CXVSCROLL
	.comm	_CBS_DROPDOWN,8,3               ## @CBS_DROPDOWN
	.comm	_CBS_DROPDOWNLIST,8,3           ## @CBS_DROPDOWNLIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\ttext\t= (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"\tbutton\t= (%s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"\tlbox\t= (%s)\n"

	.no_dead_strip	_CBCalcPlacement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CBCalcPlacement
_CBCalcPlacement:                       ; @CBCalcPlacement
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x1, x2
	bl	_GetClientRect
	bl	_COMBO_XBORDERSIZE
	neg	w24, w0
	bl	_COMBO_YBORDERSIZE
	neg	w2, w0
	mov	x0, x21
	mov	x1, x24
	bl	_InflateRect
	ldr	x24, [x21, #8]
	mov	x0, x23
	mov	x1, x22
	bl	_CBGetTextAreaHeight
	add	x8, x0, x24
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_CopyRect
	mov	x0, x22
	bl	_CB_GETTYPE
Lloh0:
	adrp	x25, _CBS_SIMPLE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CBS_SIMPLE@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #0
	str	xzr, [x20]
	mov	x9, x20
	b	LBB0_3
LBB0_2:
	ldr	x24, [x20, #24]
Lloh2:
	adrp	x8, _SM_CXVSCROLL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SM_CXVSCROLL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	sub	x8, x24, x0
	mov	x9, x21
LBB0_3:
	str	x8, [x9, #24]
	str	x8, [x20, #16]
	mov	x0, x22
	bl	_CB_GETTYPE
Lloh5:
	adrp	x26, _CBS_DROPDOWN@GOTPAGE
Lloh6:
	ldr	x26, [x26, _CBS_DROPDOWN@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	bl	_COMBO_EDITBUTTONSPACE
	ldr	x8, [x21, #24]
	sub	x8, x8, x0
	str	x8, [x21, #24]
LBB0_5:
	mov	x0, x22
	bl	_CB_GETTYPE
Lloh7:
	adrp	x8, _CBS_DROPDOWNLIST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CBS_DROPDOWNLIST@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	bl	_EDIT_CONTROL_PADDING
	neg	w24, w0
	bl	_EDIT_CONTROL_PADDING
	neg	w2, w0
	mov	x0, x21
	mov	x1, x24
	bl	_InflateRect
LBB0_7:
	mov	x0, x22
	bl	_CB_GETTYPE
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x19
	bl	_GetClientRect
	ldr	x22, [x21]
	bl	_COMBO_YBORDERSIZE
	add	x8, x22, w0, sxtw
	str	x8, [x19, #8]
	b	LBB0_14
LBB0_9:
	ldr	x24, [x22]
	ldr	x23, [x20, #24]
	bl	_COMBO_XBORDERSIZE
	add	x8, x23, w0, sxtw
	ldr	x23, [x19, #16]
	cmp	x24, x8
	b.ge	LBB0_12
; %bb.10:
	ldr	x24, [x20, #24]
	bl	_COMBO_XBORDERSIZE
	add	x8, x24, x23
	add	x8, x8, w0, sxtw
	str	x8, [x19, #24]
	mov	x0, x22
	bl	_CB_GETTYPE
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.11:
	bl	_COMBO_EDITBUTTONSPACE
	ldr	x8, [x19, #24]
	sub	x8, x8, x0
	b	LBB0_13
LBB0_12:
	ldr	x8, [x22]
	add	x8, x8, x23
LBB0_13:
	str	x8, [x19, #24]
LBB0_14:
	ldp	x8, x9, [x21, #16]
	cmp	x9, x8
	b.ge	LBB0_16
; %bb.15:
	str	x8, [x21, #24]
LBB0_16:
	mov	x0, x21
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_TRACE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CBS_SIMPLE,8,3                 ; @CBS_SIMPLE
	.comm	_SM_CXVSCROLL,4,2               ; @SM_CXVSCROLL
	.comm	_CBS_DROPDOWN,8,3               ; @CBS_DROPDOWN
	.comm	_CBS_DROPDOWNLIST,8,3           ; @CBS_DROPDOWNLIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\ttext\t= (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"\tbutton\t= (%s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"\tlbox\t= (%s)\n"

	.no_dead_strip	_CBCalcPlacement
.subsections_via_symbols
