	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CBPaintBorder
_CBPaintBorder:                         ## @CBPaintBorder
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	%rsi, %rdi
	callq	_CB_GETTYPE
	movq	_CBS_SIMPLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	%eax, -28(%rbp)
	xorl	%eax, %eax
	callq	_EDIT_CONTROL_PADDING
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_EDIT_CONTROL_PADDING
	leaq	-28(%rbp), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_InflateRect
	xorl	%eax, %eax
	callq	_COMBO_XBORDERSIZE
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_COMBO_YBORDERSIZE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_InflateRect
	jmp	LBB0_3
LBB0_1:
	leaq	-28(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetClientRect
LBB0_3:
	movq	_EDGE_SUNKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BF_RECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-28(%rbp), %rsi
	movl	%r14d, %edi
	callq	_DrawEdge
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CBS_SIMPLE,8,3                 ## @CBS_SIMPLE
	.comm	_EDGE_SUNKEN,4,2                ## @EDGE_SUNKEN
	.comm	_BF_RECT,4,2                    ## @BF_RECT
	.no_dead_strip	_CBPaintBorder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CBPaintBorder
_CBPaintBorder:                         ; @CBPaintBorder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_CB_GETTYPE
Lloh0:
	adrp	x8, _CBS_SIMPLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CBS_SIMPLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x21]
	str	w8, [sp, #12]
	bl	_EDIT_CONTROL_PADDING
	mov	x20, x0
	bl	_EDIT_CONTROL_PADDING
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x20
	bl	_InflateRect
	bl	_COMBO_XBORDERSIZE
	mov	x20, x0
	bl	_COMBO_YBORDERSIZE
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x20
	bl	_InflateRect
	b	LBB0_3
LBB0_2:
	add	x1, sp, #12
	mov	x0, x20
	bl	_GetClientRect
LBB0_3:
Lloh3:
	adrp	x8, _EDGE_SUNKEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDGE_SUNKEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _BF_RECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BF_RECT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_DrawEdge
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CBS_SIMPLE,8,3                 ; @CBS_SIMPLE
	.comm	_EDGE_SUNKEN,4,2                ; @EDGE_SUNKEN
	.comm	_BF_RECT,4,2                    ; @BF_RECT
	.no_dead_strip	_CBPaintBorder
.subsections_via_symbols
