	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UPDOWN_DrawBuddyBackground
_UPDOWN_DrawBuddyBackground:            ## @UPDOWN_DrawBuddyBackground
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_GetWindowTheme
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	-40(%rbp), %r12
	movq	%r12, %rsi
	callq	_GetWindowRect
	movl	4(%rbx), %esi
	xorl	%edi, %edi
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	_MapWindowPoints
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_GetClientRect
	movl	(%rbx), %eax
	movq	_UDS_ALIGNLEFT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %eax
	movl	%eax, -36(%rbp)
	jmp	LBB0_6
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_UDS_ALIGNRIGHT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	-48(%rbp), %eax
	movl	%eax, -40(%rbp)
LBB0_6:
	leaq	-40(%rbp), %r8
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_UDS_ALIGNLEFT,4,2              ## @UDS_ALIGNLEFT
	.comm	_UDS_ALIGNRIGHT,4,2             ## @UDS_ALIGNRIGHT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_UPDOWN_DrawBuddyBackground
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UPDOWN_DrawBuddyBackground
_UPDOWN_DrawBuddyBackground:            ; @UPDOWN_DrawBuddyBackground
	.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, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_GetWindowTheme
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x21, #8]
	add	x1, sp, #8
	bl	_GetWindowRect
	ldr	w1, [x21, #4]
	add	x2, sp, #8
	mov	x0, #0
	mov	w3, #2
	bl	_MapWindowPoints
	ldr	w0, [x21, #4]
	mov	x1, sp
	bl	_GetClientRect
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _UDS_ALIGNLEFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UDS_ALIGNLEFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [sp, #4]
	str	w8, [sp, #12]
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x9, _UDS_ALIGNRIGHT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UDS_ALIGNRIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [sp]
	str	w8, [sp, #8]
LBB0_6:
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	x5, #0
	bl	_DrawThemeBackground
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_UDS_ALIGNLEFT,4,2              ; @UDS_ALIGNLEFT
	.comm	_UDS_ALIGNRIGHT,4,2             ; @UDS_ALIGNRIGHT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_UPDOWN_DrawBuddyBackground
.subsections_via_symbols
