	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CBPaintButton
_CBPaintButton:                         ## @CBPaintButton
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, -20(%rbp)
	movl	(%rdi), %ebx
	movq	_CBF_NOREDRAW@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	_DFCS_SCROLLCOMBOBOX@GOTPCREL(%rip), %rax
	movq	_CBF_BUTTONDOWN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	je	LBB0_3
## %bb.2:
	movq	_DFCS_PUSHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	orl	(%rax), %ebx
	callq	_CB_DISABLED
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_DFCS_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	orl	%ecx, %ebx
	movq	_DFC_SCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rsi
	movl	%r14d, %edi
	movl	%ebx, %ecx
	callq	_DrawFrameControl
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DFCS_SCROLLCOMBOBOX,4,2        ## @DFCS_SCROLLCOMBOBOX
	.comm	_CBF_NOREDRAW,4,2               ## @CBF_NOREDRAW
	.comm	_CBF_BUTTONDOWN,4,2             ## @CBF_BUTTONDOWN
	.comm	_DFCS_PUSHED,4,2                ## @DFCS_PUSHED
	.comm	_DFCS_INACTIVE,4,2              ## @DFCS_INACTIVE
	.comm	_DFC_SCROLL,4,2                 ## @DFC_SCROLL
	.no_dead_strip	_CBPaintButton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CBPaintButton
_CBPaintButton:                         ; @CBPaintButton
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	w2, [sp, #12]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CBF_NOREDRAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CBF_NOREDRAW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x9, _DFCS_SCROLLCOMBOBOX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DFCS_SCROLLCOMBOBOX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _CBF_BUTTONDOWN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CBF_BUTTONDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _DFCS_PUSHED@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DFCS_PUSHED@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w20, w8, w9
	bl	_CB_DISABLED
Lloh12:
	adrp	x8, _DFCS_INACTIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DFCS_INACTIVE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w3, w20, w8
Lloh15:
	adrp	x8, _DFC_SCROLL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DFC_SCROLL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_DrawFrameControl
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DFCS_SCROLLCOMBOBOX,4,2        ; @DFCS_SCROLLCOMBOBOX
	.comm	_CBF_NOREDRAW,4,2               ; @CBF_NOREDRAW
	.comm	_CBF_BUTTONDOWN,4,2             ; @CBF_BUTTONDOWN
	.comm	_DFCS_PUSHED,4,2                ; @DFCS_PUSHED
	.comm	_DFCS_INACTIVE,4,2              ; @DFCS_INACTIVE
	.comm	_DFC_SCROLL,4,2                 ; @DFC_SCROLL
	.no_dead_strip	_CBPaintButton
.subsections_via_symbols
